The NetBSD Project

CVS log for src/sbin/dump/main.c

[BACK] Up to [cvs.NetBSD.org] / src / sbin / dump

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.73.8.2 / (download) - annotate - [select for diffs], Mon Dec 7 19:35:50 2020 UTC (3 years, 4 months ago) by martin
Branch: netbsd-8
Changes since 1.73.8.1: +3 -3 lines
Diff to previous 1.73.8.1 (colored) to branchpoint 1.73 (colored) next main 1.74 (colored)

Pull up following revision(s) (requested by kre in ticket #1630):

	sbin/dump/dump.h: revision 1.59
	sbin/dump/main.c: revision 1.78

PR bin/55834

count blocks written in unsigned 64 bit counter
rather than signed int which overflows after 2^31-1
blocks (2TiB) after which neither the 5 minute
status updates or SIGINFO (^T) reports are issued
until the negative numbers increase past 0 and
wildly inaccurate reports would be written.

Revision 1.75.2.1 / (download) - annotate - [select for diffs], Sun Dec 6 10:31:02 2020 UTC (3 years, 4 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE
Changes since 1.75: +3 -3 lines
Diff to previous 1.75 (colored) next main 1.76 (colored)

Pull up following revision(s) (requested by kre in ticket #1139):

	sbin/dump/dump.h: revision 1.59
	sbin/dump/main.c: revision 1.78

PR bin/55834

count blocks written in unsigned 64 bit counter
rather than signed int which overflows after 2^31-1
blocks (2TiB) after which neither the 5 minute
status updates or SIGINFO (^T) reports are issued
until the negative numbers increase past 0 and
wildly inaccurate reports would be written.

Revision 1.78 / (download) - annotate - [select for diffs], Thu Dec 3 08:25:57 2020 UTC (3 years, 4 months ago) by kre
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, HEAD
Changes since 1.77: +3 -3 lines
Diff to previous 1.77 (colored)


PR bin/55834

count blocks written in unsigned 64 bit counter
rather than signed int which overflows after 2^31-1
blocks (2TiB) after which neither the 5 minute
status updates or SIGINFO (^T) reports are issued
until the negative numbers increase past 0 and
wildly inaccurate reports would be written.

Revision 1.73.16.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:03:19 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.73.16.2: +5 -1 lines
Diff to previous 1.73.16.2 (colored) to branchpoint 1.73 (colored) next main 1.74 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.73.16.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:18 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.73.16.1: +39 -2 lines
Diff to previous 1.73.16.1 (colored) to branchpoint 1.73 (colored)

Merge changes from current as of 20200406

Revision 1.77 / (download) - annotate - [select for diffs], Sun Apr 5 15:25:39 2020 UTC (4 years ago) by joerg
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406
Changes since 1.76: +39 -2 lines
Diff to previous 1.76 (colored)

Fix depenency on common symbols in sbin.

Revision 1.76 / (download) - annotate - [select for diffs], Mon Aug 19 18:12:50 2019 UTC (4 years, 7 months ago) by perseant
Branch: MAIN
CVS Tags: phil-wifi-20191119, is-mlppp-base, is-mlppp
Changes since 1.75: +7 -3 lines
Diff to previous 1.75 (colored)

Add -D flag to allow the user to specify an alternate dumpdates file.
Closes PR #54469.

Revision 1.73.16.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:05:32 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.73: +25 -20 lines
Diff to previous 1.73 (colored)

Sync with HEAD

Revision 1.73.8.1 / (download) - annotate - [select for diffs], Fri Mar 29 19:43:28 2019 UTC (5 years ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Changes since 1.73: +25 -20 lines
Diff to previous 1.73 (colored)

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.

Revision 1.75 / (download) - annotate - [select for diffs], Mon Mar 25 02:13:01 2019 UTC (5 years ago) by manu
Branch: MAIN
CVS Tags: phil-wifi-20190609, netbsd-9-base, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Branch point for: netbsd-9
Changes since 1.74: +8 -4 lines
Diff to previous 1.74 (colored)

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.

Revision 1.74 / (download) - annotate - [select for diffs], Fri Mar 1 16:42:11 2019 UTC (5 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.73: +19 -18 lines
Diff to previous 1.73 (colored)

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.

Revision 1.66.8.2 / (download) - annotate - [select for diffs], Tue Mar 8 10:05:43 2016 UTC (8 years, 1 month ago) by snj
Branch: netbsd-6
Changes since 1.66.8.1: +5 -5 lines
Diff to previous 1.66.8.1 (colored) to branchpoint 1.66 (colored) next main 1.67 (colored)

Pull up following revision(s) (requested by bouyer in ticket #1332):
	sbin/dump/main.c: revision 1.73
	sbin/dump/tape.c: revision 1.54
Consistently use iswap64() and 64bit intermediate variable, as well as
64bit formats for c_tapea. Fixes tape useage report for large filesystems.

Revision 1.66.8.1 / (download) - annotate - [select for diffs], Tue Mar 8 10:03:57 2016 UTC (8 years, 1 month ago) by snj
Branch: netbsd-6
Changes since 1.66: +4 -3 lines
Diff to previous 1.66 (colored)

Pull up following revision(s) (requested by bouyer in ticket #1331):
	sbin/dump/dump.8: revision 1.67 via patch
	sbin/dump/main.c: revision 1.72
	sbin/dump/rcache.c: revision 1.25
Default the read block size (-k default value) to kern.maxphys (usually
64k these days). This gives a noticable performance boost on large filesystems.

Revision 1.71.4.2 / (download) - annotate - [select for diffs], Fri Nov 6 20:27:55 2015 UTC (8 years, 5 months ago) by riz
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1
Changes since 1.71.4.1: +5 -5 lines
Diff to previous 1.71.4.1 (colored) to branchpoint 1.71 (colored) next main 1.72 (colored)

Pull up following revision(s) (requested by bouyer in ticket #991):
	sbin/dump/tape.c: revision 1.54
	sbin/dump/main.c: revision 1.73
Consistently use iswap64() and 64bit intermediate variable, as well as
64bit formats for c_tapea. Fixes tape useage report for large filesystems.

Revision 1.71.4.1 / (download) - annotate - [select for diffs], Fri Nov 6 20:26:43 2015 UTC (8 years, 5 months ago) by riz
Branch: netbsd-7
Changes since 1.71: +4 -3 lines
Diff to previous 1.71 (colored)

Pull up following revision(s) (requested by bouyer in ticket #990):
	sbin/dump/rcache.c: revision 1.25
	sbin/dump/dump.8: revision 1.67
	sbin/dump/main.c: revision 1.72
Default the read block size (-k default value) to kern.maxphys (usually
64k these days). This gives a noticable performance boost on large filesystems.

Revision 1.73 / (download) - annotate - [select for diffs], Mon Aug 24 17:37:10 2015 UTC (8 years, 7 months ago) by bouyer
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi, netbsd-8
Changes since 1.72: +5 -5 lines
Diff to previous 1.72 (colored)

Consistently use iswap64() and 64bit intermediate variable, as well as
64bit formats for c_tapea. Fixes tape useage report for large filesystems.

Revision 1.72 / (download) - annotate - [select for diffs], Mon Aug 24 17:34:03 2015 UTC (8 years, 7 months ago) by bouyer
Branch: MAIN
Changes since 1.71: +4 -3 lines
Diff to previous 1.71 (colored)

Default the read block size (-k default value) to kern.maxphys (usually
64k these days). This gives a noticable performance boost on large filesystems.

Revision 1.69.2.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:02:24 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.69.2.1: +8 -9 lines
Diff to previous 1.69.2.1 (colored) to branchpoint 1.69 (colored) next main 1.70 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.66.6.2 / (download) - annotate - [select for diffs], Thu May 22 11:37:27 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.66.6.1: +10 -14 lines
Diff to previous 1.66.6.1 (colored) to branchpoint 1.66 (colored) next main 1.67 (colored)

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")

Revision 1.71 / (download) - annotate - [select for diffs], Sun Sep 8 13:26:05 2013 UTC (10 years, 7 months ago) by mlelstv
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-base, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Branch point for: netbsd-7
Changes since 1.70: +10 -11 lines
Diff to previous 1.70 (colored)

Fix handling of NAME aliases in /etc/fstab.

Revision 1.69.2.1 / (download) - annotate - [select for diffs], Sun Jun 23 06:28:50 2013 UTC (10 years, 9 months ago) by tls
Branch: tls-maxphys
Changes since 1.69: +2 -5 lines
Diff to previous 1.69 (colored)

resync from head

Revision 1.70 / (download) - annotate - [select for diffs], Sat Jun 15 01:27:19 2013 UTC (10 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Changes since 1.69: +2 -5 lines
Diff to previous 1.69 (colored)

handle new lfs split

Revision 1.66.6.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:05:39 2012 UTC (12 years ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.66: +20 -22 lines
Diff to previous 1.66 (colored)

sync with head

Revision 1.69 / (download) - annotate - [select for diffs], Sat Apr 7 16:44:10 2012 UTC (12 years ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, agc-symver-base, agc-symver
Branch point for: tls-maxphys
Changes since 1.68: +11 -19 lines
Diff to previous 1.68 (colored)

factor out rawname() from dump, fsck, savecore.

Revision 1.68 / (download) - annotate - [select for diffs], Sat Apr 7 04:52:20 2012 UTC (12 years ago) by christos
Branch: MAIN
Changes since 1.67: +11 -5 lines
Diff to previous 1.67 (colored)

use getfsspecname()

Revision 1.67 / (download) - annotate - [select for diffs], Sun Feb 19 19:49:20 2012 UTC (12 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.66: +4 -4 lines
Diff to previous 1.66 (colored)

PR/45735: Bug Hunting: The dump(8) manpage, as well as the program's `usage'-line,
needs improvement

Revision 1.66 / (download) - annotate - [select for diffs], Thu Mar 11 01:32:59 2010 UTC (14 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, netbsd-6
Changes since 1.65: +6 -5 lines
Diff to previous 1.65 (colored)

PR/42952: The Grey Wolf: Fix for "true incremental". Don't overload level
9, use a new level "i" which is logically 10.

Revision 1.65 / (download) - annotate - [select for diffs], Fri Feb 26 02:11:40 2010 UTC (14 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.64: +8 -3 lines
Diff to previous 1.64 (colored)

PR/42883: Greywolf: Add -i flag which brings "true incremental" capability.

Revision 1.63.18.1 / (download) - annotate - [select for diffs], Sun Sep 28 11:17:11 2008 UTC (15 years, 6 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.63: +4 -4 lines
Diff to previous 1.63 (colored) next main 1.64 (colored)

Sync with HEAD.

Revision 1.63.22.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:28:22 2008 UTC (15 years, 7 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.63: +4 -4 lines
Diff to previous 1.63 (colored) next main 1.64 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.64 / (download) - annotate - [select for diffs], Sun Jul 20 01:20:22 2008 UTC (15 years, 8 months ago) by lukem
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, matt-premerge-20091211, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Changes since 1.63: +4 -4 lines
Diff to previous 1.63 (colored)

Remove the \n and tabs from the __COPYRIGHT() strings.
(Tweak some to use a consistent format.)

Revision 1.57.2.2.2.1 / (download) - annotate - [select for diffs], Sat Nov 11 21:31:47 2006 UTC (17 years, 5 months ago) by bouyer
Branch: netbsd-3-1
CVS Tags: netbsd-3-1-1-RELEASE
Changes since 1.57.2.2: +6 -3 lines
Diff to previous 1.57.2.2 (colored) next main 1.57.2.3 (colored)

Pull up following revision(s) (requested by hannken in ticket #1573):
	sbin/dump/snapshot.h: revision 1.3 via patch
	sbin/dump/snapshot.c: revision 1.3 via patch
	sbin/dump/main.c: revision 1.63 via patch
	sbin/dump/tape.c: revision 1.47 via patch
	sbin/dump/dump.h: revision 1.44 via patch
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>

Revision 1.57.2.1.2.1 / (download) - annotate - [select for diffs], Sat Nov 11 21:31:10 2006 UTC (17 years, 5 months ago) by bouyer
Branch: netbsd-3-0
CVS Tags: netbsd-3-0-3-RELEASE
Changes since 1.57.2.1: +6 -3 lines
Diff to previous 1.57.2.1 (colored) next main 1.57.2.2 (colored)

Pull up following revision(s) (requested by hannken in ticket #1573):
	sbin/dump/snapshot.h: revision 1.3 via patch
	sbin/dump/snapshot.c: revision 1.3 via patch
	sbin/dump/main.c: revision 1.63 via patch
	sbin/dump/tape.c: revision 1.47 via patch
	sbin/dump/dump.h: revision 1.44 via patch
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>

Revision 1.57.2.3 / (download) - annotate - [select for diffs], Sat Nov 11 21:30:27 2006 UTC (17 years, 5 months ago) by bouyer
Branch: netbsd-3
Changes since 1.57.2.2: +6 -3 lines
Diff to previous 1.57.2.2 (colored) to branchpoint 1.57 (colored) next main 1.58 (colored)

Pull up following revision(s) (requested by hannken in ticket #1573):
	sbin/dump/snapshot.h: revision 1.3 via patch
	sbin/dump/snapshot.c: revision 1.3 via patch
	sbin/dump/main.c: revision 1.63 via patch
	sbin/dump/tape.c: revision 1.47 via patch
	sbin/dump/dump.h: revision 1.44 via patch
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>

Revision 1.63 / (download) - annotate - [select for diffs], Thu Oct 26 20:02:30 2006 UTC (17 years, 5 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, mjf-devfs-base, mjf-devfs, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: wrstuden-revivesa, mjf-devfs2
Changes since 1.62: +7 -3 lines
Diff to previous 1.62 (colored)

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>

Revision 1.62 / (download) - annotate - [select for diffs], Sat Jun 24 05:28:54 2006 UTC (17 years, 9 months ago) by perseant
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.61: +20 -2 lines
Diff to previous 1.61 (colored)

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.

Revision 1.57.2.2 / (download) - annotate - [select for diffs], Fri Apr 21 12:19:07 2006 UTC (17 years, 11 months ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1
Branch point for: netbsd-3-1
Changes since 1.57.2.1: +1 -1 lines
Diff to previous 1.57.2.1 (colored) to branchpoint 1.57 (colored)

Pull up following revision(s) (requested by hannken in ticket #1283):
	sbin/dump/main.c: revision 1.61
Emit "a snapshot of" message for snap_internal case too.

Revision 1.61 / (download) - annotate - [select for diffs], Wed Apr 19 15:42:12 2006 UTC (18 years ago) by hannken
Branch: MAIN
Changes since 1.60: +3 -3 lines
Diff to previous 1.60 (colored)

Emit "a snapshot of" message for snap_internal case too.

Revision 1.60 / (download) - annotate - [select for diffs], Sat Mar 18 09:51:08 2006 UTC (18 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.59: +4 -3 lines
Diff to previous 1.59 (colored)

Coverity CID 2297: Fix memory leak.

Revision 1.59 / (download) - annotate - [select for diffs], Mon Jun 27 01:37:32 2005 UTC (18 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.58: +10 -9 lines
Diff to previous 1.58 (colored)

sprinkle const

Revision 1.57.2.1 / (download) - annotate - [select for diffs], Thu Apr 21 19:04:34 2005 UTC (18 years, 11 months ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE
Branch point for: netbsd-3-0
Changes since 1.57: +40 -9 lines
Diff to previous 1.57 (colored)

Pull up revision 1.58 (requested by hannken in ticket #184):
Snapshot support for dump(8):
- New option `-x backup' takes the dump from a snapshot backed up by `backup'.
  The snapshot will be deleted on exit.
- New option `-X' as a synonym for `-x mountpoint' where `mountpoint' is the
  file system to be dumped.
Reviewed and Approved by: Manuel Bouyer <bouyer@netbsd.org>

Revision 1.58 / (download) - annotate - [select for diffs], Tue Apr 19 07:26:38 2005 UTC (19 years ago) by hannken
Branch: MAIN
Changes since 1.57: +40 -9 lines
Diff to previous 1.57 (colored)

Snapshot support for dump(8):

- New option `-x backup' takes the dump from a snapshot backed up by `backup'.
  The snapshot will be deleted on exit.

- New option `-X' as a synonym for `-x mountpoint' where `mountpoint' is the
  file system to be dumped.

Reviewed and Approved by: Manuel Bouyer <bouyer@netbsd.org>

Revision 1.57 / (download) - annotate - [select for diffs], Wed Apr 21 01:05:32 2004 UTC (19 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-3-base
Branch point for: netbsd-3
Changes since 1.56: +5 -5 lines
Diff to previous 1.56 (colored)

Replace the statfs() family of system calls with statvfs().
Retain binary compatibility.

Revision 1.56 / (download) - annotate - [select for diffs], Thu Aug 7 10:04:14 2003 UTC (20 years, 8 months ago) by agc
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.55: +3 -7 lines
Diff to previous 1.55 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22308, verified by myself.

Revision 1.55 / (download) - annotate - [select for diffs], Wed Apr 2 10:39:24 2003 UTC (21 years ago) by fvdl
Branch: MAIN
Changes since 1.54: +11 -8 lines
Diff to previous 1.54 (colored)

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.

Revision 1.54 / (download) - annotate - [select for diffs], Thu Mar 27 13:56:46 2003 UTC (21 years ago) by lukem
Branch: MAIN
Changes since 1.53: +2 -9 lines
Diff to previous 1.53 (colored)

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.

Revision 1.53 / (download) - annotate - [select for diffs], Sun Nov 17 04:49:18 2002 UTC (21 years, 5 months ago) by itojun
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.52: +5 -4 lines
Diff to previous 1.52 (colored)

should be safer to cast to u_long than to cast down to int

Revision 1.52 / (download) - annotate - [select for diffs], Sun Nov 17 04:44:42 2002 UTC (21 years, 5 months ago) by tsutsui
Branch: MAIN
Changes since 1.51: +3 -3 lines
Diff to previous 1.51 (colored)

Add a cast to sizeof in printf() arg since _BSD_SIZE_T is unsigned long
on some ports.

Revision 1.51 / (download) - annotate - [select for diffs], Sat Nov 16 14:15:35 2002 UTC (21 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.50: +15 -14 lines
Diff to previous 1.50 (colored)

use strlcpy.  use sizeof() instead of xxLEN to avoid de-synchronization

Revision 1.25.6.8 / (download) - annotate - [select for diffs], Thu Mar 28 22:40:03 2002 UTC (22 years ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003
Changes since 1.25.6.7: +62 -47 lines
Diff to previous 1.25.6.7 (colored) to branchpoint 1.25 (colored) next main 1.26 (colored)

Pull up revisions 1.33-1.34 (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.

Revision 1.25.6.7 / (download) - annotate - [select for diffs], Wed Jan 16 10:01:37 2002 UTC (22 years, 3 months ago) by he
Branch: netbsd-1-5
Changes since 1.25.6.6: +10 -7 lines
Diff to previous 1.25.6.6 (colored) to branchpoint 1.25 (colored)

Pull up revision 1.49 (via patch, requested by bouyer):
  Add an ``-a'' option to ``auto-size'' the tape, rather than
  relying upon other options to define the tape size.

Revision 1.25.6.6 / (download) - annotate - [select for diffs], Wed Jan 16 09:56:50 2002 UTC (22 years, 3 months ago) by he
Branch: netbsd-1-5
Changes since 1.25.6.5: +20 -25 lines
Diff to previous 1.25.6.5 (colored) to branchpoint 1.25 (colored)

Pull up revisions 1.46-1.48 (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, ...)

Revision 1.25.6.5 / (download) - annotate - [select for diffs], Wed Jan 16 09:41:39 2002 UTC (22 years, 3 months ago) by he
Branch: netbsd-1-5
Changes since 1.25.6.4: +9 -4 lines
Diff to previous 1.25.6.4 (colored) to branchpoint 1.25 (colored)

Pull up revisions 1.41,1.50 (via patch, requested by bouyer):
  Implement ``-l <timeout>'' option for use with e.g. autochangers.

Revision 1.50 / (download) - annotate - [select for diffs], Mon Jan 7 17:34:09 2002 UTC (22 years, 3 months ago) by bouyer
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Changes since 1.49: +6 -6 lines
Diff to previous 1.49 (colored)

For -l: specify the timeout on the command line (in seconds) instead of
hardwiring it to 2s, as suggested on tech-userlevel.

Revision 1.49 / (download) - annotate - [select for diffs], Sun Dec 30 04:03:17 2001 UTC (22 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.48: +15 -10 lines
Diff to previous 1.48 (colored)

Add -a to "auto-size" the tape, rather than relying upon other options
to define the tape size.  Requires the tape driver to either return ENOSPC
at end of media, or 0 when a write is attempted (such as the "early warning"
support in st(4) enabled with "mt eew 1").   From FreeBSD.

Revision 1.48 / (download) - annotate - [select for diffs], Tue Dec 25 12:06:26 2001 UTC (22 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.47: +18 -17 lines
Diff to previous 1.47 (colored)

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

Revision 1.47 / (download) - annotate - [select for diffs], Sun Dec 23 14:42:22 2001 UTC (22 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.46: +4 -3 lines
Diff to previous 1.46 (colored)

clean up from time_t -> int32_t change in dumprestore.h

Revision 1.46 / (download) - annotate - [select for diffs], Sun Dec 23 12:54:54 2001 UTC (22 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.45: +2 -9 lines
Diff to previous 1.45 (colored)

unifdef sunos

Revision 1.45 / (download) - annotate - [select for diffs], Sun Dec 23 12:29:56 2001 UTC (22 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.44: +9 -9 lines
Diff to previous 1.44 (colored)

nuke trailing whitespace

Revision 1.44 / (download) - annotate - [select for diffs], Sat Dec 22 08:05:24 2001 UTC (22 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.43: +6 -6 lines
Diff to previous 1.43 (colored)

- use correct type for minTime in findlru()  (size_t instead of int)
- clean up whitespace

Revision 1.43 / (download) - annotate - [select for diffs], Thu Dec 20 20:20:38 2001 UTC (22 years, 3 months ago) by soren
Branch: MAIN
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (colored)

Another little mistake, spotted by wiz.

Revision 1.42 / (download) - annotate - [select for diffs], Thu Dec 20 20:10:36 2001 UTC (22 years, 3 months ago) by soren
Branch: MAIN
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored)

Sync getopt() / man page with actual getopt options.

Revision 1.41 / (download) - annotate - [select for diffs], Fri Dec 14 14:43:33 2001 UTC (22 years, 4 months ago) by bouyer
Branch: MAIN
Changes since 1.40: +9 -4 lines
Diff to previous 1.40 (colored)

Add a -l (autoload) flag. For multivolume dumps, this makes dump eject the
tape when a volume is full, and try to reopen the tape drive for 2 mn.
To be used with tape changers which load the next tape when the current one is
ejected.
While I'm there fix eject handling for remote tape.

Revision 1.40 / (download) - annotate - [select for diffs], Fri Nov 16 04:41:23 2001 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.39: +2 -4 lines
Diff to previous 1.39 (colored)

relax the restriction on -F that the file system image argument must be a
regular file

Revision 1.39 / (download) - annotate - [select for diffs], Mon Oct 15 13:25:34 2001 UTC (22 years, 6 months ago) by blymn
Branch: MAIN
Changes since 1.38: +19 -7 lines
Diff to previous 1.38 (colored)

Add the capability for dump to print timestamps on all informational
messages.

Revision 1.38 / (download) - annotate - [select for diffs], Tue Aug 14 06:51:37 2001 UTC (22 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.37: +19 -10 lines
Diff to previous 1.37 (colored)

- implement -F, which indicates that files-to-dump is a regular file
  containing a file system image (instead of being a single file as
  part of a subtree dump)
- use "file system" instead of "filesystem" or "file-system"

Revision 1.25.6.4 / (download) - annotate - [select for diffs], Wed Aug 8 18:13:22 2001 UTC (22 years, 8 months ago) by jhawk
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH002
Changes since 1.25.6.3: +7 -2 lines
Diff to previous 1.25.6.3 (colored) to branchpoint 1.25 (colored)

Pull up revision 1.37 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.

Revision 1.37 / (download) - annotate - [select for diffs], Wed Aug 8 16:49:54 2001 UTC (22 years, 8 months ago) by david
Branch: MAIN
Changes since 1.36: +7 -22 lines
Diff to previous 1.36 (colored)

Patch to drop setgid tty privs until forking for operator notification

Revision 1.36 / (download) - annotate - [select for diffs], Tue Jul 17 10:56:53 2001 UTC (22 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.35: +22 -2 lines
Diff to previous 1.35 (colored)

reset uid & gid around calling rmthost().

Revision 1.35 / (download) - annotate - [select for diffs], Mon Jul 16 13:30:13 2001 UTC (22 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (colored)

display what signal, not "unknown"

Revision 1.34 / (download) - annotate - [select for diffs], Sun Jun 3 09:51:10 2001 UTC (22 years, 10 months ago) by hannken
Branch: MAIN
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored)

Assign a saved copy of dt->fs_file to mountpoint. dt->fs_file will be freed
otherwise resulting in a wrong spcl.c_filesys .

Revision 1.33 / (download) - annotate - [select for diffs], Mon May 28 01:09:55 2001 UTC (22 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.32: +100 -59 lines
Diff to previous 1.32 (colored)

* 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

Revision 1.32 / (download) - annotate - [select for diffs], Sun May 27 15:07:34 2001 UTC (22 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.31: +7 -12 lines
Diff to previous 1.31 (colored)

more KNF

Revision 1.31 / (download) - annotate - [select for diffs], Sun May 27 14:17:56 2001 UTC (22 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.30: +8 -10 lines
Diff to previous 1.30 (colored)

knf to ansi

Revision 1.25.6.3 / (download) - annotate - [select for diffs], Tue May 15 21:55:58 2001 UTC (22 years, 11 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH001
Changes since 1.25.6.2: +3 -3 lines
Diff to previous 1.25.6.2 (colored) to branchpoint 1.25 (colored)

Pull up revision 1.29 (requested by tron):
  Fix bug in new ``e'' option: only eject tape if it is full, not
  if the dump was finished.

Revision 1.30 / (download) - annotate - [select for diffs], Sat May 12 10:26:22 2001 UTC (22 years, 11 months ago) by tron
Branch: MAIN
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

Add "e" option to usage message. Problem pointed out by Takahiro Kambe
in private e-mail.

Revision 1.29 / (download) - annotate - [select for diffs], Sat May 12 08:03:01 2001 UTC (22 years, 11 months ago) by tron
Branch: MAIN
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored)

Fix bug in new "e" option: only eject tape if it is full, not if the dump
was finished.

Revision 1.25.6.2 / (download) - annotate - [select for diffs], Wed May 9 19:16:19 2001 UTC (22 years, 11 months ago) by he
Branch: netbsd-1-5
Changes since 1.25.6.1: +7 -3 lines
Diff to previous 1.25.6.1 (colored) to branchpoint 1.25 (colored)

Pull up revision 1.28 (requested by tron):
  Add a new option ``e'' to dump which directs it to eject tapes
  automatically if a tape change is required.

Revision 1.28 / (download) - annotate - [select for diffs], Mon May 7 21:17:48 2001 UTC (22 years, 11 months ago) by tron
Branch: MAIN
Changes since 1.27: +7 -3 lines
Diff to previous 1.27 (colored)

Add a new option "e" to "dump" which allows to eject tapes automatically
if a tape change is required.

Revision 1.27 / (download) - annotate - [select for diffs], Wed Dec 13 22:45:12 2000 UTC (23 years, 4 months ago) by scw
Branch: MAIN
Changes since 1.26: +9 -9 lines
Diff to previous 1.26 (colored)

Global variables don't need to be initialised to zero.

Revision 1.25.6.1 / (download) - annotate - [select for diffs], Wed Oct 18 00:39:43 2000 UTC (23 years, 6 months ago) by tv
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA
Changes since 1.25: +6 -6 lines
Diff to previous 1.25 (colored)

Pullup sbin string format fixes [is].
See "cvs log" for explicit revision numbers per file, from sommerfeld.

Revision 1.22.2.1 / (download) - annotate - [select for diffs], Wed Oct 11 18:39:04 2000 UTC (23 years, 6 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003
Changes since 1.22: +6 -6 lines
Diff to previous 1.22 (colored) next main 1.23 (colored)

Pull up revision 1.26 (requested by he):
  Format string cleanup.

Revision 1.26 / (download) - annotate - [select for diffs], Wed Oct 11 04:57:42 2000 UTC (23 years, 6 months ago) by briggs
Branch: MAIN
Changes since 1.25: +6 -6 lines
Diff to previous 1.25 (colored)

Fix format warnings

Revision 1.22.4.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:30:22 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.22: +7 -32 lines
Diff to previous 1.22 (colored) next main 1.23 (colored)

Pull up to last week's -current.

Revision 1.25 / (download) - annotate - [select for diffs], Fri Oct 1 04:35:23 1999 UTC (24 years, 6 months ago) by perseant
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, netbsd-1-5-base, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl, comdex-fall-1999-base, comdex-fall-1999
Branch point for: netbsd-1-5
Changes since 1.24: +7 -32 lines
Diff to previous 1.24 (colored)

Working version of aborted dump{,_lfs} join.

Revision 1.24 / (download) - annotate - [select for diffs], Thu Sep 30 20:39:58 1999 UTC (24 years, 6 months ago) by perseant
Branch: MAIN
Changes since 1.23: +30 -6 lines
Diff to previous 1.23 (colored)

Back out changes made on the 29th, not at all the changes I intended to commit.
(I don't know how I did it though ... I'll figure it out tonight.)
I'll reapply this, in a working form, this evening.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Sep 29 04:57:49 1999 UTC (24 years, 6 months ago) by perseant
Branch: MAIN
Changes since 1.22: +8 -32 lines
Diff to previous 1.22 (colored)

Adapt dump(8) to use filestore-independent (but still ufs-specific)
replacements for NINDIR, fsbtodb, etc.  Create dump_lfs by adding a few
LFS-filestore-specific routines.  As described in PR#8317.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Mar 23 14:22:59 1999 UTC (25 years ago) by bouyer
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Branch point for: wrstuden-devbsize, netbsd-1-4
Changes since 1.21: +19 -6 lines
Diff to previous 1.21 (colored)

Implement a read cache, as announced on tech-userlevel. Default is 32k
read buffer size, 512 buffer or 15% of the user memory. Can be changed
with the -k and -s options.

Revision 1.21 / (download) - annotate - [select for diffs], Sun Jan 3 02:17:46 1999 UTC (25 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.20: +39 -7 lines
Diff to previous 1.20 (colored)

add support for '-L label', which file(1) and restore(1) can extract from the
header. mostly based on [bin/6715] from Brian Grayson <bgrayson@ece.utexas.edu>

old filesystems don't have fs_qbmask and fs_qfmask set in the superblock;
fudge them as per code in /sys/ufs/ffs/ffs_vfsops.c::ffs_oldfscompat().
bug and suggested fix from Robert Elz <kre@munnari.OZ.AU> in [bin/6610]
    XXX: there may be other variables required as well...

Revision 1.20 / (download) - annotate - [select for diffs], Tue Aug 25 19:18:14 1998 UTC (25 years, 7 months ago) by ross
Branch: MAIN
Changes since 1.19: +4 -3 lines
Diff to previous 1.19 (colored)

from Erik Bertelsen <erik@mediator.uni-c.dk>
 { put } { in } { lots } { of } { these } { to } { shut } { up } { egcs }

Revision 1.19 / (download) - annotate - [select for diffs], Mon Jul 6 06:50:02 1998 UTC (25 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.18: +3 -2 lines
Diff to previous 1.18 (colored)

- use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames

Revision 1.18 / (download) - annotate - [select for diffs], Wed Mar 18 16:54:56 1998 UTC (26 years, 1 month ago) by bouyer
Branch: MAIN
Changes since 1.17: +35 -23 lines
Diff to previous 1.17 (colored)

Add support for non-native byte order FFS. The dump is in filesystem byte
order, restore already knows how to byteswap dumps.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Sep 18 03:03:56 1997 UTC (26 years, 7 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3
Changes since 1.16: +30 -17 lines
Diff to previous 1.16 (colored)

Various changes from Brian Grayson <bgrayson@ece.utexas.edu> in [bin/4103]
* exit after providing an estimate if -S was given. the PR used -e,
  but checking around indicated prior art in Solaris usin -S.
* remove superfluous 'DUMP:' prefix in two messages
* initialise blocksperfile explicitly (not necessary, but everything
  else in that section gets initialised, so be consistant :)
* display the ``pretty'' name of the dumped directory, so the user
  knows if it's a subset or not

Revision 1.16 / (download) - annotate - [select for diffs], Tue Sep 16 06:41:21 1997 UTC (26 years, 7 months ago) by lukem
Branch: MAIN
Changes since 1.15: +4 -4 lines
Diff to previous 1.15 (colored)

resolve conflicts from lite-2 import

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Tue Sep 16 02:25:30 1997 UTC (26 years, 7 months ago) by lukem
Branch: CSRG
CVS Tags: lite-2
Changes since 1.1.1.1: +139 -113 lines
Diff to previous 1.1.1.1 (colored)

imported from lite-2

Revision 1.15 / (download) - annotate - [select for diffs], Mon Sep 15 07:58:05 1997 UTC (26 years, 7 months ago) by lukem
Branch: MAIN
Changes since 1.14: +7 -5 lines
Diff to previous 1.14 (colored)

* cleanup for WARNS=1
* fix use of .Nm
* comment out some unused(?) functions

Revision 1.14 / (download) - annotate - [select for diffs], Thu Jun 5 11:13:24 1997 UTC (26 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.13: +82 -16 lines
Diff to previous 1.13 (colored)

* Add the ability to dump specific files & directories of a single
  filesystem. This uses fts(3) to access the directory structure (and
  not the raw device), so the standard access permissions are adhered
  to (unlike dumping an entire filesystem, which just requires read
  access to the raw disk device).
* Support SIGINFO status reporting.
* Remove now unused variables that previously stored the (e)uid.
* Be more informative in a couple of error messages.

Revision 1.13 / (download) - annotate - [select for diffs], Tue May 27 08:35:28 1997 UTC (26 years, 10 months ago) by mrg
Branch: MAIN
Changes since 1.12: +2 -9 lines
Diff to previous 1.12 (colored)

enable rcmd().  garbage collect.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Apr 21 11:31:16 1997 UTC (27 years ago) by mrg
Branch: MAIN
Changes since 1.11: +5 -7 lines
Diff to previous 1.11 (colored)

be safe with buffers.

Revision 1.11 / (download) - annotate - [select for diffs], Tue Apr 15 01:09:51 1997 UTC (27 years ago) by lukem
Branch: MAIN
Changes since 1.10: +8 -8 lines
Diff to previous 1.10 (colored)

remove use of "register".

Revision 1.10 / (download) - annotate - [select for diffs], Thu Apr 10 05:36:24 1997 UTC (27 years ago) by lukem
Branch: MAIN
Changes since 1.9: +13 -4 lines
Diff to previous 1.9 (colored)

Implement changes from [bin/1915]
* 'w' and 'W' display the year
* verbosity additions displaying total & per-volume transfer times and rates

Revision 1.9 / (download) - annotate - [select for diffs], Thu Feb 27 06:17:23 1997 UTC (27 years, 1 month ago) by mikel
Branch: MAIN
Changes since 1.8: +3 -2 lines
Diff to previous 1.8 (colored)

set bflag so that 'dump bd M N' works properly.  fix from Juergen
  Hannken-Illjes in PR bin/3254.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Mar 15 22:39:32 1996 UTC (28 years, 1 month ago) by scottr
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Changes since 1.7: +9 -3 lines
Diff to previous 1.7 (colored)

Be more paranoid with our effective uid.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Feb 5 23:59:40 1996 UTC (28 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.6: +4 -3 lines
Diff to previous 1.6 (colored)

support $TAPE.  update manual to reflect reality (#1937).

Revision 1.6 / (download) - annotate - [select for diffs], Sat Mar 18 14:55:02 1995 UTC (29 years, 1 month ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.5: +7 -2 lines
Diff to previous 1.5 (colored)

convert to new RCS Id conventions; reduce my headache

Revision 1.5 / (download) - annotate - [select for diffs], Mon Feb 20 22:36:01 1995 UTC (29 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.4: +135 -109 lines
Diff to previous 1.4 (colored)

Use getopt(3), with obsolete() from restore(8) for backward compatibility.

Revision 1.4 / (download) - annotate - [select for diffs], Fri Sep 23 14:27:04 1994 UTC (29 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored)

Eliminate uses of some obsolete functions.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Mon Jun 13 22:41:49 1994 UTC (29 years, 10 months ago) by mycroft
Branch: CSRG
CVS Tags: lite-1
Changes since 1.1: +186 -173 lines
Diff to previous 1.1 (colored)

Import 4.4-Lite version.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jun 8 18:57:36 1994 UTC (29 years, 10 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.2: +183 -173 lines
Diff to previous 1.2 (colored)

Update from 4.4-Lite, with local changes.

Revision 1.2 / (download) - annotate - [select for diffs], Mon Mar 28 01:50:05 1994 UTC (30 years ago) by cgd
Branch: MAIN
Changes since 1.1: +5 -1 lines
Diff to previous 1.1 (colored)

don't segv if called with no options!

Revision 1.1 / (download) - annotate - [select for diffs], Wed Dec 22 10:24:47 1993 UTC (30 years, 4 months ago) by cgd
Branch: MAIN

new version from CSRG, via BSDI, with fixes

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>