Commit Graph

113 Commits

Author SHA1 Message Date
jakllsch a3904b0b1f Catch up to the kernel with respect to Ext2 huge_file feature. 2012-11-25 19:42:14 +00:00
jakllsch afc2ce4252 e2di_nblock is (assuming the huge_file feature is not active) stored in
DEV_BSIZE units, not fs block size units.
2012-11-25 19:36:23 +00:00
dholland 2d1cf01ec8 stdlib.h, not malloc.h 2012-08-26 09:33:18 +00:00
plunky 2b8aaed8cd NULL does not need a cast, here 2011-09-16 16:13:16 +00:00
dholland 36f9677de9 Avoid -Wno-pointer-sign. 2011-08-06 16:42:41 +00:00
dholland 2fb6ddee8c Add static to a private function. 2011-08-06 16:39:40 +00:00
mrg 75e42fa7da remove most of the remaining HAVE_GCC tests that are always true in
the modern world.
2011-06-20 07:43:56 +00:00
christos 23ffdf5bd3 share more code. 2011-06-09 19:57:50 +00:00
wiz 1a64f4201c Call the file system "ext2" consistently. Suggested by tsutsui. 2010-02-21 13:26:45 +00:00
christos c68c36a514 Centralize time printing and deal with ctime possibly returning NULL. 2010-02-04 23:55:42 +00:00
christos 36cd9355e9 make this compile again. 2010-01-07 01:39:56 +00:00
christos 87e82597b6 PR/42568: Pedro F. Giffuni: Better signal handling from OpenBSD, but simplified. 2010-01-06 18:12:37 +00:00
bouyer 6d07b400dc Remove closes 3 & 4 from my licence. Lots of thanks to Soren Jacobsen
for the booring work !
2009-10-19 18:41:07 +00:00
tron e67b5654ff Ignore the "-P" option as intended to make this work with e.g.
"fsck_flags=-pP" in "/etc/rc.conf".

Patch supplied by Pierre Pronchery in PR bin/41490.
2009-08-16 13:50:54 +00:00
lukem 5bd52bbac4 fix sign-compare issues 2009-04-06 12:50:36 +00:00
joerg d7eb1430e2 Fix markup. 2009-03-15 10:01:47 +00:00
tsutsui f592533590 - add a sanity check for e2fs_inode_size in readsb()
- use EXT2_DINODE_SIZE() rather than sizeof(struct ext2fs_dinode) or
  struct ext2fs_dinode array/pointer to see e2fs_ipb and inode offsets
2009-03-02 11:31:59 +00:00
tsutsui 2af45ff960 Remove unnecessary casts. 2008-11-24 18:05:25 +00:00
tsutsui 0c5d01004e Handle 32 bit uid field on E2FS_REV1. 2008-11-24 17:41:29 +00:00
tsutsui 6189d5e324 Add missed byteswap ops against ext2fs_dinode members. 2008-11-24 17:37:17 +00:00
tsutsui ee70a0c964 Use "size > INT32_MAX" rather than "size >= 0x80000000U" to check 2GB limit. 2008-11-24 17:30:12 +00:00
tsutsui a43d077c5c - unsigned -> unsigned int
- remove unnecessary casts from malloc(3) and free(3)
- fix a bogus indent
2008-11-24 17:19:53 +00:00
wiz af2c2b73f3 Don't use unicode in usage.
Noted by Anon Ymous.
2008-10-12 20:49:43 +00:00
wiz 89cc13767c Sync usage with man page. 2008-10-09 18:38:24 +00:00
wiz 104f1a2c29 Standardize. 2008-10-09 18:32:08 +00:00
christos 59334248e2 Disable userid to username lookups by default. Add a -U flag to perform them.
In single user mode lookups that involve the network might not work and they
slow down fsck.
2008-10-09 16:56:23 +00:00
gmcgarry 3c9a95916d Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
lukem 6543a91fea Remove the \n and tabs from the __COPYRIGHT() strings.
(Tweak some to use a consistent format.)
2008-07-20 01:20:21 +00:00
lukem 54d1cc9562 Remove unused file. 2008-03-16 23:41:25 +00:00
lukem 481ad7b03a errexit() now provides the trailing \n (since fsck_ffs assumed that
from a conversion from err(3)), so "make it so".
2008-03-16 23:17:55 +00:00
lukem 84f13c769e sync from fsck_ffs/dir.c 1.21:
lost+found directories are mode -1700
2008-03-16 22:32:14 +00:00
christos 742b48d55e Make sure that the exit values are always sane, and use symbolic instead
of magic constants. Reviewed by go@
2008-02-23 21:41:47 +00:00
tsutsui 68fb2791e1 Use h2fs32() rather than fs2h32() on host to disk conversion. 2007-12-22 01:19:52 +00:00
tsutsui 37d769ed47 - use MINFREE defiend in <ufs/ext2fs/ext2fs.h>
- remove unnecessary casts
- unsigned -> unsigned int
- misc KNF
2007-12-22 01:15:49 +00:00
tsutsui 7bc26029c9 Remove unused macro. 2007-12-22 00:28:21 +00:00
tsutsui 1e795b0373 Add a workaround for incorrect "SUMMARY INFORMATIONS WRONG FOR CG #N"
and "BLK(S) MISSING IN BIT MAP #N" reports on newer ext2fs with
EXT2F_COMPAT_RESIZE feature by accounting blocks in EXT2_RESIZEINO.

XXX1: Should we account blocks allocated by all other reserved inodes?
XXX2: We should really check and fix EXT2_RESIZEINO accordingly.
2007-11-16 16:55:04 +00:00
tsutsui 672990c37a Fix e2fs_itpg calculation (a rounddown bug). 2007-11-13 17:25:43 +00:00
tsutsui 98bd33ec69 Use more proper aligned format in a debug function print_bmap(). 2007-11-13 13:57:52 +00:00
pooka 704e075311 Make all mount(2) return value error checks against -1. Some file
systems just checked != 0, breaking MNT_GETARGS.  Others worked with < 0,
but make them check against -1 too for consistency.  And sprinkle some
stylish line wrapping where appropriate.
2007-07-16 17:06:52 +00:00
dsl 7af7206539 Add additional 'sizeof args' parameter to mount(2). 2007-07-14 15:57:24 +00:00
drochner 628f1591c1 include <signal.h> where signal(3) is used 2007-02-08 21:36:58 +00:00
christos f076ca6346 use c99 initializers 2006-10-16 03:02:01 +00:00
christos 68475dcb61 comment out impossible code. 2006-10-16 03:01:36 +00:00
christos 2a1607d040 Programs that use efun. 2006-08-26 18:14:28 +00:00
christos 0268f6ea4e s/perror/perr 2006-06-05 16:53:14 +00:00
mrg aadd7d4847 sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4. 2006-05-11 23:16:28 +00:00
mrg 084c052803 quell GCC 4.1 uninitialised variable warnings.
XXX: we should audit the tree for which old ones are no longer needed
after getting the older compilers out of the tree..
2006-05-10 21:53:14 +00:00
christos 5fdb201207 We don't need ext2fs_extern.h 2006-05-06 22:23:37 +00:00
christos ef75a584c1 Coverity CID 2301: FIx memory leak. 2006-03-20 01:45:12 +00:00
christos 74f7dc651d Coverity CID 2299: Fix memory leak. 2006-03-20 01:37:10 +00:00