diff options
-rw-r--r-- | Documentation/filesystems/ufs.txt | 9 | ||||
-rw-r--r-- | fs/ufs/super.c | 9 |
2 files changed, 8 insertions, 10 deletions
diff --git a/Documentation/filesystems/ufs.txt b/Documentation/filesystems/ufs.txt index 2b5a56a6a558..7a602adeca2b 100644 --- a/Documentation/filesystems/ufs.txt +++ b/Documentation/filesystems/ufs.txt | |||
@@ -21,7 +21,7 @@ ufstype=type_of_ufs | |||
21 | supported as read-write | 21 | supported as read-write |
22 | 22 | ||
23 | ufs2 used in FreeBSD 5.x | 23 | ufs2 used in FreeBSD 5.x |
24 | supported as read-only | 24 | supported as read-write |
25 | 25 | ||
26 | 5xbsd synonym for ufs2 | 26 | 5xbsd synonym for ufs2 |
27 | 27 | ||
@@ -50,12 +50,11 @@ ufstype=type_of_ufs | |||
50 | POSSIBLE PROBLEMS | 50 | POSSIBLE PROBLEMS |
51 | ================= | 51 | ================= |
52 | 52 | ||
53 | There is still bug in reallocation of fragment, in file fs/ufs/balloc.c, | 53 | See next section, if you have any. |
54 | line 364. But it seems working on current buffer cache configuration. | ||
55 | 54 | ||
56 | 55 | ||
57 | BUG REPORTS | 56 | BUG REPORTS |
58 | =========== | 57 | =========== |
59 | 58 | ||
60 | Any ufs bug report you can send to daniel.pirkl@email.cz (do not send | 59 | Any ufs bug report you can send to daniel.pirkl@email.cz or |
61 | partition tables bug reports.) | 60 | to dushistov@mail.ru (do not send partition tables bug reports). |
diff --git a/fs/ufs/super.c b/fs/ufs/super.c index 209be95e9d18..1427e44bfd2a 100644 --- a/fs/ufs/super.c +++ b/fs/ufs/super.c | |||
@@ -61,6 +61,8 @@ | |||
61 | * UFS2 (of FreeBSD 5.x) support added by | 61 | * UFS2 (of FreeBSD 5.x) support added by |
62 | * Niraj Kumar <niraj17@iitbombay.org>, Jan 2004 | 62 | * Niraj Kumar <niraj17@iitbombay.org>, Jan 2004 |
63 | * | 63 | * |
64 | * UFS2 write support added by | ||
65 | * Evgeniy Dushistov <dushistov@mail.ru>, 2007 | ||
64 | */ | 66 | */ |
65 | 67 | ||
66 | 68 | ||
@@ -674,10 +676,6 @@ static int ufs_fill_super(struct super_block *sb, void *data, int silent) | |||
674 | uspi->s_sbsize = super_block_size = 1536; | 676 | uspi->s_sbsize = super_block_size = 1536; |
675 | uspi->s_sbbase = 0; | 677 | uspi->s_sbbase = 0; |
676 | flags |= UFS_TYPE_UFS2 | UFS_DE_44BSD | UFS_UID_44BSD | UFS_ST_44BSD | UFS_CG_44BSD; | 678 | flags |= UFS_TYPE_UFS2 | UFS_DE_44BSD | UFS_UID_44BSD | UFS_ST_44BSD | UFS_CG_44BSD; |
677 | if (!(sb->s_flags & MS_RDONLY)) { | ||
678 | printk(KERN_INFO "ufstype=ufs2 is supported read-only\n"); | ||
679 | sb->s_flags |= MS_RDONLY; | ||
680 | } | ||
681 | break; | 679 | break; |
682 | 680 | ||
683 | case UFS_MOUNT_UFSTYPE_SUN: | 681 | case UFS_MOUNT_UFSTYPE_SUN: |
@@ -1156,7 +1154,8 @@ static int ufs_remount (struct super_block *sb, int *mount_flags, char *data) | |||
1156 | #else | 1154 | #else |
1157 | if (ufstype != UFS_MOUNT_UFSTYPE_SUN && | 1155 | if (ufstype != UFS_MOUNT_UFSTYPE_SUN && |
1158 | ufstype != UFS_MOUNT_UFSTYPE_44BSD && | 1156 | ufstype != UFS_MOUNT_UFSTYPE_44BSD && |
1159 | ufstype != UFS_MOUNT_UFSTYPE_SUNx86) { | 1157 | ufstype != UFS_MOUNT_UFSTYPE_SUNx86 && |
1158 | ufstype != UFS_MOUNT_UFSTYPE_UFS2) { | ||
1160 | printk("this ufstype is read-only supported\n"); | 1159 | printk("this ufstype is read-only supported\n"); |
1161 | return -EINVAL; | 1160 | return -EINVAL; |
1162 | } | 1161 | } |