From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vyacheslav Dubeyko Subject: [PATCH v2 0/3] hfsplus: introduce functionality of attributes file creation Date: Mon, 30 Sep 2013 12:05:05 +0400 Message-ID: <1380528305.2275.12.camel@slavad-ubuntu> Reply-To: slava@dubeyko.com Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Al Viro , Christoph Hellwig , Hin-Tak Leung , Andrew Morton , Fengguang Wu To: Linux FS devel list Return-path: Received: from oproxy14-pub.mail.unifiedlayer.com ([67.222.51.224]:52419 "HELO oproxy14-pub.mail.unifiedlayer.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752775Ab3I3IFR (ORCPT ); Mon, 30 Sep 2013 04:05:17 -0400 Sender: linux-fsdevel-owner@vger.kernel.org List-ID: 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