summaryrefslogtreecommitdiff
path: root/fs/adfs/adfs.h
diff options
context:
space:
mode:
authorStuart Swales <stuart.swales.croftnuisk@gmail.com>2011-03-23 02:35:05 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2011-03-23 03:44:17 +0300
commit7a9730af9c596749425a98eba136152e5be4602a (patch)
tree1a7f03d7541768a9d2b4b25fab2ee07eec37c268 /fs/adfs/adfs.h
parent2f09719af705db56032ae480a2d9c32c2a3fcbd3 (diff)
downloadlinux-7a9730af9c596749425a98eba136152e5be4602a.tar.xz
adfs: improve timestamp precision
ADFS (FileCore) storage complies with the RISC OS timestamp specification (40-bit centiseconds since 01 Jan 1900 00:00:00). It is desirable that stored timestamp precision be maintained to facilitate a precise copy of data and metadata from a hard disc (or image thereof) into a RISC OS emulator (such as RPCEmu). This patch implements a full-precision conversion from ADFS to Unix timestamp as the existing driver, for ease of calculation with old 32-bit compilers, uses the common trick of shifting the 40-bits representing centiseconds around into 32-bits representing seconds thereby losing precision. Signed-off-by: Stuart Swales<stuart.swales.croftnuisk@gmail.com> Cc: Russell King <rmk@arm.linux.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/adfs/adfs.h')
0 files changed, 0 insertions, 0 deletions