summaryrefslogtreecommitdiffstats
path: root/fs/iomap.c
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@sandeen.net>2018-05-15 22:21:48 +0200
committerDarrick J. Wong <darrick.wong@oracle.com>2018-05-16 17:50:16 +0200
commitf7664b31975bd893190708e76b2c424328f0c49b (patch)
tree439142f0401d795c31bfbebe62f42b7e057fa446 /fs/iomap.c
parentfs: copy BTRFS_IOC_[SG]ET_FSLABEL to vfs (diff)
downloadlinux-f7664b31975bd893190708e76b2c424328f0c49b.tar.xz
linux-f7664b31975bd893190708e76b2c424328f0c49b.zip
xfs: implement online get/set fs label
The GET ioctl is trivial, just return the current label. The SET ioctl is more involved: It transactionally modifies the superblock to write a new filesystem label to the primary super. A new variant of xfs_sync_sb then writes the superblock buffer immediately to disk so that the change is visible from userspace. It then invalidates any page cache that userspace might have previously read on the block device so that i.e. blkid can see the change immediately, and updates all secondary superblocks as userspace relable does. Signed-off-by: Eric Sandeen <sandeen@redhat.com> [darrick: use dchinner's new xfs_update_secondary_sbs function] Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions