CVS log for xfs-cmds/xfsdump/restore/dirattr.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.16 / (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
CVS Tags: HEAD
Changes since 1.15: +1 -1 lines
Diff to previous 1.15 (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.15 / (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.14: +0 -5 lines
Diff to previous 1.14 (unified)

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.
Back out changes for the previous attempt at restoring the immutable
flag.

Revision 1.14 / (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.13: +64 -14 lines
Diff to previous 1.13 (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.13 / (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.12: +15 -0 lines
Diff to previous 1.12 (unified)

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.12 / (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.11: +10 -0 lines
Diff to previous 1.11 (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.11 / (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.10: +1 -25 lines
Diff to previous 1.10 (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.10 / (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.9: +14 -28 lines
Diff to previous 1.9 (unified)

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

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

GCC4 fixes
ioctl commands are unsigned

Revision 1.8 / (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.7: +2 -2 lines
Diff to previous 1.7 (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.7 / (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.6: +55 -59 lines
Diff to previous 1.6 (unified)

I18N support for xfsdump package.

Revision 1.6 / (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.5: +1 -1 lines
Diff to previous 1.5 (unified)

Update copyright dates (again)

Revision 1.5 / (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.4: +1 -1 lines
Diff to previous 1.4 (unified)

Undoes mod:     xfs-cmds:slinx:120772a
Undo xfs-cmds:slinx:120772a, inadvertently whacked a previous mod.

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

Update copyright dates

Revision 1.3 / (download) - annotate - [select for diffs], Thu Oct 18 03:54:34 2001 UTC (15 years, 11 months ago) by ivanr
Branch: MAIN
Changes since 1.2: +15 -13 lines
Diff to previous 1.2 (unified)

dont issue a warning if space pre-allocation failed for mmap file if the operation is not supported

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

time32_t changes

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
CVS Tags: Release-1_0_0, Linux-2_4_5-merge

cmd/xfs/dump/restore/dirattr.c 1.8 Renamed to cmd/xfsdump/restore/dirattr.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>