summaryrefslogtreecommitdiff
path: root/fs/erofs/internal.h
diff options
context:
space:
mode:
authorHongnan Li <hongnan.li@linux.alibaba.com>2022-04-25 07:07:12 +0300
committerGao Xiang <hsiangkao@linux.alibaba.com>2022-05-17 18:48:54 +0300
commit3e917cc305c6df350af5ad5c40d56e3e48b42281 (patch)
tree191163e829aa121d9097c19eb7f2018bd9d791ed /fs/erofs/internal.h
parentdcbe6803fffd387f72b48c2373b5f5ed12a5804b (diff)
downloadlinux-3e917cc305c6df350af5ad5c40d56e3e48b42281.tar.xz
erofs: make filesystem exportable
Implement export operations in order to make EROFS support accessing inodes with filehandles so that it can be exported via NFS and used by overlayfs. Without this patch, 'exportfs -rv' will report: exportfs: /root/erofs_mp does not support NFS export Also tested with unionmount-testsuite and the testcase below passes now: ./run --ov --erofs --verify hard-link For more details about the testcase, see: https://github.com/amir73il/unionmount-testsuite/pull/6 Signed-off-by: Hongnan Li <hongnan.li@linux.alibaba.com> Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com> Reviewed-by: Chao Yu <chao@kernel.org> Link: https://lore.kernel.org/r/20220425040712.91685-1-hongnan.li@linux.alibaba.com Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Diffstat (limited to 'fs/erofs/internal.h')
-rw-r--r--fs/erofs/internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/erofs/internal.h b/fs/erofs/internal.h
index 39eb48ce780f..df0c05ca2910 100644
--- a/fs/erofs/internal.h
+++ b/fs/erofs/internal.h
@@ -484,7 +484,7 @@ int erofs_getattr(struct user_namespace *mnt_userns, const struct path *path,
/* namei.c */
extern const struct inode_operations erofs_dir_iops;
-int erofs_namei(struct inode *dir, struct qstr *name,
+int erofs_namei(struct inode *dir, const struct qstr *name,
erofs_nid_t *nid, unsigned int *d_type);
/* dir.c */