]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
zonefs: add support for FS_IOC_GETFSSYSFSPATH
authorLiao Chen <liaochen4@huawei.com>
Tue, 20 Aug 2024 02:20:29 +0000 (02:20 +0000)
committerDamien Le Moal <dlemoal@kernel.org>
Tue, 20 Aug 2024 08:46:54 +0000 (17:46 +0900)
commitc4b3c1332f55c48785e6661cebeb7269a92a45fd
tree92fd5e7371c838e7875a2f5e8ba9529364562be4
parent47ac09b91befbb6a235ab620c32af719f8208399
zonefs: add support for FS_IOC_GETFSSYSFSPATH

FS_IOC_GETFSSYSFSPATH ioctl expects sysfs sub-path of a filesystem, the
format can be "$FSTYP/$SYSFS_IDENTIFIER" under /sys/fs, it can helps to
standardizes exporting sysfs datas across filesystems.

This patch wires up FS_IOC_GETFSSYSFSPATH for zonefs, it will output
"zonefs/<dev>".

Signed-off-by: Liao Chen <liaochen4@huawei.com>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
fs/zonefs/sysfs.c