mkdosfs -R 2 broken or upsets dosfsck
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dosfstools (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Ubuntu 8.10
Package: dosfstools
Architecture: i386
Version: 2.11-5
I noticed that dosfsck -R 2 does not seem to work for (at least) a FAT32 fs of 4098000 blocks.
# you should be able to do a test with better coverage
$ for f in 1 2; do for R in 2 3 4 5 6 7 8 9 10 11 12; do for h in 0 1 2 63; do rm -f /tmp/test.img; echo $f $R $h; mkdosfs -f $f -R $R -h $h -C /tmp/test.img 4098000; dosfsck -n /tmp/test.img || echo $f $R $h >>/tmp/badones; done; done; done
$ cat /tmp/badones
1 2 0
1 2 1
1 2 2
1 2 63
2 2 0
2 2 1
2 2 2
2 2 63
I don not know whether or not the fs is actually formatted correctly.
I would expect one of:
-R 2 to be rejected
the fs to be formatted correctly and dosfsck not complain
Giuliano.