History log of /openbsd-current/sys/ufs/ufs/dir.h
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.13 09-Jan-2024 guenther

Delete support for FFS filesystems before the in-inode symlink
optimization. As observed by ali_farzanrad(at)riseup.net, support
for these was broken in the 5.5 release in early 2014 by the time_t
changes. No one noticed before now, so clearly this isn't something
we need to continue to support; rejecting in ffs_validate() is an
improvement.

Also: simplify DIRSIZ(), drop OLDDIRFMT and NEWDIRFMT, tests of
fs_maxsymlinklen against zero, #ifdef tests of FS_44INODEFMT, and
remove support for newfs -O0, last used in 2016.

ok miod@


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE OPENBSD_7_3_BASE OPENBSD_7_4_BASE
# 1.12 04-May-2019 deraadt

Add DIR_ROUNDUP define, from Kirk McKusick
ok millert otto kettenis


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.11 31-Jan-2009 grange

Rewrite DIRECTSIZ macro using offsetof. As a bonus it elimitanes casting
pointer to int.

ok miod@ tedu@ millert@


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.10 18-Jun-2005 millert

Remove remaining whiteout tentacles; OK deraadt@ miod@ weingart@


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE SMP_SYNC_A SMP_SYNC_B
# 1.9 28-Dec-2003 tedu

add ian dowse's dirhash code from freebsd.
by building a hash table for large directories, lookups and deletions
become about constant time. this is an excellent improvement for dirs with
10k or more files.
some more cleanup to come, but the code works.
enabled with option UFS_DIRHASH
testing brad millert otto


Revision tags: OPENBSD_3_4_BASE
# 1.8 02-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE SMP_BASE UBC_BASE UBC_SYNC_A UBC_SYNC_B kame_19991208
# 1.7 26-Nov-1999 art

branches: 1.7.2;
Yet another useless indentation fix (I don't like 'M' in my cvs updates).


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE
# 1.6 30-May-1997 downsj

Integrate new ext2fs, reverting ufs support for the old one.


Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE
# 1.5 27-Jun-1996 downsj

Moving some things around; struct inode still ends up bigger, though.
This should, hopefully, be the last UFS changes required.


# 1.4 24-Jun-1996 tholo

ufs_dirops only needed when compiling with _KERNEL


# 1.3 24-Jun-1996 downsj

ufs changes: add the notion of directory operators.

gnu/ext2fs: add the second extended filesystem.

Note that I'm commiting this now for the sake of the ufs changes; ext2fs
is not yet fully integrated into the system.


# 1.2 19-Apr-1996 niklas

NetBSD 960317 merge


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.12 04-May-2019 deraadt

Add DIR_ROUNDUP define, from Kirk McKusick
ok millert otto kettenis


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.11 31-Jan-2009 grange

Rewrite DIRECTSIZ macro using offsetof. As a bonus it elimitanes casting
pointer to int.

ok miod@ tedu@ millert@


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.10 18-Jun-2005 millert

Remove remaining whiteout tentacles; OK deraadt@ miod@ weingart@


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE SMP_SYNC_A SMP_SYNC_B
# 1.9 28-Dec-2003 tedu

add ian dowse's dirhash code from freebsd.
by building a hash table for large directories, lookups and deletions
become about constant time. this is an excellent improvement for dirs with
10k or more files.
some more cleanup to come, but the code works.
enabled with option UFS_DIRHASH
testing brad millert otto


Revision tags: OPENBSD_3_4_BASE
# 1.8 02-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE SMP_BASE UBC_BASE UBC_SYNC_A UBC_SYNC_B kame_19991208
# 1.7 26-Nov-1999 art

branches: 1.7.2;
Yet another useless indentation fix (I don't like 'M' in my cvs updates).


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE
# 1.6 30-May-1997 downsj

Integrate new ext2fs, reverting ufs support for the old one.


Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE
# 1.5 27-Jun-1996 downsj

Moving some things around; struct inode still ends up bigger, though.
This should, hopefully, be the last UFS changes required.


# 1.4 24-Jun-1996 tholo

ufs_dirops only needed when compiling with _KERNEL


# 1.3 24-Jun-1996 downsj

ufs changes: add the notion of directory operators.

gnu/ext2fs: add the second extended filesystem.

Note that I'm commiting this now for the sake of the ufs changes; ext2fs
is not yet fully integrated into the system.


# 1.2 19-Apr-1996 niklas

NetBSD 960317 merge


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.11 31-Jan-2009 grange

Rewrite DIRECTSIZ macro using offsetof. As a bonus it elimitanes casting
pointer to int.

ok miod@ tedu@ millert@


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.10 18-Jun-2005 millert

Remove remaining whiteout tentacles; OK deraadt@ miod@ weingart@


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE SMP_SYNC_A SMP_SYNC_B
# 1.9 28-Dec-2003 tedu

add ian dowse's dirhash code from freebsd.
by building a hash table for large directories, lookups and deletions
become about constant time. this is an excellent improvement for dirs with
10k or more files.
some more cleanup to come, but the code works.
enabled with option UFS_DIRHASH
testing brad millert otto


Revision tags: OPENBSD_3_4_BASE
# 1.8 02-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE SMP_BASE UBC_BASE UBC_SYNC_A UBC_SYNC_B kame_19991208
# 1.7 26-Nov-1999 art

branches: 1.7.2;
Yet another useless indentation fix (I don't like 'M' in my cvs updates).


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE
# 1.6 30-May-1997 downsj

Integrate new ext2fs, reverting ufs support for the old one.


Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE
# 1.5 27-Jun-1996 downsj

Moving some things around; struct inode still ends up bigger, though.
This should, hopefully, be the last UFS changes required.


# 1.4 24-Jun-1996 tholo

ufs_dirops only needed when compiling with _KERNEL


# 1.3 24-Jun-1996 downsj

ufs changes: add the notion of directory operators.

gnu/ext2fs: add the second extended filesystem.

Note that I'm commiting this now for the sake of the ufs changes; ext2fs
is not yet fully integrated into the system.


# 1.2 19-Apr-1996 niklas

NetBSD 960317 merge


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision