From e82c231da3e69d8b6fac9d917b1e8615669b9257 Mon Sep 17 00:00:00 2001 From: cgd Date: Mon, 25 Apr 1994 18:23:19 +0000 Subject: [PATCH] need --- sbin/dumpfs/dumpfs.c | 3 ++- sbin/fsck/dir.c | 3 ++- sbin/fsck/inode.c | 6 ++++-- sbin/fsck/main.c | 3 ++- sbin/fsck/pass1.c | 3 ++- sbin/fsck_ffs/dir.c | 3 ++- sbin/fsck_ffs/inode.c | 6 ++++-- sbin/fsck_ffs/main.c | 3 ++- sbin/fsck_ffs/pass1.c | 3 ++- usr.sbin/dumpfs/dumpfs.c | 3 ++- 10 files changed, 24 insertions(+), 12 deletions(-) diff --git a/sbin/dumpfs/dumpfs.c b/sbin/dumpfs/dumpfs.c index f70fdcadab9c..60393aab843c 100644 --- a/sbin/dumpfs/dumpfs.c +++ b/sbin/dumpfs/dumpfs.c @@ -39,10 +39,11 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)dumpfs.c 5.10 (Berkeley) 6/1/90";*/ -static char rcsid[] = "$Id: dumpfs.c,v 1.4 1993/08/01 18:27:32 mycroft Exp $"; +static char rcsid[] = "$Id: dumpfs.c,v 1.5 1994/04/25 18:23:19 cgd Exp $"; #endif /* not lint */ #include +#include #include #include diff --git a/sbin/fsck/dir.c b/sbin/fsck/dir.c index dd87348d9e50..7caca7fcbcff 100644 --- a/sbin/fsck/dir.c +++ b/sbin/fsck/dir.c @@ -33,10 +33,11 @@ #ifndef lint /*static char sccsid[] = "from: @(#)dir.c 5.19 (Berkeley) 7/26/91";*/ -static char rcsid[] = "$Id: dir.c,v 1.5 1993/11/05 23:32:06 mycroft Exp $"; +static char rcsid[] = "$Id: dir.c,v 1.6 1994/04/25 18:28:20 cgd Exp $"; #endif /* not lint */ #include +#include #include #include #define KERNEL diff --git a/sbin/fsck/inode.c b/sbin/fsck/inode.c index 2c373488afe1..6450fcb43a63 100644 --- a/sbin/fsck/inode.c +++ b/sbin/fsck/inode.c @@ -33,10 +33,11 @@ #ifndef lint /*static char sccsid[] = "from: @(#)inode.c 5.18 (Berkeley) 3/19/91";*/ -static char rcsid[] = "$Id: inode.c,v 1.6 1994/04/18 06:08:27 cgd Exp $"; +static char rcsid[] = "$Id: inode.c,v 1.7 1994/04/25 18:28:25 cgd Exp $"; #endif /* not lint */ #include +#include #include #include #include @@ -505,7 +506,8 @@ allocino(request, type) return (0); } dp->di_mode = type; - (void)time(&dp->di_atime); + (void)time(&dp->di_atime.ts_sec); + dp->di_atime.ts_nsec = 0; dp->di_mtime = dp->di_ctime = dp->di_atime; dp->di_size = sblock.fs_fsize; dp->di_blocks = btodb(sblock.fs_fsize); diff --git a/sbin/fsck/main.c b/sbin/fsck/main.c index 66876226195d..7072ea68ccde 100644 --- a/sbin/fsck/main.c +++ b/sbin/fsck/main.c @@ -39,10 +39,11 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)main.c 5.27 (Berkeley) 8/7/90";*/ -static char rcsid[] = "$Id: main.c,v 1.11 1994/04/06 00:08:58 cgd Exp $"; +static char rcsid[] = "$Id: main.c,v 1.12 1994/04/25 18:28:29 cgd Exp $"; #endif /* not lint */ #include +#include #include #include #include diff --git a/sbin/fsck/pass1.c b/sbin/fsck/pass1.c index e9885a845092..6ac5c11e90d2 100644 --- a/sbin/fsck/pass1.c +++ b/sbin/fsck/pass1.c @@ -33,10 +33,11 @@ #ifndef lint /*static char sccsid[] = "from: @(#)pass1.c 5.16 (Berkeley) 3/19/91";*/ -static char rcsid[] = "$Id: pass1.c,v 1.5 1993/08/01 18:27:21 mycroft Exp $"; +static char rcsid[] = "$Id: pass1.c,v 1.6 1994/04/25 18:28:35 cgd Exp $"; #endif /* not lint */ #include +#include #include #include #include diff --git a/sbin/fsck_ffs/dir.c b/sbin/fsck_ffs/dir.c index dd87348d9e50..7caca7fcbcff 100644 --- a/sbin/fsck_ffs/dir.c +++ b/sbin/fsck_ffs/dir.c @@ -33,10 +33,11 @@ #ifndef lint /*static char sccsid[] = "from: @(#)dir.c 5.19 (Berkeley) 7/26/91";*/ -static char rcsid[] = "$Id: dir.c,v 1.5 1993/11/05 23:32:06 mycroft Exp $"; +static char rcsid[] = "$Id: dir.c,v 1.6 1994/04/25 18:28:20 cgd Exp $"; #endif /* not lint */ #include +#include #include #include #define KERNEL diff --git a/sbin/fsck_ffs/inode.c b/sbin/fsck_ffs/inode.c index 2c373488afe1..6450fcb43a63 100644 --- a/sbin/fsck_ffs/inode.c +++ b/sbin/fsck_ffs/inode.c @@ -33,10 +33,11 @@ #ifndef lint /*static char sccsid[] = "from: @(#)inode.c 5.18 (Berkeley) 3/19/91";*/ -static char rcsid[] = "$Id: inode.c,v 1.6 1994/04/18 06:08:27 cgd Exp $"; +static char rcsid[] = "$Id: inode.c,v 1.7 1994/04/25 18:28:25 cgd Exp $"; #endif /* not lint */ #include +#include #include #include #include @@ -505,7 +506,8 @@ allocino(request, type) return (0); } dp->di_mode = type; - (void)time(&dp->di_atime); + (void)time(&dp->di_atime.ts_sec); + dp->di_atime.ts_nsec = 0; dp->di_mtime = dp->di_ctime = dp->di_atime; dp->di_size = sblock.fs_fsize; dp->di_blocks = btodb(sblock.fs_fsize); diff --git a/sbin/fsck_ffs/main.c b/sbin/fsck_ffs/main.c index 66876226195d..7072ea68ccde 100644 --- a/sbin/fsck_ffs/main.c +++ b/sbin/fsck_ffs/main.c @@ -39,10 +39,11 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)main.c 5.27 (Berkeley) 8/7/90";*/ -static char rcsid[] = "$Id: main.c,v 1.11 1994/04/06 00:08:58 cgd Exp $"; +static char rcsid[] = "$Id: main.c,v 1.12 1994/04/25 18:28:29 cgd Exp $"; #endif /* not lint */ #include +#include #include #include #include diff --git a/sbin/fsck_ffs/pass1.c b/sbin/fsck_ffs/pass1.c index e9885a845092..6ac5c11e90d2 100644 --- a/sbin/fsck_ffs/pass1.c +++ b/sbin/fsck_ffs/pass1.c @@ -33,10 +33,11 @@ #ifndef lint /*static char sccsid[] = "from: @(#)pass1.c 5.16 (Berkeley) 3/19/91";*/ -static char rcsid[] = "$Id: pass1.c,v 1.5 1993/08/01 18:27:21 mycroft Exp $"; +static char rcsid[] = "$Id: pass1.c,v 1.6 1994/04/25 18:28:35 cgd Exp $"; #endif /* not lint */ #include +#include #include #include #include diff --git a/usr.sbin/dumpfs/dumpfs.c b/usr.sbin/dumpfs/dumpfs.c index f70fdcadab9c..60393aab843c 100644 --- a/usr.sbin/dumpfs/dumpfs.c +++ b/usr.sbin/dumpfs/dumpfs.c @@ -39,10 +39,11 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)dumpfs.c 5.10 (Berkeley) 6/1/90";*/ -static char rcsid[] = "$Id: dumpfs.c,v 1.4 1993/08/01 18:27:32 mycroft Exp $"; +static char rcsid[] = "$Id: dumpfs.c,v 1.5 1994/04/25 18:23:19 cgd Exp $"; #endif /* not lint */ #include +#include #include #include