OpenBSD CVS

CVS log for src/sbin/fsck_ext2fs/utilities.c


[BACK] Up to [local] / src / sbin / fsck_ext2fs

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.29 / (download) - annotate - [select for diffs], Wed Mar 8 04:43:06 2023 UTC (15 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, HEAD
Changes since 1.28: +1 -4 lines
Diff to previous 1.28 (colored)

Delete obsolete /* ARGSUSED */ lint comments.

ok miod@ millert@

Revision 1.28 / (download) - annotate - [select for diffs], Wed Feb 6 16:21:27 2019 UTC (5 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)

Replace overlapping memcpy() with memmove() in getpathname().
Same fix as in fsck_ffs.  OK deraadt@ tb@

Revision 1.27 / (download) - annotate - [select for diffs], Wed Mar 16 15:41:10 2016 UTC (8 years, 2 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

More "(<blah> *)0" -> NULL, avoiding any stdarg functions.

Feedback millert@ kettenis@

Revision 1.26 / (download) - annotate - [select for diffs], Sat Sep 5 20:07:11 2015 UTC (8 years, 9 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.25: +4 -5 lines
Diff to previous 1.25 (colored)

snprintf+write --> dprintf

ok deraadt@

Revision 1.25 / (download) - annotate - [select for diffs], Thu Aug 20 22:02:20 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

<stdlib.h> is included, so do not need to cast result from
malloc, calloc, realloc*
ok krw millert

Revision 1.24 / (download) - annotate - [select for diffs], Fri Jan 16 06:39:57 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.23: +3 -2 lines
Diff to previous 1.23 (colored)

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 1.23 / (download) - annotate - [select for diffs], Sun Jul 13 16:08:53 2014 UTC (9 years, 10 months ago) by pelikan
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

kill fs2hXX/h2fsXX macros with letohXX/htoleXX

The reason being that ext2 structures are little-endian but JBD2 journal
is big-endian.  Don't confuse readers by talking about "file system endian".

ok guenther

Revision 1.22 / (download) - annotate - [select for diffs], Sat May 24 14:54:49 2014 UTC (10 years ago) by krw
Branch: MAIN
Changes since 1.21: +13 -6 lines
Diff to previous 1.21 (colored)

Use consistent format specifiers (%lld) and casts (long long) when
printing out block numbers and sector numbers. Make output verbiage
consistent. -Wall happier.

Original diff and ok chl@

Revision 1.21 / (download) - annotate - [select for diffs], Thu May 22 14:04:41 2014 UTC (10 years ago) by krw
Branch: MAIN
Changes since 1.20: +13 -13 lines
Diff to previous 1.20 (colored)

Nuke pointless dev_bsize variable which is always set to 512, and just
use DEV_BSIZE.

Write sizes need to be secsize and not DEV_BSIZE, just like reads.

Equivalent to changes made in fsck_ffs.

Revision 1.20 / (download) - annotate - [select for diffs], Tue May 20 21:11:16 2014 UTC (10 years ago) by krw
Branch: MAIN
Changes since 1.19: +5 -15 lines
Diff to previous 1.19 (colored)

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@

Revision 1.19 / (download) - annotate - [select for diffs], Sat Mar 12 17:50:47 2011 UTC (13 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.18: +9 -9 lines
Diff to previous 1.18 (colored)

These utilities can currently only operate with a 32-bit block number range,
so use daddr32_t
ok jasper

Revision 1.18 / (download) - annotate - [select for diffs], Thu Dec 10 16:01:50 2009 UTC (14 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.17: +3 -1 lines
Diff to previous 1.17 (colored)

do not leak memory, found by parfait, ok millert otto
(one case was a false positive, but one is a modified copy of the other)

Revision 1.17 / (download) - annotate - [select for diffs], Thu Apr 20 02:24:38 2006 UTC (18 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.16: +18 -13 lines
Diff to previous 1.16 (colored)

solve some signal races; from fsck_ffs; ok pedro

Revision 1.16 / (download) - annotate - [select for diffs], Sun Apr 2 00:48:35 2006 UTC (18 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.15: +7 -7 lines
Diff to previous 1.15 (colored)

use SEEK_* for lseek()

Revision 1.15 / (download) - annotate - [select for diffs], Thu Mar 30 01:16:30 2006 UTC (18 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.14: +7 -3 lines
Diff to previous 1.14 (colored)

when asking y or n, accept "F" which forces yes from the on.  i have
wished for this for 10+ year, but always forgotten to make the change
after cleaning up a nasty file system; ok pedro millert

Revision 1.14 / (download) - annotate - [select for diffs], Wed Jun 11 06:22:13 2003 UTC (21 years ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.13: +19 -47 lines
Diff to previous 1.13 (colored)

ansification

Revision 1.13 / (download) - annotate - [select for diffs], Mon Jun 2 20:06:15 2003 UTC (21 years ago) by millert
Branch: MAIN
Changes since 1.12: +2 -6 lines
Diff to previous 1.12 (colored)

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

Revision 1.12 / (download) - annotate - [select for diffs], Thu Apr 17 06:48:47 2003 UTC (21 years, 1 month ago) by tedu
Branch: MAIN
Changes since 1.11: +11 -10 lines
Diff to previous 1.11 (colored)

strings.  mostly from deraadt@, some from tdeval@ and myself

Revision 1.11 / (download) - annotate - [select for diffs], Sat Feb 23 21:23:46 2002 UTC (22 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

getc() returns an int

Revision 1.10 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:34 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

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.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Sep 18 17:43:15 2001 UTC (22 years, 8 months ago) by art
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.8: +14 -25 lines
Diff to previous 1.8 (colored)

cleanups and endianness fixes. Mostly from NetBSD

Revision 1.8 / (download) - annotate - [select for diffs], Wed Jan 31 22:31:51 2001 UTC (23 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

KNF; tomo@ns1.infinitedata.net

Revision 1.7 / (download) - annotate - [select for diffs], Fri Jan 19 17:57:36 2001 UTC (23 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.6: +5 -2 lines
Diff to previous 1.6 (colored)

mark signal races i cannot fix at the moment

Revision 1.6 / (download) - annotate - [select for diffs], Sat Sep 30 16:06:34 2000 UTC (23 years, 8 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

Some format string problems that were missed during initial audit; deraadt@ and
millert@ ok

Revision 1.5 / (download) - annotate - [select for diffs], Wed Apr 26 23:26:07 2000 UTC (24 years, 1 month ago) by jasoni
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.4: +12 -7 lines
Diff to previous 1.4 (colored)

Support for ext2fs rev. 1

Revision 1.4 / (download) - annotate - [select for diffs], Wed Jun 25 18:40:43 1997 UTC (26 years, 11 months ago) by kstailey
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6, OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4, OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored)

(foo *)0 -> NULL

Revision 1.3 / (download) - annotate - [select for diffs], Sat Jun 14 04:17:00 1997 UTC (27 years ago) by downsj
Branch: MAIN
Changes since 1.2: +5 -0 lines
Diff to previous 1.2 (colored)

Add tags, fix man page.  Purely cosmetic.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Jun 14 04:06:33 1997 UTC (27 years ago) by downsj
Branch: MAIN
Changes since 1.1: +3 -4 lines
Diff to previous 1.1 (colored)

Sync with NetBSD.  Purely cosmetic.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Fri May 30 04:33:55 1997 UTC (27 years ago) by downsj
Branch: BOUYER
CVS Tags: R19970424
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

Initial import of Manuel's fsck_ext2fs, unmodified.

Revision 1.1 / (download) - annotate - [select for diffs], Fri May 30 04:33:55 1997 UTC (27 years ago) by downsj
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.