sb->s_fs_info = NULL;
}
+static int cramfs_remount(struct super_block *sb, int *flags, char *data)
+{
+ *flags |= MS_RDONLY;
+ return 0;
+}
+
static int cramfs_fill_super(struct super_block *sb, void *data, int silent)
{
int i;
static struct super_operations cramfs_ops = {
.put_super = cramfs_put_super,
+ .remount_fs = cramfs_remount,
.statfs = cramfs_statfs,
};
s->s_fs_info = NULL;
}
+static int efs_remount(struct super_block *sb, int *flags, char *data)
+{
+ *flags |= MS_RDONLY;
+ return 0;
+}
+
static struct super_operations efs_superblock_operations = {
.alloc_inode = efs_alloc_inode,
.destroy_inode = efs_destroy_inode,
.read_inode = efs_read_inode,
.put_super = efs_put_super,
.statfs = efs_statfs,
+ .remount_fs = efs_remount,
};
static int __init init_efs_fs(void) {
static void vxfs_put_super(struct super_block *);
static int vxfs_statfs(struct super_block *, struct kstatfs *);
+static int vxfs_remount(struct super_block *, int *, char *);
static struct super_operations vxfs_super_ops = {
.read_inode = vxfs_read_inode,
.put_inode = vxfs_put_inode,
.put_super = vxfs_put_super,
.statfs = vxfs_statfs,
+ .remount_fs = vxfs_remount,
};
/**
return 0;
}
+static int vxfs_remount(struct super_block *sb, int *flags, char *data)
+{
+ *flags |= MS_RDONLY;
+ return 0;
+}
+
/**
* vxfs_read_super - read superblock into memory and initalize filesystem
* @sbp: VFS superblock (to fill)
printk(KERN_INFO "iso_inode_cache: not all structures were freed\n");
}
+static int isofs_remount(struct super_block *sb, int *flags, char *data)
+{
+ /* we probably want a lot more here */
+ *flags |= MS_RDONLY;
+ return 0;
+}
+
static struct super_operations isofs_sops = {
.alloc_inode = isofs_alloc_inode,
.destroy_inode = isofs_destroy_inode,
.read_inode = isofs_read_inode,
.put_super = isofs_put_super,
.statfs = isofs_statfs,
+ .remount_fs = isofs_remount,
};
/* the export_operations structure for describing
qs = qnx4_sb(sb);
qs->Version = QNX4_VERSION;
+#ifndef CONFIG_QNX4FS_RW
+ *flags |= MS_RDONLY;
+#endif
if (*flags & MS_RDONLY) {
return 0;
}
+
mark_buffer_dirty(qs->sb_buf);
return 0;
printk(KERN_INFO "romfs_inode_cache: not all structures were freed\n");
}
+static int romfs_remount(struct super_block *sb, int *flags, char *data)
+{
+ *flags |= MS_RDONLY;
+ return 0;
+}
+
static struct super_operations romfs_ops = {
.alloc_inode = romfs_alloc_inode,
.destroy_inode = romfs_destroy_inode,
.read_inode = romfs_read_inode,
.statfs = romfs_statfs,
+ .remount_fs = romfs_remount,
};
static struct super_block *romfs_get_sb(struct file_system_type *fs_type,