History log of /openbsd-current/sbin/quotacheck/quotacheck.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.42 03-Feb-2024 beck

Remove Softdep.

Softdep has been a no-op for some time now, this removes it to get
it out of the way.

Flensing mostly done in Talinn, with some help from krw@

ok deraadt@


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.41 28-Jun-2019 deraadt

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.40 26-Sep-2018 deraadt

related to the fsck changes, quotacheck must also determine & setup
unveil early on for the root filesystem.


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.39 10-Dec-2015 mmcc

Remove NULL-checks before free(). ok tb@


Revision tags: OPENBSD_5_8_BASE
# 1.38 18-Apr-2015 deraadt

Convert many atoi() calls to strtonum(), adding range checks and failure
handling along the way.
Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert


Revision tags: OPENBSD_5_7_BASE
# 1.37 07-Feb-2015 deraadt

When getopt processing flags, many should be flag=1 instead of flag++
ok tedu miod


# 1.36 20-Jan-2015 deraadt

Adjust <sys/param.h> comments regarding use of use of MAXFRAG, or
delete <sys/param.h> if now possible
ok guenther


# 1.35 16-Jan-2015 deraadt

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution. These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)


Revision tags: OPENBSD_5_6_BASE
# 1.34 22-Jul-2014 jca

FSTAB -> _PATH_FSTAB, the latter is deprecated.
From natano@bitrig, ok deraadt@


# 1.33 20-May-2014 krw

As suggested by guenther@ and millert@, replace seek+[read|write] with
p[read|write]. Makes the code much clearer by eliminating extra error
checking and verbiage.

No intentional functional change.

Tweaks by and ok guenther@


# 1.32 12-May-2014 krw

Remove useless dev_bsize variable and use DEV_BSIZE as needed. Divide
sblock_try[] entries by DEV_BSIZE to get proper 512-byte-block address
for bread().

Confirmed to still work on 4k-byte sector devices by David Vasek.


Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.31 11-Jun-2013 deraadt

final removal of daddr64_t. daddr_t has been 64 bit for a long enough
test period; i think 3 years ago the last bugs fell out.
ok otto beck others


# 1.30 23-Apr-2013 deraadt

handle large ino_t; ok tedu


Revision tags: OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.29 31-May-2012 krw

Let quotacheck work with duid based fstab. Missed one open() -> opendev()
from Rogier Krieger's original diff.

Found by and fix tested by dlg@


# 1.28 12-Apr-2012 deraadt

do not downsize a type before calling malloc


# 1.27 24-Mar-2012 jsg

fix some leaks
ok miod@


Revision tags: OPENBSD_5_1_BASE
# 1.26 08-Feb-2012 krw

Hammer fstab entries and command line entries into same format with
realpath() and opendev() so duid and device names work consistantly.
Also lets duid fstab entries work.

ok deraadt@


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.25 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.24 16-Dec-2007 otto

fix ffs2 case: fs_sblockloc's unit is disk sectors, not fragments;
ok millert@


Revision tags: OPENBSD_4_2_BASE
# 1.23 11-Jul-2007 millert

ffs2 support from FreeBSD. Tested by jmc@ and kili@


# 1.22 29-Jun-2007 deraadt

more daddr64_t changes; checked by otto


Revision tags: OPENBSD_4_1_BASE
# 1.21 21-Feb-2007 jmc

simplify synopsis and usage(); from Igor Sobrado


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE
# 1.20 05-Apr-2005 deraadt

spacing found while digging for bugs


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE
# 1.19 25-Aug-2003 tedu

rename struct dinode to ufs1_dinode. clears the namespace and makes
way for some future work. no function changes yet.
help testing otto@ and markus@


# 1.18 02-Jun-2003 millert

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


# 1.17 04-Apr-2003 deraadt

snprintf & strlcpy; tedu ok


Revision tags: OPENBSD_3_3_BASE
# 1.16 13-Mar-2003 deraadt

lots of sprintf -> snprintf and strcpy -> strlcpy; checked by tedu


# 1.15 11-Mar-2003 deraadt

strcpy -> strlcpy; Hans-Joerg.Hoexer@yerbouti.franken.de


