]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit - sbin/tunefs/tunefs.c
MFC 226266:
authormckusick <mckusick@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 21 Oct 2011 22:07:52 +0000 (22:07 +0000)
committermckusick <mckusick@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 21 Oct 2011 22:07:52 +0000 (22:07 +0000)
commit62fe737f62e0d2ef9048422c37db8ea193a7e2b6
tree8ba42f2b8c70b9dcaeef72f4383084bc7642e382
parent9555ce8fda67072817b18abd01fbe7f4bbb6b3d8
MFC 226266:
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>
Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/9@226621 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sbin/tunefs/tunefs.c