Commit Graph

42 Commits

Author SHA1 Message Date
christos
cf237a73b8 remove gcc-4.5 hacks. 2011-08-14 12:30:04 +00:00
christos
453164da22 fix compilation. 2011-06-09 21:23:29 +00:00
christos
23ffdf5bd3 share more code. 2011-06-09 19:57:50 +00:00
lukem
cefb0777de fix sign-compare issues 2009-04-11 06:48:36 +00:00
bouyer
a8ac39af81 Add fss(4) snapshot support to fsck_ffs(8) (via -x or -X options, like
dump(8)). This allows fsck_ffs -n to work on a snapshot of a R/W mounted
filesystem, and avoid errors related to filesystem activity.
2008-08-30 10:46:16 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
christos
17e1e1af49 c99 initializer 2006-10-16 03:10:59 +00:00
christos
e70330c76d Coverity CID 3656,3655: Plug memory leak. 2006-05-19 14:50:32 +00:00
skrll
7ba7efe154 Don't use cast expressions as lvalues as newer versions of gcc warn. 2006-04-21 15:00:49 +00:00
christos
c4ee9f6d2e 64 bit inode changes 2005-08-19 02:07:18 +00:00
lukem
700088dc7f appease gcc -Wuninitialized 2005-06-02 00:38:41 +00:00
xtraeme
e4e811215a Kill __P(); 2005-02-05 14:26:05 +00:00
xtraeme
d4a0de51f8 Kill __P(), ANSIfy, remove main() prototype; WARNS=2 2005-01-19 20:19:04 +00:00
yamt
22ce35857e fix blks command.
- use 64-bit variables for lbns.
- correct file block offsets in the case of absent indirect blocks.
2004-09-17 12:18:55 +00:00
wiz
71839f7f61 Standardize flags display in usage. 2004-01-04 00:13:00 +00:00
dbj
efbd5db673 add -F option, similar to fsck/newfs/dumpfs
correctly handle negative results from fsck's setup routine
handle uid and gid in FS_42INODEFMT inodes
2004-01-03 19:57:42 +00:00
itojun
0e4dc5229d use bounded string op 2003-07-13 08:16:15 +00:00
bouyer
e43e53604e Add a findblk command, which list the inode(s) owning the disk sector(s)
passed as argument.
2003-04-26 08:42:49 +00:00
fvdl
bbc00e975a Fix reverse test for UFS2 in the blks command. 2003-04-08 14:46:21 +00:00
fvdl
42614ed3f3 Add support for UFS2. UFS2 is an enhanced FFS, adding support for
64 bit block pointers, extended attribute storage, and a few
other things.

This commit does not yet include the code to manipulate the extended
storage (for e.g. ACLs), this will be done later.

Originally written by Kirk McKusick and Network Associates Laboratories for
FreeBSD.
2003-04-02 10:39:19 +00:00
fvdl
a3ff3a3038 Bump daddr_t to 64 bits. Replace it with int32_t in all places where
it was used on-disk, so that on-disk formats remain the same.
Remove ufs_daddr_t and ufs_lbn_t for the time being.
2003-01-24 21:55:02 +00:00
grant
6742cb1812 sweep of errx/warnx, remove unnecessary trailing \n 2002-07-20 08:36:17 +00:00
thorpej
26ba84d1e5 Cast 3rd arg to el_parse() to deal with const'ification of
libedit.
2002-03-18 20:04:49 +00:00
cgd
8a986b2e96 convert to use getprogname() 2001-02-19 22:48:57 +00:00
christos
566662ba06 remove redundant declarations 2001-02-04 21:25:54 +00:00
is
9979da6cbb Format string cleanups by Bill Sommerfeld. 2000-10-10 20:24:49 +00:00
bouyer
4656cdfb18 Add a [-n] option, which allows to examine a fs without altering it.
Add a 'blks' command, which lists the blocks address of a file.
1999-03-09 16:11:47 +00:00
enami
96b575ec0b s/H_SETMAXSIZE/H_SETSIZE/ 1998-05-20 10:01:11 +00:00
christos
1b8cd7e6c1 Adapt to the libedit changes. 1998-05-20 00:58:05 +00:00
kleink
a82d8663e7 Need <time.h> for mktime() prototype. 1998-04-01 16:04:21 +00:00
bouyer
6fe0568e9e Add support for non-native byteorder FFS. 1998-03-18 17:03:15 +00:00
christos
946049095f PR/4257: Jaromir Dolecek: Update for libedit interface change. 1997-10-14 15:06:42 +00:00
lukem
e8d49227b7 deprecate register 1997-09-15 01:45:36 +00:00
lukem
66a64254b8 * KNF-ify
* prefix hex numbers with '0x'
1997-09-14 14:56:57 +00:00
jtc
fb0208bc77 Fix files using old TNF copyright notice 1997-07-31 00:21:53 +00:00
lukem
6c8a1cc329 don't call el_parse() if there's no commands (el_parse() now checks this,
but more safety is good)
1997-01-11 06:50:53 +00:00
thorpej
7e0782662e Add a chlen command, to change the length/size of an inode. From FreeBSD. 1996-10-11 20:22:43 +00:00
christos
60e2d41cb1 Make this work after the fsck changes. 1996-09-28 19:30:35 +00:00
jtc
cac62b2d65 Be pedantic, main() returns int in C. 1996-03-21 17:56:15 +00:00
jtc
8bd51c47b9 Copyright assigned to the NetBSD Foundation 1996-02-27 22:28:09 +00:00
thorpej
e727d216d2 A teensy bit of really minor cleanup. 1995-10-08 23:18:08 +00:00
thorpej
3f7621c16a FFS debugging/editing tool, from John Kohl. 1995-10-08 23:08:36 +00:00