[PATCH] [UFS] fs/ufs/super.c misreads the file system state

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-kernel@...>
Date: Wednesday, September 19, 2007 - 12:31 pm

ufs_get_fs_state() needs the file system type to read the state from the 
correct place in the superblock. It takes the type from 
UFS_SB(sb)->s_flags, but that value is stored after the first call to 
ufs_get_fs_state(). The patch below moves the assignment of s_flags up, 
before the first call to ufs_get_fs_state().

The patch is against linux-2.6.23-rc6-git7, but it applies (with offset) 
to 2.6.22 and to earlier versions as well. It has been tested on the 
Solaris flavor of UFS (ufstype=sunx86) - with this change, the file 
system can be used in read-write mode.

* Please cc me when replying to this - I am not subscribed to the 
linux-kernel list. *

Leonid
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] [UFS] fs/ufs/super.c misreads the file system state, Leonid Kalev, (Wed Sep 19, 12:31 pm)