On Thu, 2003-09-04 at 04:15, Szonyi Calin wrote:
> It seems that  fsck is trying to open the partition exclusively 
> and because it can't it doesn't want to operate.
> The root filesystem cannot be opened exclusively because other 
> programs are using it. See atached file lsof-hda6 for details.

Okay.  It looks like a recent patch to fs/block_dev.c now disallows
O_EXCL opens when a file system is mounted.  I'll have to make a change
to the utilities, since the kernel change seems reasonable.  A quick fix
would be to remove the O_EXCL flag from the open call in
jfsutils/fsck/fsckpfs.c.  I will make a proper fix to attempt the O_EXCL
call when appropriate and open without it when necessary.

> It should have an option: "Are you sure you want to repair the filesystem ? 
> type yes  if you really know what you are doing"
> for such cases 

When the file system is mounted read-only, I don't think a confirmation
is necessary.  It just used to work with the O_EXCL flag, and now it
doesn't.

Thanks for the very descriptive report,
Shaggy
-- 
David Kleikamp
IBM Linux Technology Center

_______________________________________________
Jfs-discussion mailing list
[EMAIL PROTECTED]
http://www-124.ibm.com/developerworks/oss/mailman/listinfo/jfs-discussion

Reply via email to