]> git.baikalelectronics.ru Git - 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)
commit87495a7b84d0a1136cb4b1b9199d45136008d119
treeef36c0a2e8c9e9dfb97ee12ba35fccca32858909
parent38949716898634dd8d8c22a8cdc118100123d991
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