Revision tags: OPENBSD_3_2_BASE
# 1.14 03-Jul-2002 deraadt

ansi


Revision tags: OPENBSD_3_1_BASE
# 1.13 17-Feb-2002 millert

Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)


# 1.12 16-Feb-2002 millert

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.


# 1.11 05-Nov-2001 mpech

kill more registers;

millert@ ok


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.10 25-Jun-1997 kstailey

(foo *)0 -> NULL


Revision tags: OPENBSD_2_1_BASE
# 1.9 22-Jan-1997 deraadt

call err() correctly


# 1.8 03-Jan-1997 mickey

make it work again, 'twas broken for a long time 'coze of ../fsck/preen.c
changes, that is yantc situation.
as a side effect it's parallelized too.


Revision tags: OPENBSD_2_0_BASE
# 1.7 23-Jun-1996 deraadt

update rcsid


# 1.6 25-Apr-1996 deraadt

permit quotas to work on mfs; problem reported by rdante@pnet.net


# 1.5 21-Apr-1996 deraadt

sync to netbsd 960418


# 1.4 07-Jan-1996 deraadt

accept either ffs or ufs for filesystem name


# 1.3 06-Nov-1995 deraadt

complete ufs -> ffs change (From John Kohl; PR #1403)


# 1.2 24-Oct-1995 deraadt

ufs -> ffs


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.41 28-Jun-2019 deraadt

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.40 26-Sep-2018 deraadt

related to the fsck changes, quotacheck must also determine & setup
unveil early on for the root filesystem.


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.39 10-Dec-2015 mmcc

Remove NULL-checks before free(). ok tb@


Revision tags: OPENBSD_5_8_BASE
# 1.38 18-Apr-2015 deraadt

Convert many atoi() calls to strtonum(), adding range checks and failure
handling along the way.
Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert


Revision tags: OPENBSD_5_7_BASE
# 1.37 07-Feb-2015 deraadt

When getopt processing flags, many should be flag=1 instead of flag++
ok tedu miod


# 1.36 20-Jan-2015 deraadt

Adjust <sys/param.h> comments regarding use of use of MAXFRAG, or
delete <sys/param.h> if now possible
ok guenther


# 1.35 16-Jan-2015 deraadt

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution. These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)


Revision tags: OPENBSD_5_6_BASE
# 1.34 22-Jul-2014 jca

FSTAB -> _PATH_FSTAB, the latter is deprecated.
From natano@bitrig, ok deraadt@


# 1.33 20-May-2014 krw

As suggested by guenther@ and millert@, replace seek+[read|write] with
p[read|write]. Makes the code much clearer by eliminating extra error
checking and verbiage.

No intentional functional change.

Tweaks by and ok guenther@


# 1.32 12-May-2014 krw

Remove useless dev_bsize variable and use DEV_BSIZE as needed. Divide
sblock_try[] entries by DEV_BSIZE to get proper 512-byte-block address
for bread().

Confirmed to still work on 4k-byte sector devices by David Vasek.


Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.31 11-Jun-2013 deraadt

final removal of daddr64_t. daddr_t has been 64 bit for a long enough
test period; i think 3 years ago the last bugs fell out.
ok otto beck others


# 1.30 23-Apr-2013 deraadt

handle large ino_t; ok tedu


Revision tags: OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.29 31-May-2012 krw

Let quotacheck work with duid based fstab. Missed one open() -> opendev()
from Rogier Krieger's original diff.

Found by and fix tested by dlg@


# 1.28 12-Apr-2012 deraadt

do not downsize a type before calling malloc


# 1.27 24-Mar-2012 jsg

fix some leaks
ok miod@


Revision tags: OPENBSD_5_1_BASE
# 1.26 08-Feb-2012 krw

Hammer fstab entries and command line entries into same format with
realpath() and opendev() so duid and device names work consistantly.
Also lets duid fstab entries work.

ok deraadt@


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.25 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.24 16-Dec-2007 otto

fix ffs2 case: fs_sblockloc's unit is disk sectors, not fragments;
ok millert@


Revision tags: OPENBSD_4_2_BASE
# 1.23 11-Jul-2007 millert

ffs2 support from FreeBSD. Tested by jmc@ and kili@


