2 * linux/fs/9p/vfs_inode_dotl.c
4 * This file contains vfs inode ops for the 9P2000.L protocol.
6 * Copyright (C) 2004 by Eric Van Hensbergen <ericvh@gmail.com>
7 * Copyright (C) 2002 by Ron Minnich <rminnich@lanl.gov>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2
11 * as published by the Free Software Foundation.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to:
20 * Free Software Foundation
21 * 51 Franklin Street, Fifth Floor
22 * Boston, MA 02111-1301 USA
26 #include <linux/module.h>
27 #include <linux/errno.h>
29 #include <linux/file.h>
30 #include <linux/pagemap.h>
31 #include <linux/stat.h>
32 #include <linux/string.h>
33 #include <linux/inet.h>
34 #include <linux/namei.h>
35 #include <linux/idr.h>
36 #include <linux/sched.h>
37 #include <linux/slab.h>
38 #include <linux/xattr.h>
39 #include <linux/posix_acl.h>
40 #include <net/9p/9p.h>
41 #include <net/9p/client.h>
51 v9fs_vfs_mknod_dotl(struct inode *dir, struct dentry *dentry, int omode,
55 * v9fs_get_fsgid_for_create - Helper function to get the gid for creating a
56 * new file system object. This checks the S_ISGID to determine the owning
57 * group of the new file system object.
60 static gid_t v9fs_get_fsgid_for_create(struct inode *dir_inode)
62 BUG_ON(dir_inode == NULL);
64 if (dir_inode->i_mode & S_ISGID) {
65 /* set_gid bit is set.*/
66 return dir_inode->i_gid;
68 return current_fsgid();
72 * v9fs_dentry_from_dir_inode - helper function to get the dentry from
77 static struct dentry *v9fs_dentry_from_dir_inode(struct inode *inode)
79 struct dentry *dentry;
81 spin_lock(&inode->i_lock);
82 /* Directory should have only one entry. */
83 BUG_ON(S_ISDIR(inode->i_mode) && !list_is_singular(&inode->i_dentry));
84 dentry = list_entry(inode->i_dentry.next, struct dentry, d_alias);
85 spin_unlock(&inode->i_lock);
90 v9fs_inode_dotl(struct v9fs_session_info *v9ses, struct p9_fid *fid,
91 struct super_block *sb)
93 struct inode *ret = NULL;
95 struct p9_stat_dotl *st;
97 st = p9_client_getattr_dotl(fid, P9_STATS_BASIC);
101 ret = v9fs_get_inode(sb, st->st_mode);
107 v9fs_stat2inode_dotl(st, ret);
108 ret->i_ino = v9fs_qid2ino(&st->qid);
109 #ifdef CONFIG_9P_FSCACHE
110 v9fs_vcookie_set_qid(ret, &st->qid);
111 v9fs_cache_inode_get_cookie(ret);
113 err = v9fs_get_acl(ret, fid);
126 * v9fs_vfs_create_dotl - VFS hook to create files for 9P2000.L protocol.
127 * @dir: directory inode that is being created
128 * @dentry: dentry that is being deleted
129 * @mode: create permissions
130 * @nd: path information
135 v9fs_vfs_create_dotl(struct inode *dir, struct dentry *dentry, int omode,
136 struct nameidata *nd)
143 struct v9fs_session_info *v9ses;
144 struct p9_fid *fid = NULL;
145 struct p9_fid *dfid, *ofid;
149 struct posix_acl *pacl = NULL, *dacl = NULL;
151 v9ses = v9fs_inode2v9ses(dir);
152 if (nd && nd->flags & LOOKUP_OPEN)
153 flags = nd->intent.open.flags - 1;
156 * create call without LOOKUP_OPEN is due
157 * to mknod of regular files. So use mknod
160 return v9fs_vfs_mknod_dotl(dir, dentry, omode, 0);
163 name = (char *) dentry->d_name.name;
164 P9_DPRINTK(P9_DEBUG_VFS, "v9fs_vfs_create_dotl: name:%s flags:0x%x "
165 "mode:0x%x\n", name, flags, omode);
167 dfid = v9fs_fid_lookup(dentry->d_parent);
170 P9_DPRINTK(P9_DEBUG_VFS, "fid lookup failed %d\n", err);
174 /* clone a fid to use for creation */
175 ofid = p9_client_walk(dfid, 0, NULL, 1);
178 P9_DPRINTK(P9_DEBUG_VFS, "p9_client_walk failed %d\n", err);
182 gid = v9fs_get_fsgid_for_create(dir);
185 /* Update mode based on ACL value */
186 err = v9fs_acl_mode(dir, &mode, &dacl, &pacl);
188 P9_DPRINTK(P9_DEBUG_VFS,
189 "Failed to get acl values in creat %d\n", err);
192 err = p9_client_create_dotl(ofid, name, flags, mode, gid, &qid);
194 P9_DPRINTK(P9_DEBUG_VFS,
195 "p9_client_open_dotl failed in creat %d\n",
199 /* instantiate inode and assign the unopened fid to the dentry */
200 if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE ||
201 (nd && nd->flags & LOOKUP_OPEN)) {
202 fid = p9_client_walk(dfid, 1, &name, 1);
205 P9_DPRINTK(P9_DEBUG_VFS, "p9_client_walk failed %d\n",
211 inode = v9fs_inode_from_fid(v9ses, fid, dir->i_sb);
213 err = PTR_ERR(inode);
214 P9_DPRINTK(P9_DEBUG_VFS, "inode creation failed %d\n",
218 d_set_d_op(dentry, &v9fs_cached_dentry_operations);
219 d_instantiate(dentry, inode);
220 err = v9fs_fid_add(dentry, fid);
223 /* The fid would get clunked via a dput */
227 * Not in cached mode. No need to populate
228 * inode with stat. We need to get an inode
229 * so that we can set the acl with dentry
231 inode = v9fs_get_inode(dir->i_sb, mode);
233 err = PTR_ERR(inode);
236 d_set_d_op(dentry, &v9fs_dentry_operations);
237 d_instantiate(dentry, inode);
239 /* Now set the ACL based on the default value */
240 v9fs_set_create_acl(dentry, dacl, pacl);
242 /* if we are opening a file, assign the open fid to the file */
243 if (nd && nd->flags & LOOKUP_OPEN) {
244 filp = lookup_instantiate_filp(nd, dentry, generic_file_open);
246 p9_client_clunk(ofid);
247 return PTR_ERR(filp);
249 filp->private_data = ofid;
251 p9_client_clunk(ofid);
257 p9_client_clunk(ofid);
259 p9_client_clunk(fid);
264 * v9fs_vfs_mkdir_dotl - VFS mkdir hook to create a directory
265 * @dir: inode that is being unlinked
266 * @dentry: dentry that is being unlinked
267 * @mode: mode for new directory
271 static int v9fs_vfs_mkdir_dotl(struct inode *dir,
272 struct dentry *dentry, int omode)
275 struct v9fs_session_info *v9ses;
276 struct p9_fid *fid = NULL, *dfid = NULL;
282 struct dentry *dir_dentry;
283 struct posix_acl *dacl = NULL, *pacl = NULL;
285 P9_DPRINTK(P9_DEBUG_VFS, "name %s\n", dentry->d_name.name);
287 v9ses = v9fs_inode2v9ses(dir);
290 if (dir->i_mode & S_ISGID)
293 dir_dentry = v9fs_dentry_from_dir_inode(dir);
294 dfid = v9fs_fid_lookup(dir_dentry);
297 P9_DPRINTK(P9_DEBUG_VFS, "fid lookup failed %d\n", err);
302 gid = v9fs_get_fsgid_for_create(dir);
304 /* Update mode based on ACL value */
305 err = v9fs_acl_mode(dir, &mode, &dacl, &pacl);
307 P9_DPRINTK(P9_DEBUG_VFS,
308 "Failed to get acl values in mkdir %d\n", err);
311 name = (char *) dentry->d_name.name;
312 err = p9_client_mkdir_dotl(dfid, name, mode, gid, &qid);
316 /* instantiate inode and assign the unopened fid to the dentry */
317 if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) {
318 fid = p9_client_walk(dfid, 1, &name, 1);
321 P9_DPRINTK(P9_DEBUG_VFS, "p9_client_walk failed %d\n",
327 inode = v9fs_inode_from_fid(v9ses, fid, dir->i_sb);
329 err = PTR_ERR(inode);
330 P9_DPRINTK(P9_DEBUG_VFS, "inode creation failed %d\n",
334 d_set_d_op(dentry, &v9fs_cached_dentry_operations);
335 d_instantiate(dentry, inode);
336 err = v9fs_fid_add(dentry, fid);
342 * Not in cached mode. No need to populate
343 * inode with stat. We need to get an inode
344 * so that we can set the acl with dentry
346 inode = v9fs_get_inode(dir->i_sb, mode);
348 err = PTR_ERR(inode);
351 d_set_d_op(dentry, &v9fs_dentry_operations);
352 d_instantiate(dentry, inode);
354 /* Now set the ACL based on the default value */
355 v9fs_set_create_acl(dentry, dacl, pacl);
359 p9_client_clunk(fid);
364 v9fs_vfs_getattr_dotl(struct vfsmount *mnt, struct dentry *dentry,
368 struct v9fs_session_info *v9ses;
370 struct p9_stat_dotl *st;
372 P9_DPRINTK(P9_DEBUG_VFS, "dentry: %p\n", dentry);
374 v9ses = v9fs_inode2v9ses(dentry->d_inode);
375 if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE)
376 return simple_getattr(mnt, dentry, stat);
378 fid = v9fs_fid_lookup(dentry);
382 /* Ask for all the fields in stat structure. Server will return
383 * whatever it supports
386 st = p9_client_getattr_dotl(fid, P9_STATS_ALL);
390 v9fs_stat2inode_dotl(st, dentry->d_inode);
391 generic_fillattr(dentry->d_inode, stat);
392 /* Change block size to what the server returned */
393 stat->blksize = st->st_blksize;
400 * v9fs_vfs_setattr_dotl - set file metadata
401 * @dentry: file whose metadata to set
402 * @iattr: metadata assignment structure
406 int v9fs_vfs_setattr_dotl(struct dentry *dentry, struct iattr *iattr)
409 struct v9fs_session_info *v9ses;
411 struct p9_iattr_dotl p9attr;
413 P9_DPRINTK(P9_DEBUG_VFS, "\n");
415 retval = inode_change_ok(dentry->d_inode, iattr);
419 p9attr.valid = iattr->ia_valid;
420 p9attr.mode = iattr->ia_mode;
421 p9attr.uid = iattr->ia_uid;
422 p9attr.gid = iattr->ia_gid;
423 p9attr.size = iattr->ia_size;
424 p9attr.atime_sec = iattr->ia_atime.tv_sec;
425 p9attr.atime_nsec = iattr->ia_atime.tv_nsec;
426 p9attr.mtime_sec = iattr->ia_mtime.tv_sec;
427 p9attr.mtime_nsec = iattr->ia_mtime.tv_nsec;
430 v9ses = v9fs_inode2v9ses(dentry->d_inode);
431 fid = v9fs_fid_lookup(dentry);
435 retval = p9_client_setattr(fid, &p9attr);
439 if ((iattr->ia_valid & ATTR_SIZE) &&
440 iattr->ia_size != i_size_read(dentry->d_inode)) {
441 retval = vmtruncate(dentry->d_inode, iattr->ia_size);
446 setattr_copy(dentry->d_inode, iattr);
447 mark_inode_dirty(dentry->d_inode);
448 if (iattr->ia_valid & ATTR_MODE) {
449 /* We also want to update ACL when we update mode bits */
450 retval = v9fs_acl_chmod(dentry);
458 * v9fs_stat2inode_dotl - populate an inode structure with stat info
459 * @stat: stat structure
460 * @inode: inode to populate
461 * @sb: superblock of filesystem
466 v9fs_stat2inode_dotl(struct p9_stat_dotl *stat, struct inode *inode)
469 if ((stat->st_result_mask & P9_STATS_BASIC) == P9_STATS_BASIC) {
470 inode->i_atime.tv_sec = stat->st_atime_sec;
471 inode->i_atime.tv_nsec = stat->st_atime_nsec;
472 inode->i_mtime.tv_sec = stat->st_mtime_sec;
473 inode->i_mtime.tv_nsec = stat->st_mtime_nsec;
474 inode->i_ctime.tv_sec = stat->st_ctime_sec;
475 inode->i_ctime.tv_nsec = stat->st_ctime_nsec;
476 inode->i_uid = stat->st_uid;
477 inode->i_gid = stat->st_gid;
478 inode->i_nlink = stat->st_nlink;
479 inode->i_mode = stat->st_mode;
480 inode->i_rdev = new_decode_dev(stat->st_rdev);
482 if ((S_ISBLK(inode->i_mode)) || (S_ISCHR(inode->i_mode)))
483 init_special_inode(inode, inode->i_mode, inode->i_rdev);
485 i_size_write(inode, stat->st_size);
486 inode->i_blocks = stat->st_blocks;
488 if (stat->st_result_mask & P9_STATS_ATIME) {
489 inode->i_atime.tv_sec = stat->st_atime_sec;
490 inode->i_atime.tv_nsec = stat->st_atime_nsec;
492 if (stat->st_result_mask & P9_STATS_MTIME) {
493 inode->i_mtime.tv_sec = stat->st_mtime_sec;
494 inode->i_mtime.tv_nsec = stat->st_mtime_nsec;
496 if (stat->st_result_mask & P9_STATS_CTIME) {
497 inode->i_ctime.tv_sec = stat->st_ctime_sec;
498 inode->i_ctime.tv_nsec = stat->st_ctime_nsec;
500 if (stat->st_result_mask & P9_STATS_UID)
501 inode->i_uid = stat->st_uid;
502 if (stat->st_result_mask & P9_STATS_GID)
503 inode->i_gid = stat->st_gid;
504 if (stat->st_result_mask & P9_STATS_NLINK)
505 inode->i_nlink = stat->st_nlink;
506 if (stat->st_result_mask & P9_STATS_MODE) {
507 inode->i_mode = stat->st_mode;
508 if ((S_ISBLK(inode->i_mode)) ||
509 (S_ISCHR(inode->i_mode)))
510 init_special_inode(inode, inode->i_mode,
513 if (stat->st_result_mask & P9_STATS_RDEV)
514 inode->i_rdev = new_decode_dev(stat->st_rdev);
515 if (stat->st_result_mask & P9_STATS_SIZE)
516 i_size_write(inode, stat->st_size);
517 if (stat->st_result_mask & P9_STATS_BLOCKS)
518 inode->i_blocks = stat->st_blocks;
520 if (stat->st_result_mask & P9_STATS_GEN)
521 inode->i_generation = stat->st_gen;
523 /* Currently we don't support P9_STATS_BTIME and P9_STATS_DATA_VERSION
524 * because the inode structure does not have fields for them.
529 v9fs_vfs_symlink_dotl(struct inode *dir, struct dentry *dentry,
532 struct v9fs_session_info *v9ses;
534 struct p9_fid *fid = NULL;
541 name = (char *) dentry->d_name.name;
542 P9_DPRINTK(P9_DEBUG_VFS, "v9fs_vfs_symlink_dotl : %lu,%s,%s\n",
543 dir->i_ino, name, symname);
544 v9ses = v9fs_inode2v9ses(dir);
546 dfid = v9fs_fid_lookup(dentry->d_parent);
549 P9_DPRINTK(P9_DEBUG_VFS, "fid lookup failed %d\n", err);
553 gid = v9fs_get_fsgid_for_create(dir);
555 /* Server doesn't alter fid on TSYMLINK. Hence no need to clone it. */
556 err = p9_client_symlink(dfid, name, (char *)symname, gid, &qid);
559 P9_DPRINTK(P9_DEBUG_VFS, "p9_client_symlink failed %d\n", err);
564 /* Now walk from the parent so we can get an unopened fid. */
565 fid = p9_client_walk(dfid, 1, &name, 1);
568 P9_DPRINTK(P9_DEBUG_VFS, "p9_client_walk failed %d\n",
574 /* instantiate inode and assign the unopened fid to dentry */
575 inode = v9fs_inode_from_fid(v9ses, fid, dir->i_sb);
577 err = PTR_ERR(inode);
578 P9_DPRINTK(P9_DEBUG_VFS, "inode creation failed %d\n",
582 d_set_d_op(dentry, &v9fs_cached_dentry_operations);
583 d_instantiate(dentry, inode);
584 err = v9fs_fid_add(dentry, fid);
589 /* Not in cached mode. No need to populate inode with stat */
590 inode = v9fs_get_inode(dir->i_sb, S_IFLNK);
592 err = PTR_ERR(inode);
595 d_set_d_op(dentry, &v9fs_dentry_operations);
596 d_instantiate(dentry, inode);
601 p9_client_clunk(fid);
607 * v9fs_vfs_link_dotl - create a hardlink for dotl
608 * @old_dentry: dentry for file to link to
609 * @dir: inode destination for new link
610 * @dentry: dentry for link
615 v9fs_vfs_link_dotl(struct dentry *old_dentry, struct inode *dir,
616 struct dentry *dentry)
619 struct p9_fid *dfid, *oldfid;
621 struct v9fs_session_info *v9ses;
622 struct dentry *dir_dentry;
624 P9_DPRINTK(P9_DEBUG_VFS, "dir ino: %lu, old_name: %s, new_name: %s\n",
625 dir->i_ino, old_dentry->d_name.name,
626 dentry->d_name.name);
628 v9ses = v9fs_inode2v9ses(dir);
629 dir_dentry = v9fs_dentry_from_dir_inode(dir);
630 dfid = v9fs_fid_lookup(dir_dentry);
632 return PTR_ERR(dfid);
634 oldfid = v9fs_fid_lookup(old_dentry);
636 return PTR_ERR(oldfid);
638 name = (char *) dentry->d_name.name;
640 err = p9_client_link(dfid, oldfid, (char *)dentry->d_name.name);
643 P9_DPRINTK(P9_DEBUG_VFS, "p9_client_link failed %d\n", err);
647 if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) {
648 /* Get the latest stat info from server. */
650 struct p9_stat_dotl *st;
652 fid = v9fs_fid_lookup(old_dentry);
656 st = p9_client_getattr_dotl(fid, P9_STATS_BASIC);
660 v9fs_stat2inode_dotl(st, old_dentry->d_inode);
664 /* Caching disabled. No need to get upto date stat info.
665 * This dentry will be released immediately. So, just hold the
668 ihold(old_dentry->d_inode);
671 d_set_d_op(dentry, old_dentry->d_op);
672 d_instantiate(dentry, old_dentry->d_inode);
678 * v9fs_vfs_mknod_dotl - create a special file
679 * @dir: inode destination for new link
680 * @dentry: dentry for file
681 * @mode: mode for creation
682 * @rdev: device associated with special file
686 v9fs_vfs_mknod_dotl(struct inode *dir, struct dentry *dentry, int omode,
692 struct v9fs_session_info *v9ses;
693 struct p9_fid *fid = NULL, *dfid = NULL;
697 struct dentry *dir_dentry;
698 struct posix_acl *dacl = NULL, *pacl = NULL;
700 P9_DPRINTK(P9_DEBUG_VFS,
701 " %lu,%s mode: %x MAJOR: %u MINOR: %u\n", dir->i_ino,
702 dentry->d_name.name, omode, MAJOR(rdev), MINOR(rdev));
704 if (!new_valid_dev(rdev))
707 v9ses = v9fs_inode2v9ses(dir);
708 dir_dentry = v9fs_dentry_from_dir_inode(dir);
709 dfid = v9fs_fid_lookup(dir_dentry);
712 P9_DPRINTK(P9_DEBUG_VFS, "fid lookup failed %d\n", err);
717 gid = v9fs_get_fsgid_for_create(dir);
719 /* Update mode based on ACL value */
720 err = v9fs_acl_mode(dir, &mode, &dacl, &pacl);
722 P9_DPRINTK(P9_DEBUG_VFS,
723 "Failed to get acl values in mknod %d\n", err);
726 name = (char *) dentry->d_name.name;
728 err = p9_client_mknod_dotl(dfid, name, mode, rdev, gid, &qid);
732 /* instantiate inode and assign the unopened fid to the dentry */
733 if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) {
734 fid = p9_client_walk(dfid, 1, &name, 1);
737 P9_DPRINTK(P9_DEBUG_VFS, "p9_client_walk failed %d\n",
743 inode = v9fs_inode_from_fid(v9ses, fid, dir->i_sb);
745 err = PTR_ERR(inode);
746 P9_DPRINTK(P9_DEBUG_VFS, "inode creation failed %d\n",
750 d_set_d_op(dentry, &v9fs_cached_dentry_operations);
751 d_instantiate(dentry, inode);
752 err = v9fs_fid_add(dentry, fid);
758 * Not in cached mode. No need to populate inode with stat.
759 * socket syscall returns a fd, so we need instantiate
761 inode = v9fs_get_inode(dir->i_sb, mode);
763 err = PTR_ERR(inode);
766 d_set_d_op(dentry, &v9fs_dentry_operations);
767 d_instantiate(dentry, inode);
769 /* Now set the ACL based on the default value */
770 v9fs_set_create_acl(dentry, dacl, pacl);
773 p9_client_clunk(fid);
778 v9fs_vfs_readlink_dotl(struct dentry *dentry, char *buffer, int buflen)
784 P9_DPRINTK(P9_DEBUG_VFS, " %s\n", dentry->d_name.name);
786 fid = v9fs_fid_lookup(dentry);
790 retval = p9_client_readlink(fid, &target);
794 strncpy(buffer, target, buflen);
795 P9_DPRINTK(P9_DEBUG_VFS, "%s -> %s\n", dentry->d_name.name, buffer);
797 retval = strnlen(buffer, buflen);
802 * v9fs_vfs_follow_link_dotl - follow a symlink path
803 * @dentry: dentry for symlink
809 v9fs_vfs_follow_link_dotl(struct dentry *dentry, struct nameidata *nd)
812 char *link = __getname();
814 P9_DPRINTK(P9_DEBUG_VFS, "%s n", dentry->d_name.name);
817 link = ERR_PTR(-ENOMEM);
819 len = v9fs_vfs_readlink_dotl(dentry, link, PATH_MAX);
824 link[min(len, PATH_MAX-1)] = 0;
826 nd_set_link(nd, link);
831 const struct inode_operations v9fs_dir_inode_operations_dotl = {
832 .create = v9fs_vfs_create_dotl,
833 .lookup = v9fs_vfs_lookup,
834 .link = v9fs_vfs_link_dotl,
835 .symlink = v9fs_vfs_symlink_dotl,
836 .unlink = v9fs_vfs_unlink,
837 .mkdir = v9fs_vfs_mkdir_dotl,
838 .rmdir = v9fs_vfs_rmdir,
839 .mknod = v9fs_vfs_mknod_dotl,
840 .rename = v9fs_vfs_rename,
841 .getattr = v9fs_vfs_getattr_dotl,
842 .setattr = v9fs_vfs_setattr_dotl,
843 .setxattr = generic_setxattr,
844 .getxattr = generic_getxattr,
845 .removexattr = generic_removexattr,
846 .listxattr = v9fs_listxattr,
847 .check_acl = v9fs_check_acl,
850 const struct inode_operations v9fs_file_inode_operations_dotl = {
851 .getattr = v9fs_vfs_getattr_dotl,
852 .setattr = v9fs_vfs_setattr_dotl,
853 .setxattr = generic_setxattr,
854 .getxattr = generic_getxattr,
855 .removexattr = generic_removexattr,
856 .listxattr = v9fs_listxattr,
857 .check_acl = v9fs_check_acl,
860 const struct inode_operations v9fs_symlink_inode_operations_dotl = {
861 .readlink = v9fs_vfs_readlink_dotl,
862 .follow_link = v9fs_vfs_follow_link_dotl,
863 .put_link = v9fs_vfs_put_link,
864 .getattr = v9fs_vfs_getattr_dotl,
865 .setattr = v9fs_vfs_setattr_dotl,
866 .setxattr = generic_setxattr,
867 .getxattr = generic_getxattr,
868 .removexattr = generic_removexattr,
869 .listxattr = v9fs_listxattr,