diff options
author | Hongnan Li <hongnan.li@linux.alibaba.com> | 2022-04-25 06:07:12 +0200 |
---|---|---|
committer | Gao Xiang <hsiangkao@linux.alibaba.com> | 2022-05-17 17:48:54 +0200 |
commit | 3e917cc305c6df350af5ad5c40d56e3e48b42281 (patch) | |
tree | 191163e829aa121d9097c19eb7f2018bd9d791ed /fs/erofs/internal.h | |
parent | erofs: fix buffer copy overflow of ztailpacking feature (diff) | |
download | linux-3e917cc305c6df350af5ad5c40d56e3e48b42281.tar.xz linux-3e917cc305c6df350af5ad5c40d56e3e48b42281.zip |
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.h | 2 |
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 */ |