# 1.22 29-Jun-2007 deraadt

more daddr64_t changes; checked by otto


Revision tags: OPENBSD_4_1_BASE
# 1.21 21-Feb-2007 jmc

simplify synopsis and usage(); from Igor Sobrado


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE
# 1.20 05-Apr-2005 deraadt

spacing found while digging for bugs


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE
# 1.19 25-Aug-2003 tedu

rename struct dinode to ufs1_dinode. clears the namespace and makes
way for some future work. no function changes yet.
help testing otto@ and markus@


# 1.18 02-Jun-2003 millert

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


# 1.17 04-Apr-2003 deraadt

snprintf & strlcpy; tedu ok


Revision tags: OPENBSD_3_3_BASE
# 1.16 13-Mar-2003 deraadt

lots of sprintf -> snprintf and strcpy -> strlcpy; checked by tedu


# 1.15 11-Mar-2003 deraadt

strcpy -> strlcpy; Hans-Joerg.Hoexer@yerbouti.franken.de


Revision tags: OPENBSD_3_2_BASE
# 1.14 03-Jul-2002 deraadt

ansi


Revision tags: OPENBSD_3_1_BASE
# 1.13 17-Feb-2002 millert

Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)


# 1.12 16-Feb-2002 millert

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.


# 1.11 05-Nov-2001 mpech

kill more registers;

millert@ ok


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.10 25-Jun-1997 kstailey

(foo *)0 -> NULL


Revision tags: OPENBSD_2_1_BASE
# 1.9 22-Jan-1997 deraadt

call err() correctly


# 1.8 03-Jan-1997 mickey

make it work again, 'twas broken for a long time 'coze of ../fsck/preen.c
changes, that is yantc situation.
as a side effect it's parallelized too.


Revision tags: OPENBSD_2_0_BASE
# 1.7 23-Jun-1996 deraadt

update rcsid


# 1.6 25-Apr-1996 deraadt

permit quotas to work on mfs; problem reported by rdante@pnet.net


# 1.5 21-Apr-1996 deraadt

sync to netbsd 960418


# 1.4 07-Jan-1996 deraadt

accept either ffs or ufs for filesystem name


# 1.3 06-Nov-1995 deraadt

complete ufs -> ffs change (From John Kohl; PR #1403)


# 1.2 24-Oct-1995 deraadt

ufs -> ffs


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.40 26-Sep-2018 deraadt

related to the fsck changes, quotacheck must also determine & setup
unveil early on for the root filesystem.


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.39 10-Dec-2015 mmcc

Remove NULL-checks before free(). ok tb@


Revision tags: OPENBSD_5_8_BASE
# 1.38 18-Apr-2015 deraadt

Convert many atoi() calls to strtonum(), adding range checks and failure
handling along the way.
Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert


Revision tags: OPENBSD_5_7_BASE
# 1.37 07-Feb-2015 deraadt

When getopt processing flags, many should be flag=1 instead of flag++
ok tedu miod


# 1.36 20-Jan-2015 deraadt

Adjust <sys/param.h> comments regarding use of use of MAXFRAG, or
delete <sys/param.h> if now possible
ok guenther


# 1.35 16-Jan-2015 deraadt

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution. These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)


Revision tags: OPENBSD_5_6_BASE
# 1.34 22-Jul-2014 jca

FSTAB -> _PATH_FSTAB, the latter is deprecated.
From natano@bitrig, ok deraadt@


# 1.33 20-May-2014 krw

As suggested by guenther@ and millert@, replace seek+[read|write] with
p[read|write]. Makes the code much clearer by eliminating extra error
checking and verbiage.

No intentional functional change.

Tweaks by and ok guenther@


# 1.32 12-May-2014 krw

Remove useless dev_bsize variable and use DEV_BSIZE as needed. Divide
sblock_try[] entries by DEV_BSIZE to get proper 512-byte-block address
for bread().

Confirmed to still work on 4k-byte sector devices by David Vasek.


Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.31 11-Jun-2013 deraadt

final removal of daddr64_t. daddr_t has been 64 bit for a long enough
test period; i think 3 years ago the last bugs fell out.
ok otto beck others


# 1.30 23-Apr-2013 deraadt

