OSDN Git Service

fs: copy BTRFS_IOC_[SG]ET_FSLABEL to vfs
authorEric Sandeen <sandeen@redhat.com>
Tue, 15 May 2018 20:20:03 +0000 (13:20 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 16 May 2018 15:50:16 +0000 (08:50 -0700)
commit62750d040bd137fd6f541e216502d9158e07d348
tree748dc022ed12e6f3101eec36fe1b7f197f9cd705
parent49dd56f26ea7d18d4ca71f43a082dbb92798ebd3
fs: copy BTRFS_IOC_[SG]ET_FSLABEL to vfs

This retains 256 chars as the maximum size through the interface, which
is the btrfs limit and AFAIK exceeds any other filesystem's maximum
label size.

This just copies the ioctl for now and leaves it in place for btrfs
for the time being.  A later patch will allow btrfs to use the new
common ioctl definition, but it may be sent after this is merged.

(Note, Reviewed-by's were originally given for the combined vfs+btrfs
patch, some license taken here.)

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Reviewed-by: David Sterba <dsterba@suse.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Documentation/ioctl/ioctl-number.txt
include/uapi/linux/fs.h