Date: Wed, 27 Dec 2006 15:40:50 +0100 From: "Ulrich Spoerlein" <uspoerlein@gmail.com> To: current@freebsd.org Subject: msdosfs and cd9660: stat(2) returns garbled birthtime Message-ID: <7ad7ddd90612270640t182a37ddo61880d8befc452e1@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi, at least msdosfs and cd9660 do not fill the birthtime for the stat(2) syscall. Thus stat(1) will return different values per call: root@fs2:/export# stat -f "%Da %Dm %Dc %DB" /export/msdosfs /export/cd9660 /export/ufs 315532800 315532800 315532800 -926228096 1164792535 1163757053 1163757053 -926228096 1167168567 1166109700 1166131188 1162567651 root@fs2:/export# stat -f "%Da %Dm %Dc %DB" /export/msdosfs /export/cd9660 /export/ufs 315532800 315532800 315532800 -926230272 1164792535 1163757053 1163757053 -926230272 1167168567 1166109700 1166131188 1162567651 root@fs2:/export# stat -f "%Da %Dm %Dc %DB" /export/msdosfs /export/cd9660 /export/ufs 315532800 315532800 315532800 -929051264 1164792535 1163757053 1163757053 -929051264 1167168567 1166109700 1166131188 1162567651 The code in cd9660_getattr() and msdosfs_getattr() should be augmented. But what value to put into the field? Clearly, a constant would be preferred instead of an uninitialized value. Uli
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7ad7ddd90612270640t182a37ddo61880d8befc452e1>