handle large ino_t; ok tedu


Revision tags: OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.29 31-May-2012 krw

Let quotacheck work with duid based fstab. Missed one open() -> opendev()
from Rogier Krieger's original diff.

Found by and fix tested by dlg@


# 1.28 12-Apr-2012 deraadt

do not downsize a type before calling malloc


# 1.27 24-Mar-2012 jsg

fix some leaks
ok miod@


Revision tags: OPENBSD_5_1_BASE
# 1.26 08-Feb-2012 krw

Hammer fstab entries and command line entries into same format with
realpath() and opendev() so duid and device names work consistantly.
Also lets duid fstab entries work.

ok deraadt@


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.25 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.24 16-Dec-2007 otto

fix ffs2 case: fs_sblockloc's unit is disk sectors, not fragments;
ok millert@


Revision tags: OPENBSD_4_2_BASE
# 1.23 11-Jul-2007 millert

ffs2 support from FreeBSD. Tested by jmc@ and kili@


# 1.22 29-Jun-2007 deraadt

more daddr64_t changes; checked by otto


Revision tags: OPENBSD_4_1_BASE
# 1.21 21-Feb-2007 jmc

simplify synopsis and usage(); from Igor Sobrado


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE
# 1.20 05-Apr-2005 deraadt

spacing found while digging for bugs


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE
# 1.19 25-Aug-2003 tedu

rename struct dinode to ufs1_dinode. clears the namespace and makes
way for some future work. no function changes yet.
help testing otto@ and markus@


# 1.18 02-Jun-2003 millert

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


# 1.17 04-Apr-2003 deraadt

snprintf & strlcpy; tedu ok


Revision tags: OPENBSD_3_3_BASE
# 1.16 13-Mar-2003 deraadt

lots of sprintf -> snprintf and strcpy -> strlcpy; checked by tedu


# 1.15 11-Mar-2003 deraadt

strcpy -> strlcpy; Hans-Joerg.Hoexer@yerbouti.franken.de


Revision tags: OPENBSD_3_2_BASE
# 1.14 03-Jul-2002 deraadt

ansi


Revision tags: OPENBSD_3_1_BASE
# 1.13 17-Feb-2002 millert

Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)


# 1.12 16-Feb-2002 millert

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.


# 1.11 05-Nov-2001 mpech

kill more registers;

millert@ ok


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.10 25-Jun-1997 kstailey

(foo *)0 -> NULL


Revision tags: OPENBSD_2_1_BASE
# 1.9 22-Jan-1997 deraadt

call err() correctly


# 1.8 03-Jan-1997 mickey

make it work again, 'twas broken for a long time 'coze of ../fsck/preen.c
changes, that is yantc situation.
as a side effect it's parallelized too.


Revision tags: OPENBSD_2_0_BASE
# 1.7 23-Jun-1996 deraadt

update rcsid


# 1.6 25-Apr-1996 deraadt

permit quotas to work on mfs; problem reported by rdante@pnet.net


# 1.5 21-Apr-1996 deraadt

sync to netbsd 960418


# 1.4 07-Jan-1996 deraadt

accept either ffs or ufs for filesystem name


# 1.3 06-Nov-1995 deraadt

complete ufs -> ffs change (From John Kohl; PR #1403)


# 1.2 24-Oct-1995 deraadt

ufs -> ffs


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.39 10-Dec-2015 mmcc

Remove NULL-checks before free(). ok tb@


Revision tags: OPENBSD_5_8_BASE
# 1.38 18-Apr-2015 deraadt

Convert many atoi() calls to strtonum(), adding range checks and failure
handling along the way.
Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert


Revision tags: OPENBSD_5_7_BASE
# 1.37 07-Feb-2015 deraadt

When getopt processing flags, many should be flag=1 instead of flag++
ok tedu miod


# 1.36 20-Jan-2015 deraadt

Adjust <sys/param.h> comments regarding use of use of MAXFRAG, or
delete <sys/param.h> if now possible
ok guenther


# 1.35 16-Jan-2015 deraadt

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution. These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)


Revision tags: OPENBSD_5_6_BASE
# 1.34 22-Jul-2014 jca

