Vyacheslav Dubeyko 95e0d7dbb9 hfsplus: implement attributes file creation functionality
Implement 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 <slava@dubeyko.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Christoph Hellwig <hch@infradead.org>
Acked-by: Hin-Tak Leung <htl10@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2013-11-13 12:09:32 +09:00
..
2013-11-13 12:09:12 +09:00
2013-08-12 15:22:43 -05:00
2013-10-15 12:14:06 -04:00
2013-10-01 16:41:23 +02:00
2013-09-07 10:38:29 +02:00
2013-09-16 18:20:25 -07:00
2013-11-13 12:09:11 +09:00
2013-09-24 11:23:33 +02:00
2013-09-24 14:41:42 -07:00
2013-09-13 23:06:40 -04:00
2013-09-10 18:56:31 -04:00
2013-10-22 12:02:40 +01:00
2013-10-01 13:11:21 -04:00