]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
hfsplus: add an ioctl to bless files
authorMatthew Garrett <mjg@redhat.com>
Mon, 6 Feb 2012 20:14:40 +0000 (15:14 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 21 Mar 2012 01:29:53 +0000 (21:29 -0400)
commita051f71ce97c53cde3ac64de64eb02d658d9308e
treeef36c0a2e8c9e9dfb97ee12ba35fccca32858909
parent0347b6e95ceeb648631f89a0ced001e90e4daaa9
hfsplus: add an ioctl to bless files

Making an hfsplus partition bootable requires the ability to "bless" a
file by putting its inode number in the volume header. Doing this from
userspace on a mounted filesystem is impractical since the kernel will
write back the original values on unmount. Add an ioctl to allow userspace
to update the volume header information based on the target file.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Documentation/ioctl/ioctl-number.txt
fs/hfsplus/hfsplus_fs.h
fs/hfsplus/ioctl.c