diff options
author | Jan Kara <jack@suse.cz> | 2008-04-08 07:29:20 -0400 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2008-04-17 08:28:14 -0400 |
commit | 96200be3077c5ede16a90b33aca815b444e66043 (patch) | |
tree | c1ee3889fca31d55e973ab2859b19bbbee3a7d22 /fs/udf/super.c | |
parent | fa5e08156335d0687c85b4e724db9448fb166601 (diff) |
udf: Mount filesystem read-only if it has pseudooverwrite partition
As we don't properly support writing to pseudooverwrite partition (we should
add entries to VAT and relocate blocks instead of just writing them), mount
filesystems with such partition as read-only.
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf/super.c')
-rw-r--r-- | fs/udf/super.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/udf/super.c b/fs/udf/super.c index abdb9b31da46..650f20fe9d62 100644 --- a/fs/udf/super.c +++ b/fs/udf/super.c | |||
@@ -1208,6 +1208,14 @@ static int udf_load_partdesc(struct super_block *sb, sector_t block) | |||
1208 | ret = udf_fill_partdesc_info(sb, p, i); | 1208 | ret = udf_fill_partdesc_info(sb, p, i); |
1209 | if (ret) | 1209 | if (ret) |
1210 | goto out_bh; | 1210 | goto out_bh; |
1211 | /* | ||
1212 | * Mark filesystem read-only if we have a partition with virtual map | ||
1213 | * since we don't handle writing to it (we overwrite blocks instead of | ||
1214 | * relocating them). | ||
1215 | */ | ||
1216 | sb->s_flags |= MS_RDONLY; | ||
1217 | printk(KERN_NOTICE "UDF-fs: Filesystem marked read-only because " | ||
1218 | "writing to pseudooverwrite partition is not implemented.\n"); | ||
1211 | 1219 | ||
1212 | ret = udf_load_vat(sb, i, type1_idx); | 1220 | ret = udf_load_vat(sb, i, type1_idx); |
1213 | out_bh: | 1221 | out_bh: |