diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2010-05-31 03:52:56 -0400 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@gmail.com> | 2010-08-02 15:28:35 -0400 |
commit | ebf46264a004818fe5b23f0ac18ac7336897d807 (patch) | |
tree | 0b8ea6810a8e665e3b7bb97f1e85ebde7d0d9ee0 /fs/9p/vfs_inode.c | |
parent | eda25e46161527845572131b37706a458d9270ef (diff) |
fs/9p: Add support user. xattr
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'fs/9p/vfs_inode.c')
-rw-r--r-- | fs/9p/vfs_inode.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index 2ac245902a4f..39352ef954dc 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c | |||
@@ -35,6 +35,7 @@ | |||
35 | #include <linux/idr.h> | 35 | #include <linux/idr.h> |
36 | #include <linux/sched.h> | 36 | #include <linux/sched.h> |
37 | #include <linux/slab.h> | 37 | #include <linux/slab.h> |
38 | #include <linux/xattr.h> | ||
38 | #include <net/9p/9p.h> | 39 | #include <net/9p/9p.h> |
39 | #include <net/9p/client.h> | 40 | #include <net/9p/client.h> |
40 | 41 | ||
@@ -42,6 +43,7 @@ | |||
42 | #include "v9fs_vfs.h" | 43 | #include "v9fs_vfs.h" |
43 | #include "fid.h" | 44 | #include "fid.h" |
44 | #include "cache.h" | 45 | #include "cache.h" |
46 | #include "xattr.h" | ||
45 | 47 | ||
46 | static const struct inode_operations v9fs_dir_inode_operations; | 48 | static const struct inode_operations v9fs_dir_inode_operations; |
47 | static const struct inode_operations v9fs_dir_inode_operations_dotu; | 49 | static const struct inode_operations v9fs_dir_inode_operations_dotu; |
@@ -1931,6 +1933,11 @@ static const struct inode_operations v9fs_dir_inode_operations_dotl = { | |||
1931 | .rename = v9fs_vfs_rename, | 1933 | .rename = v9fs_vfs_rename, |
1932 | .getattr = v9fs_vfs_getattr_dotl, | 1934 | .getattr = v9fs_vfs_getattr_dotl, |
1933 | .setattr = v9fs_vfs_setattr_dotl, | 1935 | .setattr = v9fs_vfs_setattr_dotl, |
1936 | .setxattr = generic_setxattr, | ||
1937 | .getxattr = generic_getxattr, | ||
1938 | .removexattr = generic_removexattr, | ||
1939 | .listxattr = v9fs_listxattr, | ||
1940 | |||
1934 | }; | 1941 | }; |
1935 | 1942 | ||
1936 | static const struct inode_operations v9fs_dir_inode_operations = { | 1943 | static const struct inode_operations v9fs_dir_inode_operations = { |
@@ -1953,6 +1960,10 @@ static const struct inode_operations v9fs_file_inode_operations = { | |||
1953 | static const struct inode_operations v9fs_file_inode_operations_dotl = { | 1960 | static const struct inode_operations v9fs_file_inode_operations_dotl = { |
1954 | .getattr = v9fs_vfs_getattr_dotl, | 1961 | .getattr = v9fs_vfs_getattr_dotl, |
1955 | .setattr = v9fs_vfs_setattr_dotl, | 1962 | .setattr = v9fs_vfs_setattr_dotl, |
1963 | .setxattr = generic_setxattr, | ||
1964 | .getxattr = generic_getxattr, | ||
1965 | .removexattr = generic_removexattr, | ||
1966 | .listxattr = v9fs_listxattr, | ||
1956 | }; | 1967 | }; |
1957 | 1968 | ||
1958 | static const struct inode_operations v9fs_symlink_inode_operations = { | 1969 | static const struct inode_operations v9fs_symlink_inode_operations = { |
@@ -1969,4 +1980,8 @@ static const struct inode_operations v9fs_symlink_inode_operations_dotl = { | |||
1969 | .put_link = v9fs_vfs_put_link, | 1980 | .put_link = v9fs_vfs_put_link, |
1970 | .getattr = v9fs_vfs_getattr_dotl, | 1981 | .getattr = v9fs_vfs_getattr_dotl, |
1971 | .setattr = v9fs_vfs_setattr_dotl, | 1982 | .setattr = v9fs_vfs_setattr_dotl, |
1983 | .setxattr = generic_setxattr, | ||
1984 | .getxattr = generic_getxattr, | ||
1985 | .removexattr = generic_removexattr, | ||
1986 | .listxattr = v9fs_listxattr, | ||
1972 | }; | 1987 | }; |