History log of /src/sbin/dump/optr.c |
Revision | | Date | Author | Comments |
1.44 |
| 14-Mar-2022 |
mlelstv | Silently ignore fstab entries with NAME= entries that cannot be resolved. Fixes PR 56249.
|
1.43 |
| 01-Mar-2019 |
christos | branches: 1.43.2; Use getfsspecname() to fill the filesystem argument in dumpdates. While here, make sure that the error strings terminate with newline consistently, and add a function that adds the system error string.
|
1.42 |
| 08-Sep-2013 |
mlelstv | branches: 1.42.18; 1.42.26; Fix handling of NAME aliases in /etc/fstab.
|
1.41 |
| 15-Jun-2013 |
christos | handle new lfs split
|
1.40 |
| 13-Jan-2013 |
dholland | Use more static.
|
1.39 |
| 13-Jan-2013 |
dholland | Add some const.
|
1.38 |
| 07-Apr-2012 |
christos | branches: 1.38.2; factor out rawname() from dump, fsck, savecore.
|
1.37 |
| 07-Apr-2012 |
christos | use getfsspecname()
|
1.36 |
| 18-Dec-2006 |
christos | branches: 1.36.36; 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.)
|
1.35 |
| 24-Jun-2006 |
perseant | 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.
|
1.34 |
| 27-Jun-2005 |
christos | sprinkle const
|
1.33 |
| 21-Apr-2004 |
christos | Replace the statfs() family of system calls with statvfs(). Retain binary compatibility.
|
1.32 |
| 15-Mar-2004 |
lukem | Adjust tstart_volume (volume start time) by the time spent in query(), similar to the adjustment for tstart_writing made in optr.c rev 1.4. Should fix PR bin/19711 from matthew green.
|
1.31 |
| 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.30 |
| 02-Apr-2003 |
fvdl | 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.
|
1.29 |
| 27-Mar-2003 |
lukem | Use "wall -g operator" (instead of private code) to broadcast() messages to members of the operator group. Don't install "setgid tty", and remove now unnecessary gid/egid swapping. Remove utmp trawling code pulled in from usr.bin/who. The Code is now simpler, and more portable (without the utmp cruft) too.
This is derived from similar work in OpenBSD.
|
1.28 |
| 18-Aug-2002 |
yamt | save/restore errno in signal handlers.
|
1.27 |
| 16-Aug-2002 |
itojun | defend against malicious line in ut_line, which could cause unwanted writes to anything under /dev. revoke setuid/gid privs earlier. From: xs@kittenz.org
|
1.26 |
| 02-Aug-2002 |
christos | support utmpx
|
1.25 |
| 25-Dec-2001 |
lukem | Fixes from FreeBSD: - Fix error if first tape was write protected. Fix NetBSD PRs 4754 and 6098. - Make dump exit codes confirm to manual page. - Use \a instead of \7 to make noise. - Fix estimated number of tapes for huge dumps to cartridges. - Use <sys/queue.h> SLIST_* instead of home-rolled lists. - Do not exit if unable to read or create /etc/dumpdates. - Support output (tape) device returning ENOSPC for end-of-media on a write.
Fixes by me: - Remove unused ddates_in. - Don't dump core if SIGINFO is received before 1 second has elapsed. - Only process SIGINFO in current "active" child. - Don't dump core in -w if dumpdates wasn't readable and ddatev == NULL - Minor KNF; wrap some lines
|
1.24 |
| 24-Dec-2001 |
lukem | For dump_lfs(8), in getfstab(), only "lfs" (instead of "ufs" or "ffs"). Fix from Minoura Makoto in [bin/10525].
|
1.23 |
| 23-Dec-2001 |
lukem | nuke trailing whitespace
|
1.22 |
| 22-Dec-2001 |
lukem | - use correct type for minTime in findlru() (size_t instead of int) - clean up whitespace
|
1.21 |
| 01-Nov-2001 |
lukem | fix -Wshadow warnings
|
1.20 |
| 25-Oct-2001 |
lukem | in msg(), don't call va_list using functions twice in a row without calling va_start() in between; reorder code so that we call vsnprintf and then just fputs that buffer. crank the size of lastmsg whilst we're here problem noted by Hideo Saito in [bin/14348].
|
1.19 |
| 15-Oct-2001 |
blymn | Add the capability for dump to print timestamps on all informational messages.
|
1.18 |
| 08-Aug-2001 |
david | Patch to drop setgid tty privs until forking for operator notification
|
1.17 |
| 28-May-2001 |
lukem | * improve parsing of file-systems-to-dump when a path is given: - if it's a path to an unmounted file-system listed in /etc/fstab, use that instead of assuming the user wanted a subtree dump of the parent directory. this restores the behaviour of dump before the subtree dumping code went in. - if it's a path to a mounted file-system which is not in /etc/fstab, use the info from getmntinfo(3). previously, dump would choke. * implement error checked malloc(), calloc(), strdup(), and use appropriately (some of the calloc()s weren't being checked) * use 'file-system' instead of 'filesystem' in the man page
|
1.16 |
| 28-May-2001 |
lukem | unifdef !__STDC__ (missed in previous)
|
1.15 |
| 27-May-2001 |
lukem | knf to ansi
|
1.14 |
| 10-Oct-2000 |
is | Format string cleanups by Bill Sommerfeld.
|
1.13 |
| 01-Apr-1998 |
kleink | branches: 1.13.2; 1.13.10; Need <time.h> for time(), localtime() and ctime() prototypes.
|
1.12 |
| 15-Sep-1997 |
lukem | * cleanup for WARNS=1 * fix use of .Nm * comment out some unused(?) functions
|
1.11 |
| 27-May-1997 |
mrg | fix off by one bug.
|
1.10 |
| 21-Apr-1997 |
thorpej | Don't need to account for space for NUL, as it's included in the sizeof(_PATH_DEV), noted by Chris Demetriou <cgd@netbsd.org>
|
1.9 |
| 21-Apr-1997 |
thorpej | Add missing `-', noted by Erik Fair <fair@cesium.clock.org> on current-users.
|
1.8 |
| 21-Apr-1997 |
mrg | be safe with buffers.
|
1.7 |
| 15-Apr-1997 |
lukem | remove use of "register".
|
1.6 |
| 10-Apr-1997 |
lukem | Implement changes from [bin/1915] * 'w' and 'W' display the year * verbosity additions displaying total & per-volume transfer times and rates
|
1.5 |
| 16-Jan-1997 |
perry | fix pr 2977 -- only try to dump ufs/ffs partitions
|
1.4 |
| 18-May-1996 |
jtk | Adjust the base for time estimates to ignore time we spent waiting for operator input. enhancements from PR #900
|
1.3 |
| 18-Mar-1995 |
cgd | convert to new RCS Id conventions; reduce my headache
|
1.2 |
| 08-Jun-1994 |
mycroft | Update from 4.4-Lite, with local changes.
|
1.1 |
| 22-Dec-1993 |
cgd | branches: 1.1.1; new version from CSRG, via BSDI, with fixes
|
1.1.1.1 |
| 13-Jun-1994 |
mycroft | Import 4.4-Lite version.
|
1.13.10.4 |
| 28-Mar-2002 |
he | Pull up revision 1.17 (via patch, requested by bouyer): Improve behaviour when a path is given: 1) check if the path is an unmounted file system listed in fstab 2) check if it is a path to a mounted file system not listed in fstab Fixes PR#15790.
|
1.13.10.3 |
| 16-Jan-2002 |
he | Pull up revision 1.25 (via patch, requested by bouyer): Various fixes: o Fix error if first tape is write-protected; fixes PR#4754 and PR#6098 o Make error codes conform to manual page o Use \a to make noise o Fix estimated number of tapes for huge dumps to cartridges o Use <sys/queue.h> SLIST_* macros instead of homegrown variants o Do not exit if unable to read/create /etc/dumpdates o Support output (tape) device returning ENOSPC for end-of-media on write o Don't dump core if SIGINFO is received before 1 second has elapsed o Only process SIGINFO in currently active child o Ensure current (sub)block isn't past end of file system -- fixes "spins forever but does nothing" bug. o Some other minor fixes (types, whitespace, KNF, unifdef sunos, ...)
|
1.13.10.2 |
| 08-Aug-2001 |
jhawk | Pull up revision 1.18 via patch (requested by david): Temporarily drop setgid (for setgid tty) privileges, but restore them if we fork to perform an operator notification. Generalize pre-existing #ifdef RDUMP code.
|
1.13.10.1 |
| 18-Oct-2000 |
tv | Pullup sbin string format fixes [is]. See "cvs log" for explicit revision numbers per file, from sommerfeld.
|
1.13.2.1 |
| 10-Oct-2000 |
he | Pull up revision 1.14 (requested by is): Format string cleanup.
|
1.36.36.3 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.36.36.2 |
| 23-Jan-2013 |
yamt | sync with head
|
1.36.36.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.38.2.3 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.38.2.2 |
| 23-Jun-2013 |
tls | resync from head
|
1.38.2.1 |
| 25-Feb-2013 |
tls | resync with head
|
1.42.26.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.42.18.1 |
| 29-Mar-2019 |
martin | Pull up following revision(s) (requested by manu in ticket #1221):
sbin/dump/tape.c: revision 1.55 sbin/dump_lfs/dump_lfs.8: revision 1.18 sbin/dump/dump.h: revision 1.56 sbin/dump/dump.8: revision 1.69 sbin/dump/dump.h: revision 1.57 sbin/dump/ffs_inode.c: revision 1.23 sbin/dump/optr.c: revision 1.43 sbin/dump/itime.c: revision 1.21 sbin/dump/main.c: revision 1.74 sbin/dump/itime.c: revision 1.22 sbin/dump/main.c: revision 1.75 sbin/dump/dump.8: revision 1.70 sbin/dump/traverse.c: revision 1.52 sbin/dump/dump.8: revision 1.71
Document what rdump is (was once) for. PR 53442.
Use getfsspecname() to fill the filesystem argument in dumpdates. While here, make sure that the error strings terminate with newline consistently, and add a function that adds the system error string.
Add -U flag to dump(8) and dump_lfs(8) to specify dumpdates entry This address situations where dump(8) cannot figure out the device being dumped. It also allows tracking of subvolume dumps by using virtual device as dumpdates entry.
Bump date for previous.
|
1.43.2.1 |
| 21-Aug-2023 |
martin | Pull up following revision(s) (requested by manu in ticket #1717):
sbin/dump/optr.c: revision 1.44
Silently ignore fstab entries with NAME= entries that cannot be resolved.
Fixes PR 56249.
|