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

Attachment: signature.asc
Description: Digital signature

Reply via email to