CVS log for xfs-cmds/xfsdump/dump/content.c

[BACK] Up to [Development] / xfs-cmds / xfsdump / dump

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.45 / (download) - annotate - [select for diffs], Thu Feb 1 19:16:27 2007 UTC (10 years, 8 months ago) by wkendall
Branch: MAIN
CVS Tags: HEAD
Changes since 1.44: +24 -0 lines
Diff to previous 1.44 (unified)

When using -z, check a file's size against the max dump file size
just before dumping the file, rather than only during the initial scan.

Revision 1.44 / (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.43: +11 -11 lines
Diff to previous 1.43 (unified)

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.43 / (download) - annotate - [select for diffs], Mon Oct 2 18:10:30 2006 UTC (11 years ago) by wkendall
Branch: MAIN
Changes since 1.42: +31 -5 lines
Diff to previous 1.42 (unified)

Change xfsdump to use its inode map to determine the next inode
of interest when doing inode scans. This prevents unecessary
bulkstat calls when dumping only a fraction of a filesystem,
e.g., when doing a subtree or incremental dump.

Revision 1.42 / (download) - annotate - [select for diffs], Tue Jun 6 19:58:50 2006 UTC (11 years, 4 months ago) by wkendall
Branch: MAIN
Changes since 1.41: +7 -8 lines
Diff to previous 1.41 (unified)

The inomap was implemented to all efficient lookups in
increasing ino order. This doesn't work well for dealing
with subtrees, since recursing through subtrees will
result in processing inodes in non-increasing ino order.
Change the inomap lookup routines to use binary search,
and use a cursor to remember where the previous search
ended. This allows fast lookups for random lookups, and
keeps sequential lookups fast as well.

Revision 1.41 / (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.40: +1 -1 lines
Diff to previous 1.40 (unified)

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.40 / (download) - annotate - [select for diffs], Mon Apr 24 19:42:20 2006 UTC (11 years, 5 months ago) by wkendall
Branch: MAIN
Changes since 1.39: +0 -3 lines
Diff to previous 1.39 (unified)

Change tape strategies to default to using a single media file,
as the disk strategy currently does. Using multiple media files
kills performance on filesystems with large numbers of inodes.
Multiple media files can still be used by specifying the -d option.

Revision 1.39 / (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.38: +88 -124 lines
Diff to previous 1.38 (unified)

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.38 / (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.37: +55 -55 lines
Diff to previous 1.37 (unified)

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.37 / (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.36: +5 -5 lines
Diff to previous 1.36 (unified)

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.36 / (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.35: +1 -1 lines
Diff to previous 1.35 (unified)

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.35 / (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.34: +28 -84 lines
Diff to previous 1.34 (unified)

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.34 / (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.33: +14 -28 lines
Diff to previous 1.33 (unified)

Update copyright annotations and license boilerplates to correspond with SGI Legals preferences.
Merge of master-melb:xfs-cmds:24334a by kenmcd.

Revision 1.33 / (download) - annotate - [select for diffs], Fri Jun 3 15:12:00 2005 UTC (12 years, 4 months ago) by tes.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.32: +11 -11 lines
Diff to previous 1.32 (unified)

get rid of stat64_to_xfsbstat
Merge of master-melb:xfs-cmds:22817a by kenmcd.

  removal of stat64_to_xfsbstat

Revision 1.32 / (download) - annotate - [select for diffs], Thu Apr 21 10:02:03 2005 UTC (12 years, 5 months ago) by hch
Branch: MAIN
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (unified)

GCC4 fixes
fix scope for local variable abort

Revision 1.31 / (download) - annotate - [select for diffs], Thu Jul 22 08:15:33 2004 UTC (13 years, 2 months ago) by tes
Branch: MAIN
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (unified)

make ocount argument to bulkstat a signed 32 int - suggested by  Jan-Jaap van der Heijden

Revision 1.30 / (download) - annotate - [select for diffs], Tue Jul 20 14:18:02 2004 UTC (13 years, 2 months ago) by wkendall
Branch: MAIN
Changes since 1.29: +16 -22 lines
Diff to previous 1.29 (unified)

The next release of DMF (3.1) will introduce a new attribute
format. This mod makes xfsdump handle the new and old formats.
It also fixes a bug where the DMF code in xfsdump would create
an attribute in the root and secure namespaces, rather than
just in the root namespace.

Revision 1.29 / (download) - annotate - [select for diffs], Thu Feb 26 05:50:21 2004 UTC (13 years, 7 months ago) by fsgqa
Branch: MAIN
Changes since 1.28: +9 -8 lines
Diff to previous 1.28 (unified)

Whoops, missed a comment close delimiter in last fix.

Revision 1.28 / (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.27: +54 -22 lines
Diff to previous 1.27 (unified)

Add xfsdump support for the security extended attributes namespace.
Add xfsdump support for the security extended attributes namespace.

Revision 1.27 / (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.26: +3 -3 lines
Diff to previous 1.26 (unified)

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.26 / (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.25: +2 -3 lines
Diff to previous 1.25 (unified)

Fix for DMF dualstate file dump.
Call copy_xfs_bstat() after we call HsmModifyInode(), rather
than before.  When we called it before, fhdrp->fh_stat was
not getting properly cast to (xfs_bstat_t *), so the correct
bstat information was not making it into the inode before
the dump (causing DUL files to be dumped with the wrong event
mask so the restore would produce an invalid, INV, state).
This has been changed to call HsmModifyInode() with statp,
then copy the contents to fhdrp->fh_stat when we return.

Revision 1.25 / (download) - annotate - [select for diffs], Fri Apr 11 00:57:11 2003 UTC (14 years, 6 months ago) by nathans
Branch: MAIN
Changes since 1.24: +5 -5 lines
Diff to previous 1.24 (unified)

Security fix for the way xfsdump creates quota status files in the
filesystem root directory.
Merge of xfs-cmds-lbs:slinx:142662a by nathans.

  Fix security issue in xfsdump handling of the quotafile(s) it creates.

Revision 1.24 / (download) - annotate - [select for diffs], Thu Dec 19 22:44:59 2002 UTC (14 years, 9 months ago) by nathans
Branch: MAIN
Changes since 1.23: +290 -286 lines
Diff to previous 1.23 (unified)

I18N support for xfsdump package.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Jun 17 23:56:35 2002 UTC (15 years, 3 months ago) by nathans
Branch: MAIN
Changes since 1.22: +1 -1 lines
Diff to previous 1.22 (unified)

juggle quota headers a little for consistency.

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 (unified)

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 (unified)

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 (unified)

Update copyright dates

Revision 1.19 / (download) - annotate - [select for diffs], Thu May 30 00:15:39 2002 UTC (15 years, 4 months ago) by nathans
Branch: MAIN
Changes since 1.18: +5 -2 lines
Diff to previous 1.18 (unified)

use local, renamed quota header.

Revision 1.18 / (download) - annotate - [select for diffs], Mon Feb 25 22:09:00 2002 UTC (15 years, 7 months ago) by nathans
Branch: MAIN
Changes since 1.17: +0 -1 lines
Diff to previous 1.17 (unified)

Merge of xfs-cmds-2.4.18:slinx:111137a by nathans.

  remove no longer used files.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Feb 18 01:29:49 2002 UTC (15 years, 7 months ago) by ivanr
Branch: MAIN
Changes since 1.16: +1 -1 lines
Diff to previous 1.16 (unified)

change builkstat failure WARNING to TRACE message

Revision 1.16 / (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.15: +26 -3 lines
Diff to previous 1.15 (unified)

Print out more useful dump size estimates.

Revision 1.15 / (download) - annotate - [select for diffs], Wed Nov 14 07:26:20 2001 UTC (15 years, 11 months ago) by ivanr
Branch: MAIN
Changes since 1.14: +9 -5 lines
Diff to previous 1.14 (unified)

add ability to exclude files based on an extended attribute

Revision 1.14 / (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.13: +2 -2 lines
Diff to previous 1.13 (unified)

Be over cautious and make the space for the null terminator
explicit.

Revision 1.13 / (download) - annotate - [select for diffs], Fri Sep 28 09:49:27 2001 UTC (16 years ago) by fsgqa
Branch: MAIN
Changes since 1.12: +20 -21 lines
Diff to previous 1.12 (unified)

time32_t changes

Revision 1.12 / (download) - annotate - [select for diffs], Tue Sep 18 05:36:14 2001 UTC (16 years ago) by tes
Branch: MAIN
Changes since 1.11: +12 -0 lines
Diff to previous 1.11 (unified)

adds some diagnostics

Revision 1.11 / (download) - annotate - [select for diffs], Mon Sep 17 05:01:13 2001 UTC (16 years ago) by ivanr
Branch: MAIN
Changes since 1.10: +17 -2 lines
Diff to previous 1.10 (unified)

check return code for bulkstat_single call

Revision 1.10 / (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.9: +10 -10 lines
Diff to previous 1.9 (unified)

Undoes mod:     2.4.x-xfs:slinx:101997a

Revision 1.9 / (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.8: +10 -10 lines
Diff to previous 1.8 (unified)

Fix build : s/STREAM_SIMMAX/STREAM_MAX/, fix comments after #endif

Revision 1.8 / (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.7: +44 -28 lines
Diff to previous 1.7 (unified)

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.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Aug 1 04:25:55 2001 UTC (16 years, 2 months ago) by nathans
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (unified)

64bit compiler warnings - fix two uninited variables (two bugs).

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jul 24 06:55:40 2001 UTC (16 years, 2 months ago) by nathans
Branch: MAIN
Changes since 1.5: +56 -5 lines
Diff to previous 1.5 (unified)

merge in several missing fixes from IRIX.

Revision 1.5 / (download) - annotate - [select for diffs], Wed May 9 07:18:58 2001 UTC (16 years, 5 months ago) by nathans
Branch: MAIN
CVS Tags: Linux-2_4_5-merge
Changes since 1.4: +1 -13 lines
Diff to previous 1.4 (unified)

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.4 / (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.3: +17 -17 lines
Diff to previous 1.3 (unified)

ensure parameter types match fprintf type directives for both
32 and 64 bit machines.

Revision 1.3 / (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.2: +127 -2 lines
Diff to previous 1.2 (unified)

add quota support

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: +117 -64 lines
Diff to previous 1.1 (unified)

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/dump/content.c 1.24 Renamed to cmd/xfsdump/dump/content.c

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.




FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>