Skip to contentSkip to conversation

hfsplus: implement attributes file's header node initialization code

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

Subsystems (2)
lore
Share & tools
lore

Vyacheslav Dubeyko

author maintainer
#0 lore raw

PATCH v2 2/3 hfsplus: implement attributes file's header node initialization code

From: Vyacheslav Dubeyko <[email protected]>
Subject: [PATCH v2 2/3] hfsplus: implement attributes file's header node initialization code

This patch implements functionality of AttributesFile's header node initialization.

CC Al Viro <[email protected]>
CC Christoph Hellwig <[email protected]>
CC Hin-Tak Leung <[email protected]>
---
 fs/hfsplus/hfsplus_raw.h |    3 +++
 fs/hfsplus/xattr.c       |   65 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 68 insertions(+)
fs/hfsplus/hfsplus_raw.h +3 -0
index 452ede0..c28d178 100644
@@ -187,6 +187,9 @@ struct hfs_btree_header_rec {
 /* HFS+ BTree misc info */
 #define HFSPLUS_TREE_HEAD 0
 #define HFSPLUS_NODE_MXSZ 32768
+#define HFSPLUS_ATTR_TREE_NODE_SIZE		8192
+#define HFSPLUS_BTREE_HDR_NODE_RECS_COUNT	3
+#define HFSPLUS_BTREE_HDR_USER_BYTES		128
 
 /* Some special File ID numbers (stolen from hfs.h) */
 #define HFSPLUS_POR_CNID		1	/* Parent Of the Root */
fs/hfsplus/xattr.c +65 -0

71 lines not on this page · raw message

Signature · 1 line
1.7.9.5