[Pkg-vsquare-devel] Bug#806233: fusefat: Off-by-one month in file timestamps

Christoph Biedl debian.axhn at manchmal.in-ulm.de
Wed Nov 25 16:52:51 UTC 2015


Package: fusefat
Version: 0.1a-1.1
Severity: normal
Tags: upstream

Dear Maintainer,

As shown in my other mail:

    fallocate --length 1m /tmp/fat.img
    mkfs.fat -n MYLABEL /tmp/fat.img
    mkdir /tmp/fat
    fusefat -o ro /tmp/fat.img /tmp/fat
    ls -l /tmp/fat
    total 1
    -rwx------ 1 root root 0 Dec 25  2015 MYLABEL

... but today's *Nov* 25th.

    hd /tmp/fat.img
    (...)
    00000a00  4d 59 4c 41 42 45 4c 20  20 20 20 08 00 00 ce 8b  |MYLABEL    .....|
    00000a10  79 47 79 47 00 00 ce 8b  79 47 00 00 00 00 00 00  |yGyG....yG......|
              ^^^^^

Where
    0x4779 =
    0b 0100 0111 0111 1001
       --------             = 0x23 = 35 == 2015
               -----        = 0x0b = 11 == November    
                    ------  = 0x19 = 25 == 25th

So the image is correct, also using the kernel mount shows the correct
month.

Explanation is obvious: POSIX months run from 0 to 11, FAT months from
1 to 12. When transferring time information between these two, a
conversion is needed.

    Christoph

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-vsquare-devel/attachments/20151125/c2494004/attachment.sig>


More information about the Pkg-vsquare-devel mailing list