Skip to contentSkip to conversation

hfsplus: introduce functionality of attributes file creation

PATCH In review Vyacheslav Dubeyko 1 participant 1 message Sep 30, 2013 VFS

lore
Share & tools
lore
#0 lore raw

v2 cover hfsplus: introduce functionality of attributes file creation

Hi,

This is second version of the AttributesFile creation patchset.

v1->v2
* SETOFFSET macro was removed (Andrew Morton).
* Record offsets logic was reworked in hfsplus_init_header_node() (Al Viro).
* AttributesFile's header node's bitmap is initialized by memset() (Al Viro).
* Logic of checking attributes tree state before AttributesFile creation was reworked for HFSPLUS_CREATING_ATTR_TREE case (Andrew Morton).
* Setting error code was added after read_mapping_page()
call in hfsplus_create_attributes_file() method (Andrew Morton).

There are situation when HFS+ volume had been created without AttributesFile. Such situation can take place because of using old mkfs.hfs utility or creation HFS+ volume without taking in mind necessity to use xattrs. For example, Mac OS X 10.4 (Tiger) doesn't create AttributesFile during mkfs phase. Also it is a very frequent situation for the case of users that created HFS+ volumes under Linux. As a result, xattrs and POSIX ACLs on HFS+ volume are unavailable for such users.

This patch set implements functionality of AttributesFile creation on HFS+ volume in the case of this metadata file absence during operation of xattr creation.

With the best regards,
Vyacheslav Dubeyko.
---
Vyacheslav Dubeyko (1):
hfsplus: introduce functionality of attributes file creation

 fs/hfsplus/btree.c       |  112 +++++++++++++++++++++++++
 fs/hfsplus/hfsplus_fs.h  |   10 +++
 fs/hfsplus/hfsplus_raw.h |    3 +
 fs/hfsplus/super.c       |    2 +
 fs/hfsplus/xattr.c       |  207 +++++++++++++++++++++++++++++++++++++++++++++-
 5 files changed, 332 insertions(+), 2 deletions(-)
Signature · 1 line
1.7.9.5