]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
After creating a filesystem using newfs -j the time stamps are all
authormckusick <mckusick@FreeBSD.org>
Tue, 11 Oct 2011 19:03:57 +0000 (19:03 +0000)
committermckusick <mckusick@FreeBSD.org>
Tue, 11 Oct 2011 19:03:57 +0000 (19:03 +0000)
commit42aa10a9a139809533ee7832f9cdecc8bead877d
tree2cf2820bd629b7f045a1ae386df707851929883d
parentb6c294da1b26f52993b47e80e6d245b2a0cb1dad
After creating a filesystem using newfs -j the time stamps are all
zero and thus report as having been made in January 1970. Apart
from looking a bit silly, it also triggers alarms from scripts
that detect weird time stamps. This update sets all 4 (or 3, in
the case of UFS1) time stamps to the current time when enabling
journaling during newfs or later when enabling it with tunefs.

Reported by: Hans Ottevanger <hans@beastielabs.net>
MFC after:   1 week
sbin/tunefs/tunefs.c