summaryrefslogtreecommitdiffstats
path: root/fs/hfsplus/hfsplus_fs.h
diff options
context:
space:
mode:
authorMatthew Garrett <mjg@redhat.com>2012-02-06 21:14:40 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2012-03-21 02:29:53 +0100
commita051f71ce97c53cde3ac64de64eb02d658d9308e (patch)
treeef36c0a2e8c9e9dfb97ee12ba35fccca32858909 /fs/hfsplus/hfsplus_fs.h
parenthfsplus: change finder_info to u32 (diff)
downloadlinux-a051f71ce97c53cde3ac64de64eb02d658d9308e.tar.xz
linux-a051f71ce97c53cde3ac64de64eb02d658d9308e.zip
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>
Diffstat (limited to 'fs/hfsplus/hfsplus_fs.h')
-rw-r--r--fs/hfsplus/hfsplus_fs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/hfsplus/hfsplus_fs.h b/fs/hfsplus/hfsplus_fs.h
index 21a5b7fc6db4..4e75ac646fea 100644
--- a/fs/hfsplus/hfsplus_fs.h
+++ b/fs/hfsplus/hfsplus_fs.h
@@ -317,6 +317,11 @@ static inline unsigned short hfsplus_min_io_size(struct super_block *sb)
/*
+ * hfs+-specific ioctl for making the filesystem bootable
+ */
+#define HFSPLUS_IOC_BLESS _IO('h', 0x80)
+
+/*
* Functions in any *.c used in other files
*/