hfsplus: add support of manipulation by attributes file
Add support of manipulation by attributes file. Signed-off-by: Vyacheslav Dubeyko <slava@dubeyko.com> Reported-by: Hin-Tak Leung <htl10@users.sourceforge.net> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: Christoph Hellwig <hch@lst.de> Cc: Jan Kara <jack@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
127e5f5ae5
commit
324ef39a8a
@@ -62,7 +62,8 @@ void hfs_bnode_read_key(struct hfs_bnode *node, void *key, int off)
|
||||
|
||||
tree = node->tree;
|
||||
if (node->type == HFS_NODE_LEAF ||
|
||||
tree->attributes & HFS_TREE_VARIDXKEYS)
|
||||
tree->attributes & HFS_TREE_VARIDXKEYS ||
|
||||
node->tree->cnid == HFSPLUS_ATTR_CNID)
|
||||
key_len = hfs_bnode_read_u16(node, off) + 2;
|
||||
else
|
||||
key_len = tree->max_key_len + 2;
|
||||
@@ -314,7 +315,8 @@ void hfs_bnode_dump(struct hfs_bnode *node)
|
||||
if (i && node->type == HFS_NODE_INDEX) {
|
||||
int tmp;
|
||||
|
||||
if (node->tree->attributes & HFS_TREE_VARIDXKEYS)
|
||||
if (node->tree->attributes & HFS_TREE_VARIDXKEYS ||
|
||||
node->tree->cnid == HFSPLUS_ATTR_CNID)
|
||||
tmp = hfs_bnode_read_u16(node, key_off) + 2;
|
||||
else
|
||||
tmp = node->tree->max_key_len + 2;
|
||||
|
Reference in New Issue
Block a user