inode.c (9938b04472d5c59f8bd8152a548533a8599596a2) | inode.c (1751e8a6cb935e555fcdbcb9ab4f0446e322ca3e) |
---|---|
1/* 2 * QNX4 file system, Linux implementation. 3 * 4 * Version : 0.2.1 5 * 6 * Using parts of the xiafs filesystem. 7 * 8 * History : --- 33 unchanged lines hidden (view full) --- 42 43static int qnx4_remount(struct super_block *sb, int *flags, char *data) 44{ 45 struct qnx4_sb_info *qs; 46 47 sync_filesystem(sb); 48 qs = qnx4_sb(sb); 49 qs->Version = QNX4_VERSION; | 1/* 2 * QNX4 file system, Linux implementation. 3 * 4 * Version : 0.2.1 5 * 6 * Using parts of the xiafs filesystem. 7 * 8 * History : --- 33 unchanged lines hidden (view full) --- 42 43static int qnx4_remount(struct super_block *sb, int *flags, char *data) 44{ 45 struct qnx4_sb_info *qs; 46 47 sync_filesystem(sb); 48 qs = qnx4_sb(sb); 49 qs->Version = QNX4_VERSION; |
50 *flags |= MS_RDONLY; | 50 *flags |= SB_RDONLY; |
51 return 0; 52} 53 54static int qnx4_get_block( struct inode *inode, sector_t iblock, struct buffer_head *bh, int create ) 55{ 56 unsigned long phys; 57 58 QNX4DEBUG((KERN_INFO "qnx4: qnx4_get_block inode=[%ld] iblock=[%ld]\n",inode->i_ino,iblock)); --- 135 unchanged lines hidden (view full) --- 194 if (!qs) 195 return -ENOMEM; 196 s->s_fs_info = qs; 197 198 sb_set_blocksize(s, QNX4_BLOCK_SIZE); 199 200 s->s_op = &qnx4_sops; 201 s->s_magic = QNX4_SUPER_MAGIC; | 51 return 0; 52} 53 54static int qnx4_get_block( struct inode *inode, sector_t iblock, struct buffer_head *bh, int create ) 55{ 56 unsigned long phys; 57 58 QNX4DEBUG((KERN_INFO "qnx4: qnx4_get_block inode=[%ld] iblock=[%ld]\n",inode->i_ino,iblock)); --- 135 unchanged lines hidden (view full) --- 194 if (!qs) 195 return -ENOMEM; 196 s->s_fs_info = qs; 197 198 sb_set_blocksize(s, QNX4_BLOCK_SIZE); 199 200 s->s_op = &qnx4_sops; 201 s->s_magic = QNX4_SUPER_MAGIC; |
202 s->s_flags |= MS_RDONLY; /* Yup, read-only yet */ | 202 s->s_flags |= SB_RDONLY; /* Yup, read-only yet */ |
203 204 /* Check the superblock signature. Since the qnx4 code is 205 dangerous, we should leave as quickly as possible 206 if we don't belong here... */ 207 bh = sb_bread(s, 1); 208 if (!bh) { 209 printk(KERN_ERR "qnx4: unable to read the superblock\n"); 210 return -EINVAL; --- 217 unchanged lines hidden --- | 203 204 /* Check the superblock signature. Since the qnx4 code is 205 dangerous, we should leave as quickly as possible 206 if we don't belong here... */ 207 bh = sb_bread(s, 1); 208 if (!bh) { 209 printk(KERN_ERR "qnx4: unable to read the superblock\n"); 210 return -EINVAL; --- 217 unchanged lines hidden --- |