super.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551
  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. */
  9. #include <linux/module.h>
  10. #include <linux/init.h>
  11. #include <linux/pagemap.h>
  12. #include <linux/fs.h>
  13. #include <linux/slab.h>
  14. #include <linux/vfs.h>
  15. #include <linux/nls.h>
  16. static struct inode *hfsplus_alloc_inode(struct super_block *sb);
  17. static void hfsplus_destroy_inode(struct inode *inode);
  18. #include "hfsplus_fs.h"
  19. static int hfsplus_system_read_inode(struct inode *inode)
  20. {
  21. struct hfsplus_vh *vhdr = HFSPLUS_SB(inode->i_sb)->s_vhdr;
  22. switch (inode->i_ino) {
  23. case HFSPLUS_EXT_CNID:
  24. hfsplus_inode_read_fork(inode, &vhdr->ext_file);
  25. inode->i_mapping->a_ops = &hfsplus_btree_aops;
  26. break;
  27. case HFSPLUS_CAT_CNID:
  28. hfsplus_inode_read_fork(inode, &vhdr->cat_file);
  29. inode->i_mapping->a_ops = &hfsplus_btree_aops;
  30. break;
  31. case HFSPLUS_ALLOC_CNID:
  32. hfsplus_inode_read_fork(inode, &vhdr->alloc_file);
  33. inode->i_mapping->a_ops = &hfsplus_aops;
  34. break;
  35. case HFSPLUS_START_CNID:
  36. hfsplus_inode_read_fork(inode, &vhdr->start_file);
  37. break;
  38. case HFSPLUS_ATTR_CNID:
  39. hfsplus_inode_read_fork(inode, &vhdr->attr_file);
  40. inode->i_mapping->a_ops = &hfsplus_btree_aops;
  41. break;
  42. default:
  43. return -EIO;
  44. }
  45. return 0;
  46. }
  47. struct inode *hfsplus_iget(struct super_block *sb, unsigned long ino)
  48. {
  49. struct hfs_find_data fd;
  50. struct inode *inode;
  51. int err;
  52. inode = iget_locked(sb, ino);
  53. if (!inode)
  54. return ERR_PTR(-ENOMEM);
  55. if (!(inode->i_state & I_NEW))
  56. return inode;
  57. INIT_LIST_HEAD(&HFSPLUS_I(inode)->open_dir_list);
  58. mutex_init(&HFSPLUS_I(inode)->extents_lock);
  59. HFSPLUS_I(inode)->flags = 0;
  60. HFSPLUS_I(inode)->rsrc_inode = NULL;
  61. atomic_set(&HFSPLUS_I(inode)->opencnt, 0);
  62. if (inode->i_ino >= HFSPLUS_FIRSTUSER_CNID ||
  63. inode->i_ino == HFSPLUS_ROOT_CNID) {
  64. hfs_find_init(HFSPLUS_SB(inode->i_sb)->cat_tree, &fd);
  65. err = hfsplus_find_cat(inode->i_sb, inode->i_ino, &fd);
  66. if (!err)
  67. err = hfsplus_cat_read_inode(inode, &fd);
  68. hfs_find_exit(&fd);
  69. } else {
  70. err = hfsplus_system_read_inode(inode);
  71. }
  72. if (err) {
  73. iget_failed(inode);
  74. return ERR_PTR(err);
  75. }
  76. unlock_new_inode(inode);
  77. return inode;
  78. }
  79. static int hfsplus_system_write_inode(struct inode *inode)
  80. {
  81. struct hfsplus_sb_info *sbi = HFSPLUS_SB(inode->i_sb);
  82. struct hfsplus_vh *vhdr = sbi->s_vhdr;
  83. struct hfsplus_fork_raw *fork;
  84. struct hfs_btree *tree = NULL;
  85. switch (inode->i_ino) {
  86. case HFSPLUS_EXT_CNID:
  87. fork = &vhdr->ext_file;
  88. tree = sbi->ext_tree;
  89. break;
  90. case HFSPLUS_CAT_CNID:
  91. fork = &vhdr->cat_file;
  92. tree = sbi->cat_tree;
  93. break;
  94. case HFSPLUS_ALLOC_CNID:
  95. fork = &vhdr->alloc_file;
  96. break;
  97. case HFSPLUS_START_CNID:
  98. fork = &vhdr->start_file;
  99. break;
  100. case HFSPLUS_ATTR_CNID:
  101. fork = &vhdr->attr_file;
  102. tree = sbi->attr_tree;
  103. default:
  104. return -EIO;
  105. }
  106. if (fork->total_size != cpu_to_be64(inode->i_size)) {
  107. set_bit(HFSPLUS_SB_WRITEBACKUP, &sbi->flags);
  108. inode->i_sb->s_dirt = 1;
  109. }
  110. hfsplus_inode_write_fork(inode, fork);
  111. if (tree)
  112. hfs_btree_write(tree);
  113. return 0;
  114. }
  115. static int hfsplus_write_inode(struct inode *inode,
  116. struct writeback_control *wbc)
  117. {
  118. dprint(DBG_INODE, "hfsplus_write_inode: %lu\n", inode->i_ino);
  119. hfsplus_ext_write_extent(inode);
  120. if (inode->i_ino >= HFSPLUS_FIRSTUSER_CNID ||
  121. inode->i_ino == HFSPLUS_ROOT_CNID)
  122. return hfsplus_cat_write_inode(inode);
  123. else
  124. return hfsplus_system_write_inode(inode);
  125. }
  126. static void hfsplus_evict_inode(struct inode *inode)
  127. {
  128. dprint(DBG_INODE, "hfsplus_evict_inode: %lu\n", inode->i_ino);
  129. truncate_inode_pages(&inode->i_data, 0);
  130. end_writeback(inode);
  131. if (HFSPLUS_IS_RSRC(inode)) {
  132. HFSPLUS_I(HFSPLUS_I(inode)->rsrc_inode)->rsrc_inode = NULL;
  133. iput(HFSPLUS_I(inode)->rsrc_inode);
  134. }
  135. }
  136. int hfsplus_sync_fs(struct super_block *sb, int wait)
  137. {
  138. struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb);
  139. struct hfsplus_vh *vhdr = sbi->s_vhdr;
  140. int write_backup = 0;
  141. int error, error2;
  142. if (!wait)
  143. return 0;
  144. dprint(DBG_SUPER, "hfsplus_write_super\n");
  145. sb->s_dirt = 0;
  146. /*
  147. * Explicitly write out the special metadata inodes.
  148. *
  149. * While these special inodes are marked as hashed and written
  150. * out peridocically by the flusher threads we redirty them
  151. * during writeout of normal inodes, and thus the life lock
  152. * prevents us from getting the latest state to disk.
  153. */
  154. error = filemap_write_and_wait(sbi->cat_tree->inode->i_mapping);
  155. error2 = filemap_write_and_wait(sbi->ext_tree->inode->i_mapping);
  156. if (!error)
  157. error = error2;
  158. error2 = filemap_write_and_wait(sbi->alloc_file->i_mapping);
  159. if (!error)
  160. error = error2;
  161. mutex_lock(&sbi->vh_mutex);
  162. mutex_lock(&sbi->alloc_mutex);
  163. vhdr->free_blocks = cpu_to_be32(sbi->free_blocks);
  164. vhdr->next_cnid = cpu_to_be32(sbi->next_cnid);
  165. vhdr->folder_count = cpu_to_be32(sbi->folder_count);
  166. vhdr->file_count = cpu_to_be32(sbi->file_count);
  167. if (test_and_clear_bit(HFSPLUS_SB_WRITEBACKUP, &sbi->flags)) {
  168. memcpy(sbi->s_backup_vhdr, sbi->s_vhdr, sizeof(*sbi->s_vhdr));
  169. write_backup = 1;
  170. }
  171. error2 = hfsplus_submit_bio(sb->s_bdev,
  172. sbi->part_start + HFSPLUS_VOLHEAD_SECTOR,
  173. sbi->s_vhdr, WRITE_SYNC);
  174. if (!error)
  175. error = error2;
  176. if (!write_backup)
  177. goto out;
  178. error2 = hfsplus_submit_bio(sb->s_bdev,
  179. sbi->part_start + sbi->sect_count - 2,
  180. sbi->s_backup_vhdr, WRITE_SYNC);
  181. if (!error)
  182. error2 = error;
  183. out:
  184. mutex_unlock(&sbi->alloc_mutex);
  185. mutex_unlock(&sbi->vh_mutex);
  186. return error;
  187. }
  188. static void hfsplus_write_super(struct super_block *sb)
  189. {
  190. if (!(sb->s_flags & MS_RDONLY))
  191. hfsplus_sync_fs(sb, 1);
  192. else
  193. sb->s_dirt = 0;
  194. }
  195. static void hfsplus_put_super(struct super_block *sb)
  196. {
  197. struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb);
  198. dprint(DBG_SUPER, "hfsplus_put_super\n");
  199. if (!sb->s_fs_info)
  200. return;
  201. if (!(sb->s_flags & MS_RDONLY) && sbi->s_vhdr) {
  202. struct hfsplus_vh *vhdr = sbi->s_vhdr;
  203. vhdr->modify_date = hfsp_now2mt();
  204. vhdr->attributes |= cpu_to_be32(HFSPLUS_VOL_UNMNT);
  205. vhdr->attributes &= cpu_to_be32(~HFSPLUS_VOL_INCNSTNT);
  206. hfsplus_sync_fs(sb, 1);
  207. }
  208. hfs_btree_close(sbi->cat_tree);
  209. hfs_btree_close(sbi->ext_tree);
  210. iput(sbi->alloc_file);
  211. iput(sbi->hidden_dir);
  212. kfree(sbi->s_vhdr);
  213. kfree(sbi->s_backup_vhdr);
  214. unload_nls(sbi->nls);
  215. kfree(sb->s_fs_info);
  216. sb->s_fs_info = NULL;
  217. }
  218. static int hfsplus_statfs(struct dentry *dentry, struct kstatfs *buf)
  219. {
  220. struct super_block *sb = dentry->d_sb;
  221. struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb);
  222. u64 id = huge_encode_dev(sb->s_bdev->bd_dev);
  223. buf->f_type = HFSPLUS_SUPER_MAGIC;
  224. buf->f_bsize = sb->s_blocksize;
  225. buf->f_blocks = sbi->total_blocks << sbi->fs_shift;
  226. buf->f_bfree = sbi->free_blocks << sbi->fs_shift;
  227. buf->f_bavail = buf->f_bfree;
  228. buf->f_files = 0xFFFFFFFF;
  229. buf->f_ffree = 0xFFFFFFFF - sbi->next_cnid;
  230. buf->f_fsid.val[0] = (u32)id;
  231. buf->f_fsid.val[1] = (u32)(id >> 32);
  232. buf->f_namelen = HFSPLUS_MAX_STRLEN;
  233. return 0;
  234. }
  235. static int hfsplus_remount(struct super_block *sb, int *flags, char *data)
  236. {
  237. if ((*flags & MS_RDONLY) == (sb->s_flags & MS_RDONLY))
  238. return 0;
  239. if (!(*flags & MS_RDONLY)) {
  240. struct hfsplus_vh *vhdr = HFSPLUS_SB(sb)->s_vhdr;
  241. int force = 0;
  242. if (!hfsplus_parse_options_remount(data, &force))
  243. return -EINVAL;
  244. if (!(vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_UNMNT))) {
  245. printk(KERN_WARNING "hfs: filesystem was not cleanly unmounted, "
  246. "running fsck.hfsplus is recommended. leaving read-only.\n");
  247. sb->s_flags |= MS_RDONLY;
  248. *flags |= MS_RDONLY;
  249. } else if (force) {
  250. /* nothing */
  251. } else if (vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_SOFTLOCK)) {
  252. printk(KERN_WARNING "hfs: filesystem is marked locked, leaving read-only.\n");
  253. sb->s_flags |= MS_RDONLY;
  254. *flags |= MS_RDONLY;
  255. } else if (vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_JOURNALED)) {
  256. printk(KERN_WARNING "hfs: filesystem is marked journaled, leaving read-only.\n");
  257. sb->s_flags |= MS_RDONLY;
  258. *flags |= MS_RDONLY;
  259. }
  260. }
  261. return 0;
  262. }
  263. static const struct super_operations hfsplus_sops = {
  264. .alloc_inode = hfsplus_alloc_inode,
  265. .destroy_inode = hfsplus_destroy_inode,
  266. .write_inode = hfsplus_write_inode,
  267. .evict_inode = hfsplus_evict_inode,
  268. .put_super = hfsplus_put_super,
  269. .write_super = hfsplus_write_super,
  270. .sync_fs = hfsplus_sync_fs,
  271. .statfs = hfsplus_statfs,
  272. .remount_fs = hfsplus_remount,
  273. .show_options = hfsplus_show_options,
  274. };
  275. static int hfsplus_fill_super(struct super_block *sb, void *data, int silent)
  276. {
  277. struct hfsplus_vh *vhdr;
  278. struct hfsplus_sb_info *sbi;
  279. hfsplus_cat_entry entry;
  280. struct hfs_find_data fd;
  281. struct inode *root, *inode;
  282. struct qstr str;
  283. struct nls_table *nls = NULL;
  284. int err = -EINVAL;
  285. sbi = kzalloc(sizeof(*sbi), GFP_KERNEL);
  286. if (!sbi)
  287. return -ENOMEM;
  288. sb->s_fs_info = sbi;
  289. mutex_init(&sbi->alloc_mutex);
  290. mutex_init(&sbi->vh_mutex);
  291. hfsplus_fill_defaults(sbi);
  292. if (!hfsplus_parse_options(data, sbi)) {
  293. printk(KERN_ERR "hfs: unable to parse mount options\n");
  294. err = -EINVAL;
  295. goto cleanup;
  296. }
  297. /* temporarily use utf8 to correctly find the hidden dir below */
  298. nls = sbi->nls;
  299. sbi->nls = load_nls("utf8");
  300. if (!sbi->nls) {
  301. printk(KERN_ERR "hfs: unable to load nls for utf8\n");
  302. err = -EINVAL;
  303. goto cleanup;
  304. }
  305. /* Grab the volume header */
  306. if (hfsplus_read_wrapper(sb)) {
  307. if (!silent)
  308. printk(KERN_WARNING "hfs: unable to find HFS+ superblock\n");
  309. err = -EINVAL;
  310. goto cleanup;
  311. }
  312. vhdr = sbi->s_vhdr;
  313. /* Copy parts of the volume header into the superblock */
  314. sb->s_magic = HFSPLUS_VOLHEAD_SIG;
  315. if (be16_to_cpu(vhdr->version) < HFSPLUS_MIN_VERSION ||
  316. be16_to_cpu(vhdr->version) > HFSPLUS_CURRENT_VERSION) {
  317. printk(KERN_ERR "hfs: wrong filesystem version\n");
  318. goto cleanup;
  319. }
  320. sbi->total_blocks = be32_to_cpu(vhdr->total_blocks);
  321. sbi->free_blocks = be32_to_cpu(vhdr->free_blocks);
  322. sbi->next_cnid = be32_to_cpu(vhdr->next_cnid);
  323. sbi->file_count = be32_to_cpu(vhdr->file_count);
  324. sbi->folder_count = be32_to_cpu(vhdr->folder_count);
  325. sbi->data_clump_blocks =
  326. be32_to_cpu(vhdr->data_clump_sz) >> sbi->alloc_blksz_shift;
  327. if (!sbi->data_clump_blocks)
  328. sbi->data_clump_blocks = 1;
  329. sbi->rsrc_clump_blocks =
  330. be32_to_cpu(vhdr->rsrc_clump_sz) >> sbi->alloc_blksz_shift;
  331. if (!sbi->rsrc_clump_blocks)
  332. sbi->rsrc_clump_blocks = 1;
  333. /* Set up operations so we can load metadata */
  334. sb->s_op = &hfsplus_sops;
  335. sb->s_maxbytes = MAX_LFS_FILESIZE;
  336. if (!(vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_UNMNT))) {
  337. printk(KERN_WARNING "hfs: Filesystem was not cleanly unmounted, "
  338. "running fsck.hfsplus is recommended. mounting read-only.\n");
  339. sb->s_flags |= MS_RDONLY;
  340. } else if (test_and_clear_bit(HFSPLUS_SB_FORCE, &sbi->flags)) {
  341. /* nothing */
  342. } else if (vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_SOFTLOCK)) {
  343. printk(KERN_WARNING "hfs: Filesystem is marked locked, mounting read-only.\n");
  344. sb->s_flags |= MS_RDONLY;
  345. } else if ((vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_JOURNALED)) && !(sb->s_flags & MS_RDONLY)) {
  346. printk(KERN_WARNING "hfs: write access to a journaled filesystem is not supported, "
  347. "use the force option at your own risk, mounting read-only.\n");
  348. sb->s_flags |= MS_RDONLY;
  349. }
  350. /* Load metadata objects (B*Trees) */
  351. sbi->ext_tree = hfs_btree_open(sb, HFSPLUS_EXT_CNID);
  352. if (!sbi->ext_tree) {
  353. printk(KERN_ERR "hfs: failed to load extents file\n");
  354. goto cleanup;
  355. }
  356. sbi->cat_tree = hfs_btree_open(sb, HFSPLUS_CAT_CNID);
  357. if (!sbi->cat_tree) {
  358. printk(KERN_ERR "hfs: failed to load catalog file\n");
  359. goto cleanup;
  360. }
  361. inode = hfsplus_iget(sb, HFSPLUS_ALLOC_CNID);
  362. if (IS_ERR(inode)) {
  363. printk(KERN_ERR "hfs: failed to load allocation file\n");
  364. err = PTR_ERR(inode);
  365. goto cleanup;
  366. }
  367. sbi->alloc_file = inode;
  368. /* Load the root directory */
  369. root = hfsplus_iget(sb, HFSPLUS_ROOT_CNID);
  370. if (IS_ERR(root)) {
  371. printk(KERN_ERR "hfs: failed to load root directory\n");
  372. err = PTR_ERR(root);
  373. goto cleanup;
  374. }
  375. sb->s_root = d_alloc_root(root);
  376. if (!sb->s_root) {
  377. iput(root);
  378. err = -ENOMEM;
  379. goto cleanup;
  380. }
  381. sb->s_root->d_op = &hfsplus_dentry_operations;
  382. str.len = sizeof(HFSP_HIDDENDIR_NAME) - 1;
  383. str.name = HFSP_HIDDENDIR_NAME;
  384. hfs_find_init(sbi->cat_tree, &fd);
  385. hfsplus_cat_build_key(sb, fd.search_key, HFSPLUS_ROOT_CNID, &str);
  386. if (!hfs_brec_read(&fd, &entry, sizeof(entry))) {
  387. hfs_find_exit(&fd);
  388. if (entry.type != cpu_to_be16(HFSPLUS_FOLDER))
  389. goto cleanup;
  390. inode = hfsplus_iget(sb, be32_to_cpu(entry.folder.id));
  391. if (IS_ERR(inode)) {
  392. err = PTR_ERR(inode);
  393. goto cleanup;
  394. }
  395. sbi->hidden_dir = inode;
  396. } else
  397. hfs_find_exit(&fd);
  398. if (sb->s_flags & MS_RDONLY)
  399. goto out;
  400. /* H+LX == hfsplusutils, H+Lx == this driver, H+lx is unused
  401. * all three are registered with Apple for our use
  402. */
  403. vhdr->last_mount_vers = cpu_to_be32(HFSP_MOUNT_VERSION);
  404. vhdr->modify_date = hfsp_now2mt();
  405. be32_add_cpu(&vhdr->write_count, 1);
  406. vhdr->attributes &= cpu_to_be32(~HFSPLUS_VOL_UNMNT);
  407. vhdr->attributes |= cpu_to_be32(HFSPLUS_VOL_INCNSTNT);
  408. hfsplus_sync_fs(sb, 1);
  409. if (!sbi->hidden_dir) {
  410. mutex_lock(&sbi->vh_mutex);
  411. sbi->hidden_dir = hfsplus_new_inode(sb, S_IFDIR);
  412. hfsplus_create_cat(sbi->hidden_dir->i_ino, sb->s_root->d_inode,
  413. &str, sbi->hidden_dir);
  414. mutex_unlock(&sbi->vh_mutex);
  415. mark_inode_dirty(sbi->hidden_dir);
  416. }
  417. out:
  418. unload_nls(sbi->nls);
  419. sbi->nls = nls;
  420. return 0;
  421. cleanup:
  422. hfsplus_put_super(sb);
  423. unload_nls(nls);
  424. return err;
  425. }
  426. MODULE_AUTHOR("Brad Boyer");
  427. MODULE_DESCRIPTION("Extended Macintosh Filesystem");
  428. MODULE_LICENSE("GPL");
  429. static struct kmem_cache *hfsplus_inode_cachep;
  430. static struct inode *hfsplus_alloc_inode(struct super_block *sb)
  431. {
  432. struct hfsplus_inode_info *i;
  433. i = kmem_cache_alloc(hfsplus_inode_cachep, GFP_KERNEL);
  434. return i ? &i->vfs_inode : NULL;
  435. }
  436. static void hfsplus_destroy_inode(struct inode *inode)
  437. {
  438. kmem_cache_free(hfsplus_inode_cachep, HFSPLUS_I(inode));
  439. }
  440. #define HFSPLUS_INODE_SIZE sizeof(struct hfsplus_inode_info)
  441. static struct dentry *hfsplus_mount(struct file_system_type *fs_type,
  442. int flags, const char *dev_name, void *data)
  443. {
  444. return mount_bdev(fs_type, flags, dev_name, data, hfsplus_fill_super);
  445. }
  446. static struct file_system_type hfsplus_fs_type = {
  447. .owner = THIS_MODULE,
  448. .name = "hfsplus",
  449. .mount = hfsplus_mount,
  450. .kill_sb = kill_block_super,
  451. .fs_flags = FS_REQUIRES_DEV,
  452. };
  453. static void hfsplus_init_once(void *p)
  454. {
  455. struct hfsplus_inode_info *i = p;
  456. inode_init_once(&i->vfs_inode);
  457. }
  458. static int __init init_hfsplus_fs(void)
  459. {
  460. int err;
  461. hfsplus_inode_cachep = kmem_cache_create("hfsplus_icache",
  462. HFSPLUS_INODE_SIZE, 0, SLAB_HWCACHE_ALIGN,
  463. hfsplus_init_once);
  464. if (!hfsplus_inode_cachep)
  465. return -ENOMEM;
  466. err = register_filesystem(&hfsplus_fs_type);
  467. if (err)
  468. kmem_cache_destroy(hfsplus_inode_cachep);
  469. return err;
  470. }
  471. static void __exit exit_hfsplus_fs(void)
  472. {
  473. unregister_filesystem(&hfsplus_fs_type);
  474. kmem_cache_destroy(hfsplus_inode_cachep);
  475. }
  476. module_init(init_hfsplus_fs)
  477. module_exit(exit_hfsplus_fs)