]> 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)
commitd1ca954a905a3e1eee2b9c304ab65da0e828c2ba
treeef36c0a2e8c9e9dfb97ee12ba35fccca32858909
parent9efa61760cba793df9bc29a80829298347564b94
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