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(-) -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html