FSTAB -> _PATH_FSTAB, the latter is deprecated.
From natano@bitrig, ok deraadt@


# 1.33 20-May-2014 krw

As suggested by guenther@ and millert@, replace seek+[read|write] with
p[read|write]. Makes the code much clearer by eliminating extra error
checking and verbiage.

No intentional functional change.

Tweaks by and ok guenther@


# 1.32 12-May-2014 krw

Remove useless dev_bsize variable and use DEV_BSIZE as needed. Divide
sblock_try[] entries by DEV_BSIZE to get proper 512-byte-block address
for bread().

Confirmed to still work on 4k-byte sector devices by David Vasek.


Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.31 11-Jun-2013 deraadt

final removal of daddr64_t. daddr_t has been 64 bit for a long enough
test period; i think 3 years ago the last bugs fell out.
ok otto beck others


# 1.30 23-Apr-2013 deraadt

handle large ino_t; ok tedu


Revision tags: OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.29 31-May-2012 krw

Let quotacheck work with duid based fstab. Missed one open() -> opendev()
from Rogier Krieger's original diff.

Found by and fix tested by dlg@


# 1.28 12-Apr-2012 deraadt

do not downsize a type before calling malloc


# 1.27 24-Mar-2012 jsg

fix some leaks
ok miod@


Revision tags: OPENBSD_5_1_BASE
# 1.26 08-Feb-2012 krw

Hammer fstab entries and command line entries into same format with
realpath() and opendev() so duid and device names work consistantly.
Also lets duid fstab entries work.

ok deraadt@


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.25 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.24 16-Dec-2007 otto

fix ffs2 case: fs_sblockloc's unit is disk sectors, not fragments;
ok millert@


Revision tags: OPENBSD_4_2_BASE
# 1.23 11-Jul-2007 millert

ffs2 support from FreeBSD. Tested by jmc@ and kili@


# 1.22 29-Jun-2007 deraadt

more daddr64_t changes; checked by otto


Revision tags: OPENBSD_4_1_BASE
# 1.21 21-Feb-2007 jmc

simplify synopsis and usage(); from Igor Sobrado


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE
# 1.20 05-Apr-2005 deraadt

spacing found while digging for bugs


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE
# 1.19 25-Aug-2003 tedu

rename struct dinode to ufs1_dinode. clears the namespace and makes
way for some future work. no function changes yet.
help testing otto@ and markus@


# 1.18 02-Jun-2003 millert

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


# 1.17 04-Apr-2003 deraadt

snprintf & strlcpy; tedu ok


Revision tags: OPENBSD_3_3_BASE
# 1.16 13-Mar-2003 deraadt

lots of sprintf -> snprintf and strcpy -> strlcpy; checked by tedu


# 1.15 11-Mar-2003 deraadt

strcpy -> strlcpy; Hans-Joerg.Hoexer@yerbouti.franken.de


Revision tags: OPENBSD_3_2_BASE
# 1.14 03-Jul-2002 deraadt

ansi


Revision tags: OPENBSD_3_1_BASE
# 1.13 17-Feb-2002 millert

Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)


# 1.12 16-Feb-2002 millert

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.


# 1.11 05-Nov-2001 mpech

kill more registers;

millert@ ok


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.10 25-Jun-1997 kstailey

(foo *)0 -> NULL


Revision tags: OPENBSD_2_1_BASE
# 1.9 22-Jan-1997 deraadt

call err() correctly


# 1.8 03-Jan-1997 mickey

make it work again, 'twas broken for a long time 'coze of ../fsck/preen.c
changes, that is yantc situation.
as a side effect it's parallelized too.


Revision tags: OPENBSD_2_0_BASE
# 1.7 23-Jun-1996 deraadt

update rcsid


# 1.6 25-Apr-1996 deraadt

permit quotas to work on mfs; problem reported by rdante@pnet.net


# 1.5 21-Apr-1996 deraadt

sync to netbsd 960418


# 1.4 07-Jan-1996 deraadt

accept either ffs or ufs for filesystem name


# 1.3 06-Nov-1995 deraadt

complete ufs -> ffs change (From John Kohl; PR #1403)


# 1.2 24-Oct-1995 deraadt

ufs -> ffs


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision