Commit Graph

247 Commits

Author SHA1 Message Date
mlelstv 6fa7c3413b Fix handling of NAME aliases in /etc/fstab. 2013-09-08 13:26:05 +00:00
dholland 2737439da3 fsbtodb() -> FFS_FSBTODB(), EXT2_FSBTODB(), or MFS_FSBTODB()
dbtofsb() -> FFS_DBTOFSB() or EXT2_DBTOFSB()

(Christos already did the lfs ones a few days back)
2013-06-23 02:06:04 +00:00
dholland f1333577b5 Rename ambiguous macros:
MAXDIRSIZE -> UFS_MAXDIRSIZE or LFS_MAXDIRSIZE
   NINDIR -> FFS_NINDIR, EXT2_NINDIR, LFS_NINDIR, or MFS_NINDIR
   INOPB -> FFS_INOPB, LFS_INOPB
   INOPF -> FFS_INOPF, LFS_INOPF
   blksize -> ffs_blksize, ext2_blksize, or lfs_blksize
   sblksize -> ffs_blksize

These are not the only ambiguously defined filesystem macros, of
course, there's a pile more. I may not have found all the ambiguous
definitions of blksize(), too, as there are a lot of other things
called 'blksize' in the system.
2013-06-19 17:51:25 +00:00
christos 78f1cd9f5b handle new lfs split 2013-06-15 01:27:19 +00:00
dholland dcd34a91c5 Stuff UFS_ in front of a few of ufs's symbols to reduce namespace
pollution. Specifically:
   ROOTINO -> UFS_ROOTINO
   WINO -> UFS_WINO
   NXADDR -> UFS_NXADDR
   NDADDR -> UFS_NDADDR
   NIADDR -> UFS_NIADDR
   MAXSYMLINKLEN -> UFS_MAXSYMLINKLEN
   MAXSYMLINKLEN_UFS[12] -> UFS[12]_MAXSYMLINKLEN (for consistency)

Sort out ext2fs's misuse of NDADDR and NIADDR; fortunately, these have
the same values in ext2fs and ffs.

No functional change intended.
2013-01-22 09:39:11 +00:00
dholland 1df724eeb6 Use __printflike. 2013-01-13 23:45:35 +00:00
dholland 0f01602e5e Use void * for I/O functions and remove no-longer-needed casts. 2013-01-13 23:17:18 +00:00
dholland aaa9827ea1 Use more static. 2013-01-13 23:07:16 +00:00
dholland a010b743a6 Use static; remove unused global var this uncovered. 2013-01-13 22:59:31 +00:00
dholland 895e26fb92 Use <ctype.h> functions correctly. 2013-01-13 22:54:24 +00:00
dholland 9c53e91b7d Add some const. 2013-01-13 22:53:01 +00:00
dholland 06b26cd86b Use more markup, fix English usage. 2012-08-29 18:46:13 +00:00
joerg e16a720f89 Don't depend on HAVE_GCC being always defined. 2012-08-10 12:20:10 +00:00
christos 57ca898c48 remove ancient crap 2012-05-05 21:03:02 +00:00
christos ca11e1e667 factor out rawname() from dump, fsck, savecore. 2012-04-07 16:44:10 +00:00
christos 5727fadda2 use getfsspecname() 2012-04-07 04:52:20 +00:00
wiz ea95a8c187 Sort option descriptions a bit more. 2012-02-19 21:32:02 +00:00
christos fd6f00f4bf PR/45735: Bug Hunting: The dump(8) manpage, as well as the program's `usage'-line,
needs improvement
2012-02-19 19:49:20 +00:00
plunky 2b8aaed8cd NULL does not need a cast, here 2011-09-16 16:13:16 +00:00
joerg baa8e84b6f Use __dead 2011-08-29 14:34:58 +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
hannken 05e91bfee8 fss(4): Allow FSSIOCSET to set the initial flags. Add a new flag
"FSS_UNLINK_ON_CREATE" to unlink the backing store before
        the snapshot gets created.

