summaryrefslogtreecommitdiffstats
path: root/sys/fs/ext2fs/inode.h
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2012-03-08 21:06:05 +0000
committerpfg <pfg@FreeBSD.org>2012-03-08 21:06:05 +0000
commitf8fecfb833f40bb660b5205908a6a91a075e7bd6 (patch)
tree302d15881b70001d180f475978b302c04f755ec7 /sys/fs/ext2fs/inode.h
parent81cae127b038c1d057cde65bd0457d72894c7d86 (diff)
downloadFreeBSD-src-f8fecfb833f40bb660b5205908a6a91a075e7bd6.zip
FreeBSD-src-f8fecfb833f40bb660b5205908a6a91a075e7bd6.tar.gz
Add support for ns timestamps and birthtime to the ext2/3 driver.
When using big inodes there is sufficient space in ext3 to keep extra resolution and birthtime (creation) timestamps. The appropriate fields in the on-disk inode have been approved for a long time but support for this in ext3 has not been widely distributed. In preparation for ext4 most linux distributions have enabled by default such bigger inodes and some people use nanosecond timestamps in ext3. We now support those when the inode is big enough and while we do recognize the EXT4F_ROCOMPAT_EXTRA_ISIZE, we maintain the extra timestamps even when they are not used. An additional note by Bruce Evans: We blindly accept unrepresentable tv_nsec in VOP_SETATTR(), but all file systems have always done that. When POSIX gets around to specifying the behaviour, it will probably require certain rounding to the fs's resolution and not rejecting the request. This unfortunately means that syscalls that set times can't really tell if they succeeded without reading back the times using stat() or similar and checking that they were set close enough. Reviewed by: bde Approved by: jhb (mentor) MFC after: 2 weeks
Diffstat (limited to 'sys/fs/ext2fs/inode.h')
-rw-r--r--sys/fs/ext2fs/inode.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/fs/ext2fs/inode.h b/sys/fs/ext2fs/inode.h
index 659b950..100a076 100644
--- a/sys/fs/ext2fs/inode.h
+++ b/sys/fs/ext2fs/inode.h
@@ -77,8 +77,6 @@ struct inode {
uint32_t i_block_group;
uint32_t i_next_alloc_block;
uint32_t i_next_alloc_goal;
- uint32_t i_prealloc_block;
- uint32_t i_prealloc_count;
/* Fields from struct dinode in UFS. */
uint16_t i_mode; /* IFMT, permissions; see below. */
OpenPOWER on IntegriCloud