Comment 10 for bug 1619718

Revision history for this message
Steve Langasek (vorlon) wrote :

I've run through the test case on xenial:

$ ./reproduce.sh
128+0 records in
128+0 records out
134217728 bytes (134 MB, 128 MiB) copied, 0.213815 s, 628 MB/s
mkfs.fat 3.0.28 (2015-05-16)
Copying toimg
Copying baz
Copying foo
Copying bar
fsck.fat 3.0.28 (2015-05-16)
Checking we can access the last sector of the filesystem
Boot sector contents:
System ID "mkfs.fat"
Media byte 0xf8 (hard disk)
       512 bytes per logical sector
       512 bytes per cluster
        32 reserved sectors
First FAT starts at byte 16384 (sector 32)
         2 FATs, 32 bit entries
   1032704 bytes per FAT (= 2017 sectors)
Root directory start at cluster 2 (arbitrary size)
Data area starts at byte 2081792 (sector 4066)
    258078 data clusters (132135936 bytes)
32 sectors/track, 64 heads
         0 hidden sectors
    262144 sectors total
Starting check/repair pass.
/TOIMG/FOO/.
  Bad short file name (.).
1) Drop file
2) Rename file
3) Auto-rename
4) Keep it
? ^C
$ sudo apt install mtools
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  floppyd
The following packages will be upgraded:
  mtools
1 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
Need to get 175 kB of archives.
After this operation, 10.2 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial-proposed/main amd64 mtools amd64 4.0.18-2ubuntu0.16.04 [175 kB]
Fetched 175 kB in 0s (179 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 21878 files and directories currently installed.)
Preparing to unpack .../mtools_4.0.18-2ubuntu0.16.04_amd64.deb ...
Unpacking mtools (4.0.18-2ubuntu0.16.04) over (4.0.18-2) ...
Processing triggers for man-db (2.7.5-1) ...
Not building database; man-db/auto-update is not 'true'.
Setting up mtools (4.0.18-2ubuntu0.16.04) ...
$ ./reproduce.sh
128+0 records in
128+0 records out
134217728 bytes (134 MB, 128 MiB) copied, 0.158155 s, 849 MB/s
mkfs.fat 3.0.28 (2015-05-16)
Copying toimg
Copying baz
Copying foo
Copying bar
fsck.fat 3.0.28 (2015-05-16)
Checking we can access the last sector of the filesystem
Boot sector contents:
System ID "mkfs.fat"
Media byte 0xf8 (hard disk)
       512 bytes per logical sector
       512 bytes per cluster
        32 reserved sectors
First FAT starts at byte 16384 (sector 32)
         2 FATs, 32 bit entries
   1032704 bytes per FAT (= 2017 sectors)
Root directory start at cluster 2 (arbitrary size)
Data area starts at byte 2081792 (sector 4066)
    258078 data clusters (132135936 bytes)
32 sectors/track, 64 heads
         0 hidden sectors
    262144 sectors total
Starting check/repair pass.
Checking for unused clusters.
Checking free cluster summary.
Starting verification pass.
Checking for unused clusters.
test.img: 4 files, 4/258078 clusters
$

Looks good.