]> git.ipfire.org Git - thirdparty/qemu.git/commit
vvfat: correctly generate numeric-tail of short file names
authorHervé Poussineau <hpoussin@reactos.org>
Mon, 22 May 2017 21:12:02 +0000 (23:12 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 10 Jul 2017 11:18:05 +0000 (13:18 +0200)
commit339cebcc019da9f0e9aa53ca0dac852853abc7f6
tree8b5f609bae2dd4234669e12ea03d9e8f1fd10398
parent0c36111f57ec2188f679e7fa810291b7386bdca1
vvfat: correctly generate numeric-tail of short file names

More specifically:
- try without numeric-tail only if LFN didn't have invalid short chars
- start at ~1 (instead of ~0)
- handle case if numeric tail is more than one char (ie > 10)

Windows 9x Scandisk doesn't see anymore mismatches between short file names and
long file names for non-ASCII filenames.

Specification: "FAT: General overview of on-disk format" v1.03, page 31
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vvfat.c