diff options
author | Alex Viskovatoff <viskovatoff@imap.cc> | 2010-03-10 18:21:53 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-03-12 18:52:35 -0500 |
commit | b3a0fd4d877fe7692901b5867ba7cbd3f6d19d22 (patch) | |
tree | 49d3fdda17a8c27f28a446112d9fc066ce11e43d | |
parent | d7d4d849b4e3acc405ec222884936800ffb26d48 (diff) |
fs/ufs: recognize Solaris-specific file system state
Recent releases of Solaris set the fs_clean state of an unmounted UFS file
system as FSLOG ("logging fs"). However, the Linux kernel currently does
not recognize the value which represents this state. Thus, attempting to
mount such a file system rw produces the message
kernel: ufs_read_super: can't grok fs_clean 0xfffffffd
and the file system is mounted read-only. This patch makes the kernel
recognize that value.
Signed-off-by: Alex Viskovatoff <viskovatoff@imap.cc>
Cc: Evgeniy Dushistov <dushistov@mail.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | fs/ufs/super.c | 3 | ||||
-rw-r--r-- | fs/ufs/ufs_fs.h | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/fs/ufs/super.c b/fs/ufs/super.c index 66b63a751615..14743d935a93 100644 --- a/fs/ufs/super.c +++ b/fs/ufs/super.c | |||
@@ -1016,6 +1016,9 @@ magic_found: | |||
1016 | case UFS_FSSTABLE: | 1016 | case UFS_FSSTABLE: |
1017 | UFSD("fs is stable\n"); | 1017 | UFSD("fs is stable\n"); |
1018 | break; | 1018 | break; |
1019 | case UFS_FSLOG: | ||
1020 | UFSD("fs is logging fs\n"); | ||
1021 | break; | ||
1019 | case UFS_FSOSF1: | 1022 | case UFS_FSOSF1: |
1020 | UFSD("fs is DEC OSF/1\n"); | 1023 | UFSD("fs is DEC OSF/1\n"); |
1021 | break; | 1024 | break; |
diff --git a/fs/ufs/ufs_fs.h b/fs/ufs/ufs_fs.h index 54bde1895a80..eb9c0f2d19ec 100644 --- a/fs/ufs/ufs_fs.h +++ b/fs/ufs/ufs_fs.h | |||
@@ -138,6 +138,7 @@ typedef __u16 __bitwise __fs16; | |||
138 | 138 | ||
139 | #define UFS_USEEFT ((__u16)65535) | 139 | #define UFS_USEEFT ((__u16)65535) |
140 | 140 | ||
141 | /* fs_clean values */ | ||
141 | #define UFS_FSOK 0x7c269d38 | 142 | #define UFS_FSOK 0x7c269d38 |
142 | #define UFS_FSACTIVE ((__s8)0x00) | 143 | #define UFS_FSACTIVE ((__s8)0x00) |
143 | #define UFS_FSCLEAN ((__s8)0x01) | 144 | #define UFS_FSCLEAN ((__s8)0x01) |
@@ -145,6 +146,11 @@ typedef __u16 __bitwise __fs16; | |||
145 | #define UFS_FSOSF1 ((__s8)0x03) /* is this correct for DEC OSF/1? */ | 146 | #define UFS_FSOSF1 ((__s8)0x03) /* is this correct for DEC OSF/1? */ |
146 | #define UFS_FSBAD ((__s8)0xff) | 147 | #define UFS_FSBAD ((__s8)0xff) |
147 | 148 | ||
149 | /* Solaris-specific fs_clean values */ | ||
150 | #define UFS_FSSUSPEND ((__s8)0xfe) /* temporarily suspended */ | ||
151 | #define UFS_FSLOG ((__s8)0xfd) /* logging fs */ | ||
152 | #define UFS_FSFIX ((__s8)0xfc) /* being repaired while mounted */ | ||
153 | |||
148 | /* From here to next blank line, s_flags for ufs_sb_info */ | 154 | /* From here to next blank line, s_flags for ufs_sb_info */ |
149 | /* directory entry encoding */ | 155 | /* directory entry encoding */ |
150 | #define UFS_DE_MASK 0x00000010 /* mask for the following */ | 156 | #define UFS_DE_MASK 0x00000010 /* mask for the following */ |