• Jan Kara's avatar
    fat: provide option for setting timezone offset · 58156c8f
    Jan Kara authored
    So far FAT either offsets time stamps by sys_tz.minuteswest or leaves them
    as they are (when tz=UTC mount option is used).  However in some cases it
    is useful if one can specify time stamp offset on his own (e.g.  when time
    zone of the camera connected is different from time zone of the computer,
    or when HW clock is in UTC and thus sys_tz.minuteswest == 0).
    
    So provide a mount option time_offset= which allows user to specify offset
    in minutes that should be applied to time stamps on the filesystem.
    
    akpm: this code would work incorrectly when used via `mount -o remount',
    because cached inodes would not be updated.  But fatfs's fat_remount() is
    basically a no-op anyway.
    Signed-off-by: default avatarJan Kara <jack@suse.cz>
    Acked-by: default avatarOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    58156c8f
inode.c 40.3 KB