Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-3]: src/sys/ufs/ufs Pull up revision 1.18 (requested by hannken i...



details:   https://anonhg.NetBSD.org/src/rev/d556487cfdff
branches:  netbsd-3
changeset: 575899:d556487cfdff
user:      tron <tron%NetBSD.org@localhost>
date:      Sat May 28 12:45:40 2005 +0000

description:
Pull up revision 1.18 (requested by hannken in ticket #334):
ffs/ffs_alloc.c:
- Add a missing ACTIVECG_CLR().
ffs/ffs_snapshot.c:
- Use async/delayed writes for snapshot creation and sync/uncache these buffers
  on end. Reduces the time the file system must be suspended.
- Remove um_snaplistsize. Was a duplicate of um_snapblklist[0].
- Byte swap the list of preallocated blocks on read/write instead of access.
- Always keep this list on ip->i_snapblklist so it may be rolled back when the
  newest snapshot gets removed. Fixes a rare snapshot corruption when using
  more than one snapshot on a file system.
ufs/ufsmount.h:
  - Make TAILQ_LAST() possible on member um_snapshots.
  - Remove um_snaplistsize. Was a duplicate of um_snapblklist[0].

diffstat:

 sys/ufs/ufs/ufsmount.h |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (19 lines):

diff -r b7d988537445 -r d556487cfdff sys/ufs/ufs/ufsmount.h
--- a/sys/ufs/ufs/ufsmount.h    Sat May 28 12:45:31 2005 +0000
+++ b/sys/ufs/ufs/ufsmount.h    Sat May 28 12:45:40 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ufsmount.h,v 1.17 2004/08/15 07:20:00 mycroft Exp $    */
+/*     $NetBSD: ufsmount.h,v 1.17.10.1 2005/05/28 12:45:40 tron Exp $  */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -95,8 +95,7 @@
        char    um_qflags[MAXQUOTAS];           /* quota specific flags */
        struct  netexport um_export;            /* export information */
        void    *um_oldfscompat;                /* save 4.2 rotbl */
-       TAILQ_HEAD(, inode) um_snapshots;       /* list of active snapshots */
-       daddr_t um_snaplistsize;                /* size of block hints list */
+       TAILQ_HEAD(inodelst, inode) um_snapshots; /* list of active snapshots */
        daddr_t *um_snapblklist;                /* snapshot block hints list */
        int     um_maxsymlinklen;
        int     um_dirblksiz;



Home | Main Index | Thread Index | Old Index