diff options
| author | Hongbo Li <[email protected]> | 2024-09-25 01:56:24 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2024-10-02 05:52:33 +0000 |
| commit | 05fba0a11557dfdc1b6895f4a3fb59165669e643 (patch) | |
| tree | 570ebe8e81e6e6d21068d4210e728f359eb439bf /rust/helpers/blk.c | |
| parent | filemap: filemap_read() should check that the offset is positive or zero (diff) | |
| download | kernel-05fba0a11557dfdc1b6895f4a3fb59165669e643.tar.gz kernel-05fba0a11557dfdc1b6895f4a3fb59165669e643.zip | |
fs: support relative paths with FSCONFIG_SET_STRING
The fs_lookup_param did not consider the relative path for block device.
When we mount ext4 with journal_path option using relative path,
param->dirfd was not set which will cause mounting error.
This can be reproduced easily like this:
mke2fs -F -O journal_dev $JOURNAL_DEV -b 4096 100M
mkfs.ext4 -F -J device=$JOURNAL_DEV -b 4096 $FS_DEV
cd /dev; mount -t ext4 -o journal_path=`basename $JOURNAL_DEV` $FS_DEV $MNT
Fixes: 461c3af045d3 ("ext4: Change handle_mount_opt() to use fs_parameter")
Suggested-by: Christian Brauner <[email protected]>
Signed-off-by: Hongbo Li <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'rust/helpers/blk.c')
0 files changed, 0 insertions, 0 deletions
