diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2014-01-26 02:02:27 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2014-01-26 02:02:27 +0000 |
commit | 28d23a2c519be9d5e22edcb727a7e6a8e33b9410 (patch) | |
tree | a8c7fb3a9466ae83377fdb85ab2b30d33bffca39 | |
parent | 0f625750d8460feae32186dea8a48954cfac73e4 (diff) |
an EXT2FS_ITIMES macro so the tree builds. it may even work.
-rw-r--r-- | sys/ufs/ufs/inode.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/ufs/ufs/inode.h b/sys/ufs/ufs/inode.h index f35ecec31d8..3b730c08254 100644 --- a/sys/ufs/ufs/inode.h +++ b/sys/ufs/ufs/inode.h @@ -1,4 +1,4 @@ -/* $OpenBSD: inode.h,v 1.41 2014/01/25 23:31:13 guenther Exp $ */ +/* $OpenBSD: inode.h,v 1.42 2014/01/26 02:02:26 tedu Exp $ */ /* $NetBSD: inode.h,v 1.8 1995/06/15 23:22:50 cgd Exp $ */ /* @@ -311,6 +311,15 @@ struct indir { #define VTOI(vp) ((struct inode *)(vp)->v_data) #define ITOV(ip) ((ip)->i_vnode) +#define EXT2FS_ITIMES(ip) do { \ + if ((ip)->i_flag & (IN_ACCESS | IN_CHANGE | IN_UPDATE)) { \ + (ip)->i_flag |= IN_MODIFIED; \ + if ((ip)->i_flag & IN_CHANGE) \ + (ip)->i_e2fs_ctime = time_second; \ + (ip)->i_flag &= ~(IN_ACCESS | IN_CHANGE | IN_UPDATE); \ + } \ +} while (0) + /* Determine if soft dependencies are being done */ #ifdef FFS_SOFTUPDATES #define DOINGSOFTDEP(vp) ((vp)->v_mount->mnt_flag & MNT_SOFTDEP) |