super.c (a5001a27802723d6de50d9d8a446d594116524b0) super.c (d45bce8faf55511ec7d7ffc301461d864d67f1af)
1/*
2 * linux/fs/hfsplus/super.c
3 *
4 * Copyright (C) 2001
5 * Brad Boyer (flar@allandria.com)
6 * (C) 2003 Ardis Technologies <roman@ardistech.com>
7 *
8 */

--- 366 unchanged lines hidden (view full) ---

375 /* Load the root directory */
376 root = iget(sb, HFSPLUS_ROOT_CNID);
377 sb->s_root = d_alloc_root(root);
378 if (!sb->s_root) {
379 printk(KERN_ERR "hfs: failed to load root directory\n");
380 iput(root);
381 goto cleanup;
382 }
1/*
2 * linux/fs/hfsplus/super.c
3 *
4 * Copyright (C) 2001
5 * Brad Boyer (flar@allandria.com)
6 * (C) 2003 Ardis Technologies <roman@ardistech.com>
7 *
8 */

--- 366 unchanged lines hidden (view full) ---

375 /* Load the root directory */
376 root = iget(sb, HFSPLUS_ROOT_CNID);
377 sb->s_root = d_alloc_root(root);
378 if (!sb->s_root) {
379 printk(KERN_ERR "hfs: failed to load root directory\n");
380 iput(root);
381 goto cleanup;
382 }
383 sb->s_root->d_op = &hfsplus_dentry_operations;
383
384 str.len = sizeof(HFSP_HIDDENDIR_NAME) - 1;
385 str.name = HFSP_HIDDENDIR_NAME;
386 hfs_find_init(HFSPLUS_SB(sb).cat_tree, &fd);
387 hfsplus_cat_build_key(sb, fd.search_key, HFSPLUS_ROOT_CNID, &str);
388 if (!hfs_brec_read(&fd, &entry, sizeof(entry))) {
389 hfs_find_exit(&fd);
390 if (entry.type != cpu_to_be16(HFSPLUS_FOLDER))

--- 107 unchanged lines hidden ---
384
385 str.len = sizeof(HFSP_HIDDENDIR_NAME) - 1;
386 str.name = HFSP_HIDDENDIR_NAME;
387 hfs_find_init(HFSPLUS_SB(sb).cat_tree, &fd);
388 hfsplus_cat_build_key(sb, fd.search_key, HFSPLUS_ROOT_CNID, &str);
389 if (!hfs_brec_read(&fd, &entry, sizeof(entry))) {
390 hfs_find_exit(&fd);
391 if (entry.type != cpu_to_be16(HFSPLUS_FOLDER))

--- 107 unchanged lines hidden ---