~ubuntu-branches/ubuntu/lucid/dpkg/lucid-updates

« back to all changes in this revision

Viewing changes to src/filesdb.h

  • Committer: Colin Watson
  • Date: 2010-04-14 09:57:59 UTC
  • Revision ID: cjwatson@canonical.com-20100414095759-61o9ofgmq36dcfa2
* Backport from upstream (with corrections, sent upstream):
  - Defer the fsync and rename for normal files in tar extraction so that
    it's done in one pass afterwards, to avoid massive I/O degradation due
    to the serialization from each write + fsync. This restores extraction
    times to numbers closer to the ones before the fsync patch introduced
    in 1.15.6.

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
    fnnf_elide_other_lists=   000010, /* must remove from other packages' lists */
70
70
    fnnf_no_atomic_overwrite= 000020, /* >=1 instance is a dir, cannot rename over */
71
71
    fnnf_placed_on_disk=      000040, /* new file has been placed on the disk */
 
72
    fnnf_deferred_fsync =     000200,
 
73
    fnnf_deferred_rename =    000400,
72
74
  } flags; /* Set to zero when a new node is created. */
73
75
  const char *oldhash; /* valid iff this namenode is in the newconffiles list */
74
76
  struct stat *filestat;