inode.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602
  1. /*
  2. * QNX4 file system, Linux implementation.
  3. *
  4. * Version : 0.2.1
  5. *
  6. * Using parts of the xiafs filesystem.
  7. *
  8. * History :
  9. *
  10. * 01-06-1998 by Richard Frowijn : first release.
  11. * 20-06-1998 by Frank Denis : Linux 2.1.99+ support, boot signature, misc.
  12. * 30-06-1998 by Frank Denis : first step to write inodes.
  13. */
  14. #include <linux/module.h>
  15. #include <linux/types.h>
  16. #include <linux/string.h>
  17. #include <linux/errno.h>
  18. #include <linux/slab.h>
  19. #include <linux/fs.h>
  20. #include <linux/qnx4_fs.h>
  21. #include <linux/init.h>
  22. #include <linux/highuid.h>
  23. #include <linux/smp_lock.h>
  24. #include <linux/pagemap.h>
  25. #include <linux/buffer_head.h>
  26. #include <linux/writeback.h>
  27. #include <linux/vfs.h>
  28. #include <asm/uaccess.h>
  29. #define QNX4_VERSION 4
  30. #define QNX4_BMNAME ".bitmap"
  31. static const struct super_operations qnx4_sops;
  32. #ifdef CONFIG_QNX4FS_RW
  33. static void qnx4_delete_inode(struct inode *inode)
  34. {
  35. QNX4DEBUG(("qnx4: deleting inode [%lu]\n", (unsigned long) inode->i_ino));
  36. truncate_inode_pages(&inode->i_data, 0);
  37. inode->i_size = 0;
  38. qnx4_truncate(inode);
  39. lock_kernel();
  40. qnx4_free_inode(inode);
  41. unlock_kernel();
  42. }
  43. static int qnx4_write_inode(struct inode *inode, int do_sync)
  44. {
  45. struct qnx4_inode_entry *raw_inode;
  46. int block, ino;
  47. struct buffer_head *bh;
  48. ino = inode->i_ino;
  49. QNX4DEBUG(("qnx4: write inode 1.\n"));
  50. if (inode->i_nlink == 0) {
  51. return 0;
  52. }
  53. if (!ino) {
  54. printk("qnx4: bad inode number on dev %s: %d is out of range\n",
  55. inode->i_sb->s_id, ino);
  56. return -EIO;
  57. }
  58. QNX4DEBUG(("qnx4: write inode 2.\n"));
  59. block = ino / QNX4_INODES_PER_BLOCK;
  60. lock_kernel();
  61. if (!(bh = sb_bread(inode->i_sb, block))) {
  62. printk("qnx4: major problem: unable to read inode from dev "
  63. "%s\n", inode->i_sb->s_id);
  64. unlock_kernel();
  65. return -EIO;
  66. }
  67. raw_inode = ((struct qnx4_inode_entry *) bh->b_data) +
  68. (ino % QNX4_INODES_PER_BLOCK);
  69. raw_inode->di_mode = cpu_to_le16(inode->i_mode);
  70. raw_inode->di_uid = cpu_to_le16(fs_high2lowuid(inode->i_uid));
  71. raw_inode->di_gid = cpu_to_le16(fs_high2lowgid(inode->i_gid));
  72. raw_inode->di_nlink = cpu_to_le16(inode->i_nlink);
  73. raw_inode->di_size = cpu_to_le32(inode->i_size);
  74. raw_inode->di_mtime = cpu_to_le32(inode->i_mtime.tv_sec);
  75. raw_inode->di_atime = cpu_to_le32(inode->i_atime.tv_sec);
  76. raw_inode->di_ctime = cpu_to_le32(inode->i_ctime.tv_sec);
  77. raw_inode->di_first_xtnt.xtnt_size = cpu_to_le32(inode->i_blocks);
  78. mark_buffer_dirty(bh);
  79. if (do_sync) {
  80. sync_dirty_buffer(bh);
  81. if (buffer_req(bh) && !buffer_uptodate(bh)) {
  82. printk("qnx4: IO error syncing inode [%s:%08x]\n",
  83. inode->i_sb->s_id, ino);
  84. brelse(bh);
  85. unlock_kernel();
  86. return -EIO;
  87. }
  88. }
  89. brelse(bh);
  90. unlock_kernel();
  91. return 0;
  92. }
  93. #endif
  94. static void qnx4_put_super(struct super_block *sb);
  95. static struct inode *qnx4_alloc_inode(struct super_block *sb);
  96. static void qnx4_destroy_inode(struct inode *inode);
  97. static int qnx4_remount(struct super_block *sb, int *flags, char *data);
  98. static int qnx4_statfs(struct dentry *, struct kstatfs *);
  99. static const struct super_operations qnx4_sops =
  100. {
  101. .alloc_inode = qnx4_alloc_inode,
  102. .destroy_inode = qnx4_destroy_inode,
  103. .put_super = qnx4_put_super,
  104. .statfs = qnx4_statfs,
  105. .remount_fs = qnx4_remount,
  106. #ifdef CONFIG_QNX4FS_RW
  107. .write_inode = qnx4_write_inode,
  108. .delete_inode = qnx4_delete_inode,
  109. #endif
  110. };
  111. static int qnx4_remount(struct super_block *sb, int *flags, char *data)
  112. {
  113. struct qnx4_sb_info *qs;
  114. qs = qnx4_sb(sb);
  115. qs->Version = QNX4_VERSION;
  116. #ifndef CONFIG_QNX4FS_RW
  117. *flags |= MS_RDONLY;
  118. #endif
  119. if (*flags & MS_RDONLY) {
  120. return 0;
  121. }
  122. mark_buffer_dirty(qs->sb_buf);
  123. return 0;
  124. }
  125. static struct buffer_head *qnx4_getblk(struct inode *inode, int nr,
  126. int create)
  127. {
  128. struct buffer_head *result = NULL;
  129. if ( nr >= 0 )
  130. nr = qnx4_block_map( inode, nr );
  131. if (nr) {
  132. result = sb_getblk(inode->i_sb, nr);
  133. return result;
  134. }
  135. if (!create) {
  136. return NULL;
  137. }
  138. #if 0
  139. tmp = qnx4_new_block(inode->i_sb);
  140. if (!tmp) {
  141. return NULL;
  142. }
  143. result = sb_getblk(inode->i_sb, tmp);
  144. if (tst) {
  145. qnx4_free_block(inode->i_sb, tmp);
  146. brelse(result);
  147. goto repeat;
  148. }
  149. tst = tmp;
  150. #endif
  151. inode->i_ctime = CURRENT_TIME_SEC;
  152. mark_inode_dirty(inode);
  153. return result;
  154. }
  155. struct buffer_head *qnx4_bread(struct inode *inode, int block, int create)
  156. {
  157. struct buffer_head *bh;
  158. bh = qnx4_getblk(inode, block, create);
  159. if (!bh || buffer_uptodate(bh)) {
  160. return bh;
  161. }
  162. ll_rw_block(READ, 1, &bh);
  163. wait_on_buffer(bh);
  164. if (buffer_uptodate(bh)) {
  165. return bh;
  166. }
  167. brelse(bh);
  168. return NULL;
  169. }
  170. static int qnx4_get_block( struct inode *inode, sector_t iblock, struct buffer_head *bh, int create )
  171. {
  172. unsigned long phys;
  173. QNX4DEBUG(("qnx4: qnx4_get_block inode=[%ld] iblock=[%ld]\n",inode->i_ino,iblock));
  174. phys = qnx4_block_map( inode, iblock );
  175. if ( phys ) {
  176. // logical block is before EOF
  177. map_bh(bh, inode->i_sb, phys);
  178. } else if ( create ) {
  179. // to be done.
  180. }
  181. return 0;
  182. }
  183. unsigned long qnx4_block_map( struct inode *inode, long iblock )
  184. {
  185. int ix;
  186. long offset, i_xblk;
  187. unsigned long block = 0;
  188. struct buffer_head *bh = NULL;
  189. struct qnx4_xblk *xblk = NULL;
  190. struct qnx4_inode_entry *qnx4_inode = qnx4_raw_inode(inode);
  191. u16 nxtnt = le16_to_cpu(qnx4_inode->di_num_xtnts);
  192. if ( iblock < le32_to_cpu(qnx4_inode->di_first_xtnt.xtnt_size) ) {
  193. // iblock is in the first extent. This is easy.
  194. block = le32_to_cpu(qnx4_inode->di_first_xtnt.xtnt_blk) + iblock - 1;
  195. } else {
  196. // iblock is beyond first extent. We have to follow the extent chain.
  197. i_xblk = le32_to_cpu(qnx4_inode->di_xblk);
  198. offset = iblock - le32_to_cpu(qnx4_inode->di_first_xtnt.xtnt_size);
  199. ix = 0;
  200. while ( --nxtnt > 0 ) {
  201. if ( ix == 0 ) {
  202. // read next xtnt block.
  203. bh = sb_bread(inode->i_sb, i_xblk - 1);
  204. if ( !bh ) {
  205. QNX4DEBUG(("qnx4: I/O error reading xtnt block [%ld])\n", i_xblk - 1));
  206. return -EIO;
  207. }
  208. xblk = (struct qnx4_xblk*)bh->b_data;
  209. if ( memcmp( xblk->xblk_signature, "IamXblk", 7 ) ) {
  210. QNX4DEBUG(("qnx4: block at %ld is not a valid xtnt\n", qnx4_inode->i_xblk));
  211. return -EIO;
  212. }
  213. }
  214. if ( offset < le32_to_cpu(xblk->xblk_xtnts[ix].xtnt_size) ) {
  215. // got it!
  216. block = le32_to_cpu(xblk->xblk_xtnts[ix].xtnt_blk) + offset - 1;
  217. break;
  218. }
  219. offset -= le32_to_cpu(xblk->xblk_xtnts[ix].xtnt_size);
  220. if ( ++ix >= xblk->xblk_num_xtnts ) {
  221. i_xblk = le32_to_cpu(xblk->xblk_next_xblk);
  222. ix = 0;
  223. brelse( bh );
  224. bh = NULL;
  225. }
  226. }
  227. if ( bh )
  228. brelse( bh );
  229. }
  230. QNX4DEBUG(("qnx4: mapping block %ld of inode %ld = %ld\n",iblock,inode->i_ino,block));
  231. return block;
  232. }
  233. static int qnx4_statfs(struct dentry *dentry, struct kstatfs *buf)
  234. {
  235. struct super_block *sb = dentry->d_sb;
  236. u64 id = huge_encode_dev(sb->s_bdev->bd_dev);
  237. lock_kernel();
  238. buf->f_type = sb->s_magic;
  239. buf->f_bsize = sb->s_blocksize;
  240. buf->f_blocks = le32_to_cpu(qnx4_sb(sb)->BitMap->di_size) * 8;
  241. buf->f_bfree = qnx4_count_free_blocks(sb);
  242. buf->f_bavail = buf->f_bfree;
  243. buf->f_namelen = QNX4_NAME_MAX;
  244. buf->f_fsid.val[0] = (u32)id;
  245. buf->f_fsid.val[1] = (u32)(id >> 32);
  246. unlock_kernel();
  247. return 0;
  248. }
  249. /*
  250. * Check the root directory of the filesystem to make sure
  251. * it really _is_ a qnx4 filesystem, and to check the size
  252. * of the directory entry.
  253. */
  254. static const char *qnx4_checkroot(struct super_block *sb)
  255. {
  256. struct buffer_head *bh;
  257. struct qnx4_inode_entry *rootdir;
  258. int rd, rl;
  259. int i, j;
  260. int found = 0;
  261. if (*(qnx4_sb(sb)->sb->RootDir.di_fname) != '/') {
  262. return "no qnx4 filesystem (no root dir).";
  263. } else {
  264. QNX4DEBUG(("QNX4 filesystem found on dev %s.\n", sb->s_id));
  265. rd = le32_to_cpu(qnx4_sb(sb)->sb->RootDir.di_first_xtnt.xtnt_blk) - 1;
  266. rl = le32_to_cpu(qnx4_sb(sb)->sb->RootDir.di_first_xtnt.xtnt_size);
  267. for (j = 0; j < rl; j++) {
  268. bh = sb_bread(sb, rd + j); /* root dir, first block */
  269. if (bh == NULL) {
  270. return "unable to read root entry.";
  271. }
  272. for (i = 0; i < QNX4_INODES_PER_BLOCK; i++) {
  273. rootdir = (struct qnx4_inode_entry *) (bh->b_data + i * QNX4_DIR_ENTRY_SIZE);
  274. if (rootdir->di_fname != NULL) {
  275. QNX4DEBUG(("Rootdir entry found : [%s]\n", rootdir->di_fname));
  276. if (!strncmp(rootdir->di_fname, QNX4_BMNAME, sizeof QNX4_BMNAME)) {
  277. found = 1;
  278. qnx4_sb(sb)->BitMap = kmalloc( sizeof( struct qnx4_inode_entry ), GFP_KERNEL );
  279. if (!qnx4_sb(sb)->BitMap) {
  280. brelse (bh);
  281. return "not enough memory for bitmap inode";
  282. }
  283. memcpy( qnx4_sb(sb)->BitMap, rootdir, sizeof( struct qnx4_inode_entry ) ); /* keep bitmap inode known */
  284. break;
  285. }
  286. }
  287. }
  288. brelse(bh);
  289. if (found != 0) {
  290. break;
  291. }
  292. }
  293. if (found == 0) {
  294. return "bitmap file not found.";
  295. }
  296. }
  297. return NULL;
  298. }
  299. static int qnx4_fill_super(struct super_block *s, void *data, int silent)
  300. {
  301. struct buffer_head *bh;
  302. struct inode *root;
  303. const char *errmsg;
  304. struct qnx4_sb_info *qs;
  305. int ret = -EINVAL;
  306. qs = kzalloc(sizeof(struct qnx4_sb_info), GFP_KERNEL);
  307. if (!qs)
  308. return -ENOMEM;
  309. s->s_fs_info = qs;
  310. sb_set_blocksize(s, QNX4_BLOCK_SIZE);
  311. /* Check the superblock signature. Since the qnx4 code is
  312. dangerous, we should leave as quickly as possible
  313. if we don't belong here... */
  314. bh = sb_bread(s, 1);
  315. if (!bh) {
  316. printk("qnx4: unable to read the superblock\n");
  317. goto outnobh;
  318. }
  319. if ( le32_to_cpup((__le32*) bh->b_data) != QNX4_SUPER_MAGIC ) {
  320. if (!silent)
  321. printk("qnx4: wrong fsid in superblock.\n");
  322. goto out;
  323. }
  324. s->s_op = &qnx4_sops;
  325. s->s_magic = QNX4_SUPER_MAGIC;
  326. #ifndef CONFIG_QNX4FS_RW
  327. s->s_flags |= MS_RDONLY; /* Yup, read-only yet */
  328. #endif
  329. qnx4_sb(s)->sb_buf = bh;
  330. qnx4_sb(s)->sb = (struct qnx4_super_block *) bh->b_data;
  331. /* check before allocating dentries, inodes, .. */
  332. errmsg = qnx4_checkroot(s);
  333. if (errmsg != NULL) {
  334. if (!silent)
  335. printk("qnx4: %s\n", errmsg);
  336. goto out;
  337. }
  338. /* does root not have inode number QNX4_ROOT_INO ?? */
  339. root = qnx4_iget(s, QNX4_ROOT_INO * QNX4_INODES_PER_BLOCK);
  340. if (IS_ERR(root)) {
  341. printk("qnx4: get inode failed\n");
  342. ret = PTR_ERR(root);
  343. goto out;
  344. }
  345. ret = -ENOMEM;
  346. s->s_root = d_alloc_root(root);
  347. if (s->s_root == NULL)
  348. goto outi;
  349. brelse(bh);
  350. return 0;
  351. outi:
  352. iput(root);
  353. out:
  354. brelse(bh);
  355. outnobh:
  356. kfree(qs);
  357. s->s_fs_info = NULL;
  358. return ret;
  359. }
  360. static void qnx4_put_super(struct super_block *sb)
  361. {
  362. struct qnx4_sb_info *qs = qnx4_sb(sb);
  363. kfree( qs->BitMap );
  364. kfree( qs );
  365. sb->s_fs_info = NULL;
  366. return;
  367. }
  368. static int qnx4_writepage(struct page *page, struct writeback_control *wbc)
  369. {
  370. return block_write_full_page(page,qnx4_get_block, wbc);
  371. }
  372. static int qnx4_readpage(struct file *file, struct page *page)
  373. {
  374. return block_read_full_page(page,qnx4_get_block);
  375. }
  376. static int qnx4_write_begin(struct file *file, struct address_space *mapping,
  377. loff_t pos, unsigned len, unsigned flags,
  378. struct page **pagep, void **fsdata)
  379. {
  380. struct qnx4_inode_info *qnx4_inode = qnx4_i(mapping->host);
  381. *pagep = NULL;
  382. return cont_write_begin(file, mapping, pos, len, flags, pagep, fsdata,
  383. qnx4_get_block,
  384. &qnx4_inode->mmu_private);
  385. }
  386. static sector_t qnx4_bmap(struct address_space *mapping, sector_t block)
  387. {
  388. return generic_block_bmap(mapping,block,qnx4_get_block);
  389. }
  390. static const struct address_space_operations qnx4_aops = {
  391. .readpage = qnx4_readpage,
  392. .writepage = qnx4_writepage,
  393. .sync_page = block_sync_page,
  394. .write_begin = qnx4_write_begin,
  395. .write_end = generic_write_end,
  396. .bmap = qnx4_bmap
  397. };
  398. struct inode *qnx4_iget(struct super_block *sb, unsigned long ino)
  399. {
  400. struct buffer_head *bh;
  401. struct qnx4_inode_entry *raw_inode;
  402. int block;
  403. struct qnx4_inode_entry *qnx4_inode;
  404. struct inode *inode;
  405. inode = iget_locked(sb, ino);
  406. if (!inode)
  407. return ERR_PTR(-ENOMEM);
  408. if (!(inode->i_state & I_NEW))
  409. return inode;
  410. qnx4_inode = qnx4_raw_inode(inode);
  411. inode->i_mode = 0;
  412. QNX4DEBUG(("Reading inode : [%d]\n", ino));
  413. if (!ino) {
  414. printk(KERN_ERR "qnx4: bad inode number on dev %s: %lu is "
  415. "out of range\n",
  416. sb->s_id, ino);
  417. iget_failed(inode);
  418. return ERR_PTR(-EIO);
  419. }
  420. block = ino / QNX4_INODES_PER_BLOCK;
  421. if (!(bh = sb_bread(sb, block))) {
  422. printk("qnx4: major problem: unable to read inode from dev "
  423. "%s\n", sb->s_id);
  424. iget_failed(inode);
  425. return ERR_PTR(-EIO);
  426. }
  427. raw_inode = ((struct qnx4_inode_entry *) bh->b_data) +
  428. (ino % QNX4_INODES_PER_BLOCK);
  429. inode->i_mode = le16_to_cpu(raw_inode->di_mode);
  430. inode->i_uid = (uid_t)le16_to_cpu(raw_inode->di_uid);
  431. inode->i_gid = (gid_t)le16_to_cpu(raw_inode->di_gid);
  432. inode->i_nlink = le16_to_cpu(raw_inode->di_nlink);
  433. inode->i_size = le32_to_cpu(raw_inode->di_size);
  434. inode->i_mtime.tv_sec = le32_to_cpu(raw_inode->di_mtime);
  435. inode->i_mtime.tv_nsec = 0;
  436. inode->i_atime.tv_sec = le32_to_cpu(raw_inode->di_atime);
  437. inode->i_atime.tv_nsec = 0;
  438. inode->i_ctime.tv_sec = le32_to_cpu(raw_inode->di_ctime);
  439. inode->i_ctime.tv_nsec = 0;
  440. inode->i_blocks = le32_to_cpu(raw_inode->di_first_xtnt.xtnt_size);
  441. memcpy(qnx4_inode, raw_inode, QNX4_DIR_ENTRY_SIZE);
  442. if (S_ISREG(inode->i_mode)) {
  443. inode->i_op = &qnx4_file_inode_operations;
  444. inode->i_fop = &qnx4_file_operations;
  445. inode->i_mapping->a_ops = &qnx4_aops;
  446. qnx4_i(inode)->mmu_private = inode->i_size;
  447. } else if (S_ISDIR(inode->i_mode)) {
  448. inode->i_op = &qnx4_dir_inode_operations;
  449. inode->i_fop = &qnx4_dir_operations;
  450. } else if (S_ISLNK(inode->i_mode)) {
  451. inode->i_op = &page_symlink_inode_operations;
  452. inode->i_mapping->a_ops = &qnx4_aops;
  453. qnx4_i(inode)->mmu_private = inode->i_size;
  454. } else {
  455. printk(KERN_ERR "qnx4: bad inode %lu on dev %s\n",
  456. ino, sb->s_id);
  457. iget_failed(inode);
  458. brelse(bh);
  459. return ERR_PTR(-EIO);
  460. }
  461. brelse(bh);
  462. unlock_new_inode(inode);
  463. return inode;
  464. }
  465. static struct kmem_cache *qnx4_inode_cachep;
  466. static struct inode *qnx4_alloc_inode(struct super_block *sb)
  467. {
  468. struct qnx4_inode_info *ei;
  469. ei = kmem_cache_alloc(qnx4_inode_cachep, GFP_KERNEL);
  470. if (!ei)
  471. return NULL;
  472. return &ei->vfs_inode;
  473. }
  474. static void qnx4_destroy_inode(struct inode *inode)
  475. {
  476. kmem_cache_free(qnx4_inode_cachep, qnx4_i(inode));
  477. }
  478. static void init_once(void *foo)
  479. {
  480. struct qnx4_inode_info *ei = (struct qnx4_inode_info *) foo;
  481. inode_init_once(&ei->vfs_inode);
  482. }
  483. static int init_inodecache(void)
  484. {
  485. qnx4_inode_cachep = kmem_cache_create("qnx4_inode_cache",
  486. sizeof(struct qnx4_inode_info),
  487. 0, (SLAB_RECLAIM_ACCOUNT|
  488. SLAB_MEM_SPREAD),
  489. init_once);
  490. if (qnx4_inode_cachep == NULL)
  491. return -ENOMEM;
  492. return 0;
  493. }
  494. static void destroy_inodecache(void)
  495. {
  496. kmem_cache_destroy(qnx4_inode_cachep);
  497. }
  498. static int qnx4_get_sb(struct file_system_type *fs_type,
  499. int flags, const char *dev_name, void *data, struct vfsmount *mnt)
  500. {
  501. return get_sb_bdev(fs_type, flags, dev_name, data, qnx4_fill_super,
  502. mnt);
  503. }
  504. static struct file_system_type qnx4_fs_type = {
  505. .owner = THIS_MODULE,
  506. .name = "qnx4",
  507. .get_sb = qnx4_get_sb,
  508. .kill_sb = kill_block_super,
  509. .fs_flags = FS_REQUIRES_DEV,
  510. };
  511. static int __init init_qnx4_fs(void)
  512. {
  513. int err;
  514. err = init_inodecache();
  515. if (err)
  516. return err;
  517. err = register_filesystem(&qnx4_fs_type);
  518. if (err) {
  519. destroy_inodecache();
  520. return err;
  521. }
  522. printk("QNX4 filesystem 0.2.3 registered.\n");
  523. return 0;
  524. }
  525. static void __exit exit_qnx4_fs(void)
  526. {
  527. unregister_filesystem(&qnx4_fs_type);
  528. destroy_inodecache();
  529. }
  530. module_init(init_qnx4_fs)
  531. module_exit(exit_qnx4_fs)
  532. MODULE_LICENSE("GPL");