summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-07-16 00:55:27 +0000
committerpeter <peter@FreeBSD.org>2001-07-16 00:55:27 +0000
commit57a68876635a47a73b98c187b885f2fc2608a614 (patch)
tree5b913489c864f203d9053ea5e6a55f39a7d8db94
parentc31a4fa763807c699abe3c2266b9c3f348c9cab3 (diff)
downloadFreeBSD-src-57a68876635a47a73b98c187b885f2fc2608a614.zip
FreeBSD-src-57a68876635a47a73b98c187b885f2fc2608a614.tar.gz
Use a fixed type for times in on-disk structures for ufs rather than
something that could potentially change like time_t.
-rw-r--r--sys/sys/types.h1
-rw-r--r--sys/ufs/ffs/fs.h6
-rw-r--r--sys/ufs/ufs/quota.h4
3 files changed, 6 insertions, 5 deletions
diff --git a/sys/sys/types.h b/sys/sys/types.h
index aefe63c..b5c9326 100644
--- a/sys/sys/types.h
+++ b/sys/sys/types.h
@@ -89,6 +89,7 @@ typedef int32_t segsz_t; /* segment size */
#endif
typedef int32_t swblk_t; /* swap offset */
typedef int32_t ufs_daddr_t;
+typedef int32_t ufs_time_t;
typedef u_int32_t uid_t; /* user id */
#ifdef _KERNEL
diff --git a/sys/ufs/ffs/fs.h b/sys/ufs/ffs/fs.h
index 0a3ad96..4371f6c 100644
--- a/sys/ufs/ffs/fs.h
+++ b/sys/ufs/ffs/fs.h
@@ -226,7 +226,7 @@ struct fs {
ufs_daddr_t fs_dblkno; /* offset of first data after cg */
int32_t fs_cgoffset; /* cylinder group offset in cylinder */
int32_t fs_cgmask; /* used to calc mod fs_ntrak */
- time_t fs_time; /* last time written */
+ ufs_time_t fs_time; /* last time written */
int32_t fs_size; /* number of blocks in fs */
int32_t fs_dsize; /* number of data blocks in fs */
int32_t fs_ncg; /* number of cylinder groups */
@@ -389,7 +389,7 @@ struct fs {
struct cg {
int32_t cg_firstfield; /* historic cyl groups linked list */
int32_t cg_magic; /* magic number */
- time_t cg_time; /* time last written */
+ ufs_time_t cg_time; /* time last written */
int32_t cg_cgx; /* we are the cgx'th cylinder group */
int16_t cg_ncyl; /* number of cyl's this cg */
int16_t cg_niblk; /* number of inode blocks this cg */
@@ -446,7 +446,7 @@ struct cg {
struct ocg {
int32_t cg_firstfield; /* historic linked list of cyl groups */
int32_t cg_unused_1; /* used for incore cyl groups */
- time_t cg_time; /* time last written */
+ ufs_time_t cg_time; /* time last written */
int32_t cg_cgx; /* we are the cgx'th cylinder group */
int16_t cg_ncyl; /* number of cyl's this cg */
int16_t cg_niblk; /* number of inode blocks this cg */
diff --git a/sys/ufs/ufs/quota.h b/sys/ufs/ufs/quota.h
index f8299ee..efa714e 100644
--- a/sys/ufs/ufs/quota.h
+++ b/sys/ufs/ufs/quota.h
@@ -104,8 +104,8 @@ struct dqblk {
u_int32_t dqb_ihardlimit; /* maximum # allocated inodes + 1 */
u_int32_t dqb_isoftlimit; /* preferred inode limit */
u_int32_t dqb_curinodes; /* current # allocated inodes */
- time_t dqb_btime; /* time limit for excessive disk use */
- time_t dqb_itime; /* time limit for excessive files */
+ ufs_time_t dqb_btime; /* time limit for excessive disk use */
+ ufs_time_t dqb_itime; /* time limit for excessive files */
};
#ifdef _KERNEL
OpenPOWER on IntegriCloud