History log of /src/sbin/fsck/fsck.c |
Revision | | Date | Author | Comments |
1.53 |
| 24-Jan-2023 |
mlelstv | Use opendisk when looking for filesystem type, otherwise the detection only works if the correct device path is given as an argument.
|
1.52 |
| 25-Oct-2014 |
mlelstv | branches: 1.52.26; fix logic that handles command line arguments. Now you can:
fsck /mnt/point fsck dkX fsck rdkX fsck /dev/dkX fsck /dev/rdkX fsck NAME=wedge
|
1.51 |
| 07-Apr-2012 |
christos | branches: 1.51.10; use getfsspecname()
|
1.50 |
| 27-Aug-2011 |
joerg | branches: 1.50.2; Use __dead and __printflike.
|
1.49 |
| 24-Feb-2010 |
hannken | Dont pass option -x down to fsck_xxxfs.
Hi christos ...
|
1.48 |
| 17-Feb-2010 |
christos | Add -x <mountpoint> ``exclude'' option.
|
1.47 |
| 23-Feb-2008 |
christos | Make sure that the exit values are always sane, and use symbolic instead of magic constants. Reviewed by go@
|
1.46 |
| 17-Jul-2007 |
christos | branches: 1.46.4; 1.46.10; 1.46.12; kill MFSNAMELEN
|
1.45 |
| 13-Dec-2006 |
christos | Sprinkle volatile, instead of using the (void)&foo; which does not work on gcc 4.
|
1.44 |
| 16-Oct-2006 |
christos | - add volatile - static before const
|
1.43 |
| 26-Aug-2006 |
christos | Programs that use efun.
|
1.42 |
| 20-Mar-2006 |
christos | Coverity CID 1745: Fix memory leak.
|
1.41 |
| 27-Jun-2005 |
christos | Move WARNS=3 to the Makefile.inc, and add a little const to the remaining programs that did not compile before.
|
1.40 |
| 19-Jan-2005 |
xtraeme | Add 'P' (progress meter flag) to getopt()'s optstring, remove main() prototype.
|
1.39 |
| 19-Jan-2005 |
wiz | Sync usage with reality.
|
1.38 |
| 13-Jan-2005 |
christos | When we run with 'fsck -f -n' we should go over all the filesystems, not exit on the first one that fails. Add a new flag CHECK_NOFIX so that we specify -n, we keep going.
|
1.37 |
| 13-Jan-2005 |
christos | Add a progress meter to fsck_ffs based on the work by thorpej presented to the mailing lists last January. This is optional.
|
1.36 |
| 25-Sep-2004 |
thorpej | Try the DIOCGWEDGEINFO ioctl first. If that succeeds (i.e. the block device is a wedge), use the partition type string from the dkwedge_info structure to get the file system type.
|
1.35 |
| 19-Aug-2004 |
christos | Deal with RESCUEDIR
|
1.34 |
| 21-Apr-2004 |
christos | Replace the statfs() family of system calls with statvfs(). Retain binary compatibility.
|
1.33 |
| 20-Mar-2004 |
christos | Remove my license.
|
1.32 |
| 05-Jan-2004 |
jmmv | Homogenize usage messages: make the 'usage' word all lowercase, as this seems to be the most common practice in our tree.
|
1.31 |
| 20-Oct-2003 |
dsl | Add a -q (quiet) option to print nothing for clean filesystems. Support in fsck_ffs and stub in fsck_xxx. Push a few more messages through pwarn() instead of printf() to ensure disk name is shown.
|
1.30 |
| 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22308, verified by myself.
|
1.29 |
| 23-Aug-2002 |
lukem | if _PATH_RESCUE is defined, try that before _PATH_SBIN & _PATH_USRSBIN
|
1.28 |
| 20-Dec-2001 |
soren | Sync getopt() / man page with actual getopt options.
|
1.27 |
| 01-Nov-2001 |
lukem | fix a couple of -Wshadow warnings
|
1.26 |
| 18-Jun-2001 |
lukem | - Don't attempt to fsck a file system that is mounted read-write unless -f (force) is given. fsck(8) will return with a zero exit status if "fsck -p" is used in this circumstance, but all other invocations (e.g, "fsck", "fsck /filesystem", "fsck -p /filesystem") will return with a non-zero exit status in this circumstance. Per discussions with various people including Bill Sommerfeld. - Use "file system" instead of "filesystem"
|
1.25 |
| 18-Jun-2001 |
lukem | ansi knf
|
1.24 |
| 18-Jun-2001 |
lukem | use TAILQ_xxx instead of referencing tqh_xxx elements directly
|
1.23 |
| 19-Feb-2001 |
cgd | convert to use getprogname()
|
1.22 |
| 04-Feb-2001 |
christos | remove redundant declarations and nested externs.
|
1.21 |
| 22-Apr-1999 |
abs | Copy code across from newfs so that 'fsck sd0a' and similar will work.
|
1.20 |
| 12-Nov-1998 |
christos | Adjust for DKTYPENAME changes.
|
1.19 |
| 25-Aug-1998 |
ross | from Erik Bertelsen <erik@mediator.uni-c.dk> { put } { in } { lots } { of } { these } { to } { shut } { up } { egcs }
|
1.18 |
| 26-Jul-1998 |
mycroft | const poisoning.
|
1.17 |
| 26-Jul-1998 |
mycroft | const poisoning.
|
1.16 |
| 31-Oct-1997 |
mycroft | Rewrite catopt(), as in mount(8).
|
1.15 |
| 31-Oct-1997 |
mycroft | Format police.
|
1.14 |
| 29-Oct-1997 |
christos | PR/4384: Brian Grayson: Use real name for exec'ed child's argv[0]
|
1.13 |
| 13-Oct-1997 |
bouyer | branches: 1.13.2; The number of fs types is FSMAXTYPES not DKMAXTYPES.
|
1.12 |
| 14-Sep-1997 |
lukem | * cleanup for WARNS=1 * deprecate register * prefix hex numbers with '0x'
|
1.11 |
| 23-Jun-1997 |
mikel | eliminate excess errx() argument
|
1.10 |
| 20-Jun-1997 |
christos | Move fscknames to <sys/disklabel.h> where they belong logically.
|
1.9 |
| 07-Dec-1996 |
christos | PR/3002: bug in my previous commit.
|
1.8 |
| 05-Dec-1996 |
christos | PR/2975: fsck lies to children about their program name PR/2979: fsck is not smart enough about filesystems not in /etc/fstab
|
1.7 |
| 03-Oct-1996 |
christos | - Null terminate the argv vector [from ws] - Dynamically allocate the argv vector - Add -f global flag [from ws]
|
1.6 |
| 28-Sep-1996 |
christos | Fix typo.
|
1.5 |
| 28-Sep-1996 |
christos | Allow for an extra argument needed by quotacheck.
|
1.4 |
| 27-Sep-1996 |
christos | - Rename util.c and util.h to fsutil.c and fsutil.h to avoid conflict with <util.h> - Change checkfstab so that the checkit function takes the name of the mount point too (needed by quotacheck). - Remove globals debug, verbose and preen
|
1.3 |
| 27-Sep-1996 |
cgd | fix up a debugging printf (was given its args in the wrong order), and allow "ufs" in /etc/fstab to indicate MOUNT_UFS == MOUNT_FFS (for backward compatibility).
|
1.2 |
| 23-Sep-1996 |
christos | - added -T fstype:fsoptions per cgd's suggestion. - handle parallelism in preening here using the original preening code from fsck_ffs. - move common code from fsck_ffs and fsck_msdos here.
|
1.1 |
| 11-Sep-1996 |
christos | New version of filesystem independent fsck(8) program similar to mount(8).
|
1.13.2.1 |
| 31-Oct-1997 |
mellon | Pull rev 1.14, 1.15 and 1.16 up from trunk (mycroft)
|
1.46.12.1 |
| 03-Apr-2008 |
mjf | Sync with HEAD.
|
1.46.10.1 |
| 24-Mar-2008 |
keiichi | sync with head.
|
1.46.4.1 |
| 23-Mar-2008 |
matt | sync with HEAD
|
1.50.2.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.51.10.1 |
| 11-Nov-2014 |
martin | Pull up following revision(s) (requested by mlelstv in ticket #199): sbin/newfs/newfs.c: revision 1.112 sbin/fsck/fsck.c: revision 1.52 fix logic that handles command line arguments. Now you can: fsck /mnt/point fsck dkX fsck rdkX fsck /dev/dkX fsck /dev/rdkX fsck NAME=wedge Support wedge names. before: newfs dk1 - formats /dev/rdk1 newfs rdk1 - cannot open /dev/rrdk1 newfs /dev/dk1 - /dev/dk1 is a block-device, use raw device newfs /dev/rdk1 - formats /dev/rdk1 now: newfs dk1 - formats /dev/rdk1 newfs rdk1 - cannot open /dev/rrdk1 newfs /dev/dk1 - formats /dev/rdk1 (*) newfs /dev/rdk1 - formats /dev/rdk1 newfs NAME=wedge - formats /dev/rdk1 (*) getfsspecname() returns the block device which must be translated. Passing a block device manually cannot be distinguished from this case.
|
1.52.26.1 |
| 22-Feb-2023 |
martin | Pull up following revision(s) (requested by mlelstv in ticket #93):
sbin/fsck/fsck.c: revision 1.53
Use opendisk when looking for filesystem type, otherwise the detection only works if the correct device path is given as an argument.
|