cvs commit: src/sys/sys vnode.h src/sys/kern vfs_subr.c src/sys/ufs/ffs ffs_extern.h ffs_vfsops.c fs.h src/sys/ufs/ufs gjournal.h ufs_gjournal.c ufs_inode.c ufs_vnops.c

Pawel Jakub Dawidek pjd at
Tue Oct 31 21:49:13 UTC 2006

pjd         2006-10-31 21:48:54 UTC

  FreeBSD src repository

  Modified files:
    sys/sys              vnode.h 
    sys/kern             vfs_subr.c 
    sys/ufs/ffs          ffs_extern.h ffs_vfsops.c fs.h 
    sys/ufs/ufs          ufs_inode.c ufs_vnops.c 
  Added files:
    sys/ufs/ufs          gjournal.h ufs_gjournal.c 
  Add gjournal specific code to the UFS file system:
  - Add FS_GJOURNAL flag which enables gjournal support on a file system.
  - Add cg_unrefs field to the cylinder group structure which holds
    number of unreferenced (orphaned) inodes in the given cylinder group.
  - Add fs_unrefs field to the super block structure which holds
    total number of unreferenced (orphaned) inodes.
  - When file or a directory is orphaned (last reference is removed, but
    object is still open), increase fs_unrefs and cg_unrefs fields,
    which is a hint for fsck in which cylinder groups looks for such
    (orphaned) objects.
  - When file is last closed, decrease {fs,cg}_unrefs fields.
  - Add VV_DELETED vnode flag which points at orphaned objects.
  Sponsored by:
  Revision  Changes    Path
  1.687     +2 -0      src/sys/kern/vfs_subr.c
  1.317     +1 -0      src/sys/sys/vnode.h
  1.72      +1 -0      src/sys/ufs/ffs/ffs_extern.h
  1.322     +39 -2     src/sys/ufs/ffs/ffs_vfsops.c
  1.49      +5 -2      src/sys/ufs/ffs/fs.h
  1.1       +37 -0     src/sys/ufs/ufs/gjournal.h (new)
  1.1       +150 -0    src/sys/ufs/ufs/ufs_gjournal.c (new)
  1.68      +6 -0      src/sys/ufs/ufs/ufs_inode.c
  1.282     +9 -0      src/sys/ufs/ufs/ufs_vnops.c

More information about the cvs-src mailing list