1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-21 11:13:30 +00:00
freebsd/sbin
Kirk McKusick 772ad651bf Update the dump program to save extended attributes. Update
the restore program to restore all dumped extended attributes.

If the restore is running as root, it will always be able
to restore all extended attributes. If it is not running
as root, it makes a best effort to set them. Using the -v
command line flag or the `verbose' command in interactive
mode will display all the extended attributes being set on
files (and at the end on directories) that are being restored.
It will note any extended attributes that could not be set.

The extended attributes are placed on the dump image immediately
following each file's data. Older versions of restore can work
with the newer dump images. Old versions of restore will
correctly restore the file data and then (silently) skip
over the extended attribute data and proceed to the next file.

This resolves PR 93085 which will be closed once the code
has been MFC'ed.

Note that this code will not compile until these header
files have been updated: <protocols/dumprestore.h> and
<sys/extattr.h>.

PR:		bin/93085
Comments from:	Poul-Henning Kamp and Robert Watson
MFC after:	3 weeks
2007-02-26 08:15:56 +00:00
..
adjkerntz If not compiled for debugging, redirect standard input/output/error 2006-10-23 10:48:19 +00:00
atacontrol
atm fix typo: "adaptor" -> "adapter" 2007-01-02 21:00:45 +00:00
badsect
bsdlabel - Fix markup. 2006-12-29 16:28:38 +00:00
camcontrol typo: s/tranport layer/transport layer/ 2007-01-28 21:34:07 +00:00
ccdconfig
clri
comcontrol
conscontrol
devd Fix the description of "media-type". 2006-10-24 20:20:41 +00:00
devfs - I forgot to bump a date. 2006-11-05 20:12:32 +00:00
dhclient Implement RFC3442, the Classless Static Route option. 2007-02-09 17:50:26 +00:00
dmesg
dump Update the dump program to save extended attributes. Update 2007-02-26 08:15:56 +00:00
dumpfs Teach about new fields (cg_unrefs and fs_unrefs) and new FS_GJOURNAL flag. 2006-10-31 22:02:24 +00:00
dumpon Whitespace and style nits. 2006-10-31 22:36:49 +00:00
fdisk - Document -u, -i, and the difference between them better. 2006-12-12 15:26:25 +00:00
fdisk_pc98 Markup fixes. 2006-09-18 11:55:10 +00:00
ffsinfo Default output to stdout as the man page suggests. 2007-02-14 23:22:33 +00:00
fsck
fsck_ffs Fix -fstrict-aliasing warning. 2006-11-01 10:56:33 +00:00
fsck_msdosfs
fsdb Update after function renames. 2006-10-31 22:07:29 +00:00
fsirand
gbde Markup fixes. 2006-09-18 11:55:10 +00:00
geom Correct typo. 2007-02-22 19:25:37 +00:00
ggate For consistency use 'unsigned' instead of 'u_int'. 2006-12-18 11:12:00 +00:00
gpt Use strtoll(3) instead of strtol(3) for the starting block or 2006-10-04 18:20:25 +00:00
growfs Teach about new fields (cg_unrefs and fs_unrefs) and new FS_GJOURNAL flag. 2006-10-31 22:02:24 +00:00
gvinum Revise markup. 2006-09-30 11:02:17 +00:00
idmapd .PATH isn't necessary here. 2006-10-15 13:51:49 +00:00
ifconfig use getifaddrs from libc instead of private code 2007-02-24 23:55:46 +00:00
init Patches to allow one to allow one to specify a directory to chroot to. 2007-02-04 06:33:13 +00:00
ipf Fix the manual build. 2006-09-10 08:58:47 +00:00
ipfw Mention the nat command in the synopsis and in the action section. 2007-02-15 14:32:26 +00:00
kldconfig
kldload Mark up lkm with .Nm, since lkm is name of an api. 2007-02-13 17:06:15 +00:00
kldstat Mark up lkm with .Nm, since lkm is name of an api. 2007-02-13 17:06:15 +00:00
kldunload Mark up lkm with .Nm, since lkm is name of an api. 2007-02-13 17:06:15 +00:00
ldconfig Remove unused reference to objformat.h 2007-01-25 22:38:58 +00:00
mca Markup nit. 2006-09-30 11:12:36 +00:00
md5
mdconfig Kris suggested that swap is a better choice as a default than malloc. 2007-02-20 22:04:23 +00:00
mdmfs Grammar nits. 2007-02-15 21:49:32 +00:00
mknod
mksnap_ffs
mount Print warning that "-t msdos" is deprecated and being converted to 2007-02-06 05:57:40 +00:00
mount_autofs
mount_cd9660
mount_ext2fs Convert mount_ext2fs to a simple program which passes "-o option" to nmount(). 2007-01-28 00:51:01 +00:00
mount_hpfs
mount_msdosfs Pass "errmsg" to nmount(), so that if nmount() fails, we can get 2007-01-29 01:49:08 +00:00
mount_nfs Link mount_nfs -> mount_nfs4, and mount_nfs.8 -> mount_nfs4.8. 2007-01-23 09:14:33 +00:00
mount_ntfs
mount_nullfs
mount_reiserfs
mount_std Reduce the number of errors under WARNS=6 2006-09-13 04:50:44 +00:00
mount_udf
mount_umapfs
mount_unionfs Raise WARNS level to 6. 2007-02-13 05:39:38 +00:00
natd Summer of Code 2005: improve libalias - part 1 of 2 2006-09-26 23:26:53 +00:00
newfs Add -J flag to both newfs(8) and tunefs(8) which allows to enable gjournal 2006-10-31 21:52:28 +00:00
newfs_msdos
nfsiod
nos-tun
pfctl
pflogd
ping Remove alpha left-overs. 2006-08-22 08:03:01 +00:00
ping6
quotacheck If two files systems, /a and /b are marked as having quotas enabled 2007-02-04 06:33:15 +00:00
rcorder
reboot Cross-reference nextboot(8). 2006-11-22 13:12:34 +00:00
recoverdisk Revise markup. 2006-09-30 17:21:37 +00:00
restore Update the dump program to save extended attributes. Update 2007-02-26 08:15:56 +00:00
route
routed Sync up with rhyolite routed 2.31 which fixes the handling of varargs. 2006-11-05 14:49:47 +00:00
rtsol Add eye candy while I'm here: a blank line between 2006-07-27 18:28:14 +00:00
savecore
sconfig Add FBSDID, rename local variable time to not conflict with time() 2006-09-12 17:54:35 +00:00
setkey Markup fixes. 2006-09-18 11:55:10 +00:00
shutdown
slattach
spppcontrol
startslip
sunlabel
swapon
sysctl Style: Shorten a couple of lines with u_int and u_long. 2006-12-10 06:36:41 +00:00
tunefs Add -J flag to both newfs(8) and tunefs(8) which allows to enable gjournal 2006-10-31 21:52:28 +00:00
umount
Makefile Remove mount_nfs4 from SUBDIR list. The mount_nfs Makefile 2007-01-23 09:18:25 +00:00
Makefile.inc