Up to [Development] / xfs-cmds / xfsdump / restore
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.47 / (download) - annotate - [select for diffs], Thu Feb 1 19:13:53 2007 UTC (10 years, 8 months ago) by wkendall
Branch: MAIN
CVS Tags: HEAD
Changes since 1.46: +15 -5
lines
Diff to previous 1.46 (colored)
Log a message for each quota file restored, not just the first one.
Revision 1.46 / (download) - annotate - [select for diffs], Thu Feb 1 19:02:45 2007 UTC (10 years, 8 months ago) by wkendall
Branch: MAIN
Changes since 1.45: +16 -16
lines
Diff to previous 1.45 (colored)
xfsdump uses the optopt variable from getopt incorrectly. It assumes that the value is set to the current option being processed, when in fact it is only set when getopt encounters an unknown option. Thanks to Kouta Ooizumi.
Revision 1.45 / (download) - annotate - [select for diffs], Wed May 24 06:08:55 2006 UTC (11 years, 4 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.44: +1 -1
lines
Diff to previous 1.44 (colored)
Update xfsdump build to use xfs.h instead of libxfs.h, fixing a recent namespace collision on list symbols. Merge of master-melb:xfs-cmds:26007a by kenmcd.
Revision 1.44 / (download) - annotate - [select for diffs], Thu May 4 17:38:07 2006 UTC (11 years, 5 months ago) by wkendall
Branch: MAIN
Changes since 1.43: +41 -76
lines
Diff to previous 1.43 (colored)
Change xfsrestore to use the DMF NOMIGR (no-migrate) attribute when restoring DMF files. This will prevent DMF from touching the file while it is being restored, and will also prevent DMF from viewing the file as invalid which could cause false errors to be reported by DMF during a restore. These changes are being placed in the hsmapi.c file to isolate the DMF-specific code from the rest of xfsdump.
Revision 1.43 / (download) - annotate - [select for diffs], Mon May 1 14:51:59 2006 UTC (11 years, 5 months ago) by wkendall
Branch: MAIN
Changes since 1.42: +334 -362
lines
Diff to previous 1.42 (colored)
Another approach to restoring the immutable flag at the correct time. Also addresses some inefficiencies in restoring metadata on files dumped in multiple extent groups and files with extended attributes. Add logic to determine when an xfsrestore stream has started a new file. Break up the restore_reg() routine into a pre-metadata restore routine (restore_reg), a data restore routine (restore_extent_group), and a post-metadata restore routine (restore_complete_reg). Previously all of restore_reg() was being executed for every extent group of a file, resulting in extra system call overhead from metadata being applied multiple times. It also caused attributes such as the immutable flag to be restored too early. Clean up the extended attribute restore code a bit. No longer requires a call to tree_cb_links, which can be somewhat expensive for filesystems with millions of inodes.
Revision 1.42 / (download) - annotate - [select for diffs], Tue Feb 7 16:00:26 2006 UTC (11 years, 8 months ago) by wkendall
Branch: MAIN
Changes since 1.41: +208 -132
lines
Diff to previous 1.41 (colored)
Merge in some changes from the IRIX tree. A few minor bug fixes, but mainly whitespace changes and code reorganization to line up with IRIX.
Revision 1.41 / (download) - annotate - [select for diffs], Tue Jan 31 15:47:31 2006 UTC (11 years, 8 months ago) by wkendall
Branch: MAIN
Changes since 1.40: +17 -9
lines
Diff to previous 1.40 (colored)
This mod adds a number of optimizations to increase the performance of xfsdump and xfsrestore, especially on filesystems with millions of inodes. Many small changes were made to minimize the number of system calls required per inode. Significant changes to xfsdump: - Cache the gen number of each inode during the initial inode scan so that a bulkstat single does not need to be done for each inode when dumping directories. - No longer retrieve the DMF attribute when estimating the dump size of a file. Use information from the bulkstat instead. - Retrieve DMF attribute by handle instead of doing open/attr_getf/close. - In determining where to split multi-stream dumps, take into consideration the number of files and not just the file size. This allows filesystems with large amounts of inodes but relatively little data (DMF filesystem) to be split correctly. Significant changes to xfsrestore: - Buffer writes to the namreg file to eliminate 2 very small write system calls per directory entry. - Buffer writes to dirattr file to eliminate a small write system call per directory. - Speedup the check to see if a particular window of the tree file is mapped. This allows xfsrestore to use more, smaller windows which is beneficial if we can't fit them all in memory and have to start unmapping them. This also makes the -w option obsolete so that option now has no effect. - Change the hash function to give a better distribution among the hash buckets. - Do not make an unnecessary unlink call if the file being restored does not already exist.
Revision 1.40 / (download) - annotate - [select for diffs], Tue Nov 29 21:38:43 2005 UTC (11 years, 10 months ago) by wkendall
Branch: MAIN
Changes since 1.39: +1 -0
lines
Diff to previous 1.39 (colored)
Change xfsdump to dump project quotas in addition to user and group quotas. Remove xfsdump's xfsdq/xfsrq commands and instead make use of xfs_quota's dump and restore quota commands. Bumped the required xfsprogs version in the debian and rpm package builds to ensure that xfs_quota will exist.
Revision 1.39 / (download) - annotate - [select for diffs], Tue Nov 29 21:27:26 2005 UTC (11 years, 10 months ago) by wkendall
Branch: MAIN
Changes since 1.38: +74 -22
lines
Diff to previous 1.38 (colored)
Change xfsrestore to set various inode flags at the appropriate time, as some need to be set before restoring data and others after restoring data and/or extended attributes. To facilitate this, enable partial file restoration checking even when restoring from only one stream, and make use of the dirattr routines for restoring the immutable flag on files that have extended attributes.
Revision 1.38 / (download) - annotate - [select for diffs], Thu Nov 10 23:03:17 2005 UTC (11 years, 11 months ago) by wkendall
Branch: MAIN
Changes since 1.37: +6 -2
lines
Diff to previous 1.37 (colored)
Add support for dumping and restoring project ids for regular files and directories. This is done in a backwards compatible way -- restores from old IRIX dumps will restore the correct project id, and restores from old Linux dumps will restore a 0 for the project id. Fix a bug on IRIX where the first two bytes of bs_pad1 in a bstat_t were not being zeroed before being dumped. Document this fact since it might affect the ability to use them in the future. xfsrestore on IRIX was not restoring any extended inode flags for directories. This is now fixed. Change setdirattr() to do only one path_to_handle/open_by_handle sequence when restoring directory attributes. Previously this was being done twice on Linux -- once for setting the DMAPI event mask and once for the extended inode flags.
Revision 1.37 / (download) - annotate - [select for diffs], Thu Nov 10 22:05:47 2005 UTC (11 years, 11 months ago) by wkendall
Branch: MAIN
Changes since 1.36: +3 -73
lines
Diff to previous 1.36 (colored)
Change xfsdump and xfsrestore to unconditionally compile support for extended attributes and DMAPI event flags. Noticed some code which would revert to an old media format if the user requested that extended attributes not be dumped. The intention being to make the dumps compatible with old xfsrestores (really old now). But using the old media format means that holes will not be efficiently encoded in the dump. So I'm removing this code so that we always dump in the current media format.
Revision 1.36 / (download) - annotate - [select for diffs], Wed Nov 9 05:04:17 2005 UTC (11 years, 11 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.35: +14 -28
lines
Diff to previous 1.35 (colored)
Update copyright annotations and license boilerplates to correspond with SGI Legals preferences. Merge of master-melb:xfs-cmds:24334a by kenmcd.
Revision 1.35 / (download) - annotate - [select for diffs], Thu Jun 23 15:22:44 2005 UTC (12 years, 3 months ago) by wkendall
Branch: MAIN
Changes since 1.34: +20 -12
lines
Diff to previous 1.34 (colored)
When restoring a filesystem that is nearly full, writes start to fail with ENOSPC even though the filesystem is not actually full. This is a result of XFS's delayed allocation. Change xfsrestore to retry a write that fails with ENOSPC after issuing a fdatasync call. If it still fails, issue a sync call and retry once more.
Revision 1.34 / (download) - annotate - [select for diffs], Wed Feb 9 19:21:00 2005 UTC (12 years, 8 months ago) by wkendall
Branch: MAIN
Changes since 1.33: +34 -26
lines
Diff to previous 1.33 (colored)
Fix a couple of spots in xfsrestore where XFS-specific calls were being made without first checking to see if the filesystem being restored is XFS.
Revision 1.33 / (download) - annotate - [select for diffs], Thu Apr 15 19:42:58 2004 UTC (13 years, 6 months ago) by wkendall
Branch: MAIN
Changes since 1.32: +5 -5
lines
Diff to previous 1.32 (colored)
- Fix file descriptor leak in path_to_fshandle. It now caches one descriptor per filesystem. - In xfsrestore, always allocate a fs handle during content_init. This allows us to not have to call path_to_fshandle before attempting every open_by_handle. - Change open_by_fshandle to open_by_handle is cases where we are passing a file handle (instead of a fshandle). Always allocate a fshandle during content_init rather than calling path_to_fshandle before each open_by_handle. Change path_to_fshandle to path_to_handle in cases where we are actually passing a file handle.
Revision 1.32 / (download) - annotate - [select for diffs], Thu Feb 26 00:31:25 2004 UTC (13 years, 7 months ago) by alkirkco
Branch: MAIN
Changes since 1.31: +16 -8
lines
Diff to previous 1.31 (colored)
Add xfsdump support for the security extended attributes namespace. Add xfsdump support for the security extended attributes namespace.
Revision 1.31 / (download) - annotate - [select for diffs], Fri Feb 13 19:12:27 2004 UTC (13 years, 8 months ago) by alkirkco
Branch: MAIN
Changes since 1.30: +2 -2
lines
Diff to previous 1.30 (colored)
Some of the libhandle routines were not clear whether they were working on fshandles or file handles. This mod renames open_by_handle() to open_by_fshandle() and updates any calling applications to now call open_by_fshandle() instead. A new open_by_handle() has been created. path_to_fshandle() was trying to maintain a hash of fshandles but the hash was only storing a max of 2 fshandles at a time. This has been fixed so the hash can hold multiple fs handles. call open_by_fshandle() rather than open_by_handle()
Revision 1.30 / (download) - annotate - [select for diffs], Mon Jan 5 17:08:20 2004 UTC (13 years, 9 months ago) by alkirkco
Branch: MAIN
Changes since 1.29: +35 -36
lines
Diff to previous 1.29 (colored)
Add support to properly dump and restore the new inode flags: immutable, append, sync, noatime and nodump. Add all inode flags, new and old, to the list defined in _mk_fillconfig_ea() of cmd/xfstests/common.dump. Test 063 can be used to verify the proper backup and restore of these flags. Also update man pages to 1) remove reference to miniroot (IRIX-only), 2) document the new XFS_XFLAG_NODUMP inode flag as the preferred method to exclude files, and 3) better describe how the media inventory files can be used. The code for the inode flags was contributed by Ethan Benson, with copyright assignment obtained by Nathan Scott. Move the restoration of xflags to the end of the restore_reg() routine, right before the file is closed (previously it was done before DMAPI events were restored).
Revision 1.29 / (download) - annotate - [select for diffs], Tue Apr 29 01:52:34 2003 UTC (14 years, 5 months ago) by nathans
Branch: MAIN
CVS Tags: XFS-1_3_0pre1
Changes since 1.28: +4 -4
lines
Diff to previous 1.28 (colored)
Fix includes to not be relative to paths provided by -I directives, for the xfsprogs and xfsdump builds. At this stage still provide these gcc options in the build but later that can be removed too now that headers are clean.
Revision 1.28 / (download) - annotate - [select for diffs], Thu Apr 17 13:42:53 2003 UTC (14 years, 6 months ago) by alkirkco
Branch: MAIN
Changes since 1.27: +3 -3
lines
Diff to previous 1.27 (colored)
Fix for DMF dualstate file dump. Initialize all hlen variables to zero.
Revision 1.27 / (download) - annotate - [select for diffs], Mon Dec 23 03:47:59 2002 UTC (14 years, 10 months ago) by nathans
Branch: MAIN
Changes since 1.26: +4 -4
lines
Diff to previous 1.26 (colored)
Undoes mod: xfs-cmds:slinx:135744a Minor formatting fixups to i18n xfsdump changes.
Revision 1.26 / (download) - annotate - [select for diffs], Sun Dec 22 22:10:29 2002 UTC (14 years, 10 months ago) by nathans
Branch: MAIN
Changes since 1.25: +3 -3
lines
Diff to previous 1.25 (colored)
Minor formatting fixups to i18n xfsdump changes.
Revision 1.25 / (download) - annotate - [select for diffs], Thu Dec 19 22:44:59 2002 UTC (14 years, 10 months ago) by nathans
Branch: MAIN
Changes since 1.24: +474 -449
lines
Diff to previous 1.24 (colored)
I18N support for xfsdump package.
Revision 1.24 / (download) - annotate - [select for diffs], Tue Jul 30 04:04:20 2002 UTC (15 years, 2 months ago) by nathans
Branch: MAIN
Changes since 1.23: +1 -1
lines
Diff to previous 1.23 (colored)
fix compiler warnings from builds for 64 bit processors.
Revision 1.23 / (download) - annotate - [select for diffs], Fri Jun 14 16:29:09 2002 UTC (15 years, 4 months ago) by mkulima
Branch: MAIN
Changes since 1.22: +6 -3
lines
Diff to previous 1.22 (colored)
- Changed the xfsrestore -i option messages to emphasize interactive
Revision 1.22 / (download) - annotate - [select for diffs], Tue Jun 4 23:07:56 2002 UTC (15 years, 4 months ago) by sandeen
Branch: MAIN
Changes since 1.21: +1 -1
lines
Diff to previous 1.21 (colored)
Update copyright dates (again)
Revision 1.21 / (download) - annotate - [select for diffs], Tue Jun 4 22:53:09 2002 UTC (15 years, 4 months ago) by sandeen
Branch: MAIN
Changes since 1.20: +1 -1
lines
Diff to previous 1.20 (colored)
Undoes mod: xfs-cmds:slinx:120772a Undo xfs-cmds:slinx:120772a, inadvertently whacked a previous mod.
Revision 1.20 / (download) - annotate - [select for diffs], Tue Jun 4 17:58:21 2002 UTC (15 years, 4 months ago) by sandeen
Branch: MAIN
Changes since 1.19: +1 -1
lines
Diff to previous 1.19 (colored)
Update copyright dates
Revision 1.19 / (download) - annotate - [select for diffs], Fri Dec 14 01:47:07 2001 UTC (15 years, 10 months ago) by ivanr
Branch: MAIN
Changes since 1.18: +5 -0
lines
Diff to previous 1.18 (colored)
add xfsrestore -B option
Revision 1.18 / (download) - annotate - [select for diffs], Thu Dec 13 09:23:07 2001 UTC (15 years, 10 months ago) by tes
Branch: MAIN
Changes since 1.17: +137 -16
lines
Diff to previous 1.17 (colored)
- add dirent counter - so can see how many dir entries processed - add large window option - add conditional compiled "still waiting for dirs" msgs - turn window locks off around applydirdump() as must be single threaded [optimisation] - turn window locks off around treepost() as must be single threaded [optimisation] - handle case where tree_begindir() fails in applydirdump() return the rv - handle case where tree_addent() fails in applydirdump() return the rv - add summary msg for dirs and dirents processed from dump - set rval for Media_mfile_next() - handle case where tree_cb_links() fails in restore_file() return the rv - handle case where tree_cb_links() fails in restore_extattr() return the rvrestore/getopt.h - have multiple extended attribute buffers
Revision 1.17 / (download) - annotate - [select for diffs], Sat Nov 10 05:21:03 2001 UTC (15 years, 11 months ago) by tes
Branch: MAIN
Changes since 1.16: +4 -4
lines
Diff to previous 1.16 (colored)
Allow name to be up to 255 chars instead of 254.
Revision 1.16 / (download) - annotate - [select for diffs], Thu Oct 18 03:54:34 2001 UTC (16 years ago) by ivanr
Branch: MAIN
Changes since 1.15: +0 -5
lines
Diff to previous 1.15 (colored)
dont check whether housekeeping directory is on xfs filesystem
Revision 1.15 / (download) - annotate - [select for diffs], Fri Sep 28 09:49:27 2001 UTC (16 years ago) by fsgqa
Branch: MAIN
Changes since 1.14: +19 -18
lines
Diff to previous 1.14 (colored)
time32_t changes
Revision 1.14 / (download) - annotate - [select for diffs], Mon Sep 3 23:53:47 2001 UTC (16 years, 1 month ago) by ajag
Branch: MAIN
Changes since 1.13: +5 -5
lines
Diff to previous 1.13 (colored)
Undoes mod: 2.4.x-xfs:slinx:101997a
Revision 1.13 / (download) - annotate - [select for diffs], Fri Aug 31 15:10:44 2001 UTC (16 years, 1 month ago) by sandeen
Branch: MAIN
Changes since 1.12: +5 -5
lines
Diff to previous 1.12 (colored)
Fix build : s/STREAM_SIMMAX/STREAM_MAX/
Revision 1.12 / (download) - annotate - [select for diffs], Fri Aug 31 01:39:05 2001 UTC (16 years, 1 month ago) by ajag
Branch: MAIN
Changes since 1.11: +7 -2
lines
Diff to previous 1.11 (colored)
merge of irix6.5f-melb:eoe:06291a, irix6.5f-melb:eoe:06307a,
and irix6.5f-melb:eoe:06315a, see PV #784355
- Wrap returns with mlog_exit, sprinkle hints.
- Add hint to DEVICE_NONREMOVABLE in newmedia block, unless an error has
been signalled elsewhere we don't really want to log a failure.
Revision 1.11 / (download) - annotate - [select for diffs], Thu Jul 19 19:26:28 2001 UTC (16 years, 3 months ago) by roehrich
Branch: MAIN
Changes since 1.10: +30 -30
lines
Diff to previous 1.10 (colored)
Turn on the dmapi stuff. Establish a filesystem handle for the destination dir, so libhandle is happy.
Revision 1.10 / (download) - annotate - [select for diffs], Thu Jul 19 01:00:14 2001 UTC (16 years, 3 months ago) by nathans
Branch: MAIN
Changes since 1.9: +22 -4
lines
Diff to previous 1.9 (colored)
insert a missing dmapi syscall (ioctl), port to Linux.
Revision 1.9 / (download) - annotate - [select for diffs], Thu Jul 12 17:31:50 2001 UTC (16 years, 3 months ago) by lord
Branch: MAIN
Changes since 1.8: +1 -1
lines
Diff to previous 1.8 (colored)
convert dump tape format dev_t into linux format dev_t before calling mknod.
Revision 1.8 / (download) - annotate - [select for diffs], Mon May 21 00:35:02 2001 UTC (16 years, 5 months ago) by nathans
Branch: MAIN
CVS Tags: Linux-2_4_5-merge
Changes since 1.7: +1 -0
lines
Diff to previous 1.7 (colored)
fixes a qa-found problem to do with only restoring user quota file, not group quota file.
Revision 1.7 / (download) - annotate - [select for diffs], Tue May 15 04:05:35 2001 UTC (16 years, 5 months ago) by tes
Branch: MAIN
Changes since 1.6: +11 -11
lines
Diff to previous 1.6 (colored)
Make chown come before chmod so that suid and guid bits are not cleared when restoring regular files.
Revision 1.6 / (download) - annotate - [select for diffs], Wed May 9 07:18:58 2001 UTC (16 years, 5 months ago) by nathans
Branch: MAIN
Changes since 1.5: +2 -12
lines
Diff to previous 1.5 (colored)
remove a few HIDDENs which don't need to be there - to do with rt files, direct io, dioinfo ioctl (not fcntl like irix).
Revision 1.5 / (download) - annotate - [select for diffs], Mon Apr 9 06:32:28 2001 UTC (16 years, 6 months ago) by nathans
Branch: MAIN
Changes since 1.4: +9 -9
lines
Diff to previous 1.4 (colored)
ensure parameter types match fprintf type directives for both 32 and 64 bit machines.
Revision 1.4 / (download) - annotate - [select for diffs], Tue Apr 3 03:57:58 2001 UTC (16 years, 6 months ago) by ivanr
Branch: MAIN
CVS Tags: Release-1_0_0
Changes since 1.3: +24 -13
lines
Diff to previous 1.3 (colored)
add quota support
Revision 1.3 / (download) - annotate - [select for diffs], Mon Feb 19 01:53:25 2001 UTC (16 years, 8 months ago) by nathans
Branch: MAIN
Changes since 1.2: +3 -3
lines
Diff to previous 1.2 (colored)
fix some compiler warnings.
Revision 1.2 / (download) - annotate - [select for diffs], Fri Feb 9 07:45:14 2001 UTC (16 years, 8 months ago) by ajag
Branch: MAIN
Changes since 1.1: +23 -12
lines
Diff to previous 1.1 (colored)
No Message Supplied
Revision 1.1 / (download) - annotate - [select for diffs], Mon Jan 15 04:06:20 2001 UTC (16 years, 9 months ago) by nathans
Branch: MAIN
cmd/xfs/dump/restore/content.c 1.19 Renamed to cmd/xfsdump/restore/content.c