From: Hin-Tak Leung Subject: Re: [PATCH v2 3/3] hfsplus: implement attributes file creation functionality Date: Mon, 30 Sep 2013 16:34:31 +0100 (BST) Message-ID: <1380555271.70386.YahooMailBasic@web172302.mail.ir2.yahoo.com> References: <1380528353.2275.16.camel@slavad-ubuntu> Reply-To: htl10@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Cc: Al Viro , Christoph Hellwig , Andrew Morton , Fengguang Wu To: Linux FS devel list , slava@dubeyko.com Return-path: Received: from nm9-vm0.bullet.mail.ird.yahoo.com ([77.238.189.197]:27024 "HELO nm9-vm0.bullet.mail.ird.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1755281Ab3I3Pee convert rfc822-to-8bit (ORCPT ); Mon, 30 Sep 2013 11:34:34 -0400 In-Reply-To: <1380528353.2275.16.camel@slavad-ubuntu> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: -------------------------------------------- On Mon, 30/9/13, Vyacheslav Dubeyko wrote: Subject: [PATCH v2 3/3] hfsplus: implement attributes file creation functionality To: "Linux FS devel list" Cc: "Al Viro" , "Christoph Hellwig" , "Hin-Tak Leung" , "Andrew Morton" , "Fengguang Wu" Date: Monday, 30 September, 2013, 9:05 From: Vyacheslav Dubeyko Subject: [PATCH v2 3/3] hfsplus: implement attributes file creation functionality This patch implements functionality of creation AttributesFile metadata file on HFS+ volume in the case of absence of it. It makes trying to open AttributesFile's B-tree during mount of HFS+ volume. If HFS+ volume hasn't AttributesFile then a pointer on AttributesFile's B-tree keeps as NULL. Thereby, when it is discovered absence of AttributesFile on HFS+ volume in the begin of xattr creation operation then AttributesFile will be created. The creation of AttributesFile will have success in the case of availability (2 * clump) free blocks on HFS+ volume. Otherwise, creation operation is ended with error (-ENOSPC). Signed-off-by: Vyacheslav Dubeyko CC: Al Viro CC: Christoph Hellwig CC: Hin-Tak Leung Acked-by: Hin-Tak Leung