diff options
author | Matthew Garrett <mjg@redhat.com> | 2012-02-06 15:14:40 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-03-20 21:29:53 -0400 |
commit | a051f71ce97c53cde3ac64de64eb02d658d9308e (patch) | |
tree | ef36c0a2e8c9e9dfb97ee12ba35fccca32858909 /fs/hfsplus/hfsplus_fs.h | |
parent | 0347b6e95ceeb648631f89a0ced001e90e4daaa9 (diff) | |
download | talos-op-linux-a051f71ce97c53cde3ac64de64eb02d658d9308e.tar.gz talos-op-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.h | 5 |
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 */ |