With this change dump(8) no longer dumps the zero-sized, but named
snapshot it is working on.  Same applies to fsck_ffs(8).
2011-02-24 09:38:57 +00:00
hannken 08a60b309b File system snapshots are no longer experimental. 2010-11-05 10:02:53 +00:00
jruoho 04636eae18 Use a list for the list of bugs. 2010-05-14 05:04:58 +00:00
hannken 738a97ca87 Add -x option which allows to run `fsck_msdos -n' on a snapshot of
a live file system.

While here modify snap_open() to accept a character device as its
first arg and remove now unneeded get_snap_device().

Reviewed by: Manuel Bouyer <bouyer@netbsd.org>
2010-04-11 08:23:51 +00:00
christos 20ebd2a462 PR/42952: The Grey Wolf: Fix for "true incremental". Don't overload level
9, use a new level "i" which is logically 10.
2010-03-11 01:32:59 +00:00
wiz f704e3fc5c -i does not take an argument. Remove unnecessary Bk/Ek. New sentence, new line. 2010-02-26 07:01:17 +00:00
christos c40eb1e731 PR/42883: Greywolf: Add -i flag which brings "true incremental" capability. 2010-02-26 02:11:40 +00:00
spz 1cb24f3feb range-check what we assign to int cachebufs from calculations with
uint64_t usermem. This only becomes relevant if you have several TB of RAM.
Promoting cachebufs to uint64_t is not necessary as it gets limited to
(currently) 512 anyway.

fixes the last issue of PR: 19852
2010-01-27 12:20:25 +00:00
lukem ef685eeea9 Enable WARNS=4 by default except for:
dump  dump_lfs  fsck_ffs  fsck_lfs  fsdb  mount_smbfs
	newfs_ext2fs  newfs_lfs  resize_lfs  setkey
2009-04-11 07:58:11 +00:00
lukem 6f957c8d46 fix sign-compare issue 2009-04-11 07:55:35 +00:00
enami ca82f7eac5 Use indent-synopsis instead of iS register. The latter is a register
used in BSD derived .Nm implementation.
2009-01-30 11:55:04 +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
simonb 89943600ac We don't need to dump WAPBL log files - don't dump files with SF_LOG
flag set, and document this.
2008-08-12 13:28:35 +00:00
simonb cb6ddf15e6 Remove adding -g to CFLAGS and LDFLAGS. Ancient debug bogon? 2008-08-10 08:06:23 +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
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
matt 6a2c9c06cc Fix some inconsisent/conflicting definitions and missing parameters 2008-02-16 17:58:01 +00:00
christos 746c5b06eb Convert a couple of "(void)&" constructs to volatile.
Flag various unused parameters in restore and dump so that these will
compile with -Wextra.  (Note: restore uses some stuff from dump.)
2006-12-18 20:07:32 +00:00
hannken fcd5ec4841 When using a snapshot take the snapshot raw device on further open.
Fixes PR #34923  dump(8) only dumps a corefile with -X (snapshots)

Approved by: Manuel Bouyer <bouyer@netbsd.org>
2006-10-26 20:02:30 +00:00
perseant 1c57171fe3 Change LFCNWRAP{STOP,GO} to make them more suitable for snapshotting; in
particular, the caller can now choose whether to wait for the condition
to be met, and if the caller of LFCNWRAPSTOP dies or otherwise closes
the descriptor, the filesystem is started again.  Updated the ckckp
regression test to use the new semantics.

dump_lfs(8) now uses the fcntls to implement LFS-style snapshotting through
the -X flag, addressing PR#33457 albeit not using fss(4).  Fixed a couple
other problems with dump_lfs that manifested themselves during testing.
2006-06-24 05:28:54 +00:00
christos 326dc9f020 Coverity CID 3275: Plug memory leak. 2006-05-19 14:52:39 +00:00
mrg aadd7d4847 sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4. 2006-05-11 23:16:28 +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
hannken f4729837b8 Emit "a snapshot of" message for snap_internal case too. 2006-04-19 15:42:12 +00:00
christos 6edcc275a1 Coverity CID 2297: Fix memory leak. 2006-03-18 09:51:08 +00:00
perry 0f0296d88a Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 20:45:08 +00:00
wiz e35607e772 Argument is read-blocksize, not "read blocksize". From YOMURA Masanori in private mail. 2005-09-11 23:36:55 +00:00
christos c4ee9f6d2e 64 bit inode changes 2005-08-19 02:07:18 +00:00
christos 64747563b4 sprinkle const 2005-06-27 01:37:32 +00:00