On Wed, Feb 22, 2012 at 04:10:55PM +0200, Alexey Vatchenko wrote:
> On Wed, Feb 22, 2012 at 08:49:07AM -0500, Kenneth R Westerback wrote:
> > Also, when we ask for the dmesg, it's much better to post the entire dmesg.
> 
> Here is dmesg from my laptop.
> My PC uses 5.0. The behaviour is the same.

This seems to be the difference between fsck_msdos and fsck_ffs that lets
fsck_msdos incorrectly use the block device.

This still works on my 512-byte sector msdos fs and uses the raw
device. I think it will make your fsck/fsck_msdos behaviour consistant.

Then we can figure out if fsck_msdos can ever work with devices of sector
sizes other than 512 bytes.

.... Ken

Index: main.c
===================================================================
RCS file: /cvs/src/sbin/fsck_msdos/main.c,v
retrieving revision 1.17
diff -u -p -r1.17 main.c
--- main.c      12 Aug 2010 15:26:34 -0000      1.17
+++ main.c      22 Feb 2012 14:42:08 -0000
@@ -98,7 +98,7 @@ main(int argc, char *argv[])
 
        while (argc-- > 0) {
                setcdevname(*argv, NULL, preen);
-               erg = checkfilesys(*argv++);
+               erg = checkfilesys(blockcheck(*argv++));
                if (erg > ret)
                        ret = erg;
        }

Reply via email to