The NetBSD Project

CVS log for src/sys/ufs/ffs/fs.h

[BACK] Up to [cvs.NetBSD.org] / src / sys / ufs / ffs

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.59.2.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:44 2014 UTC (6 weeks, 1 day ago) by tls
Branch: tls-maxphys
Changes since 1.59.2.2: +27 -24 lines
Diff to previous 1.59.2.2 (colored) to branchpoint 1.59 (colored) next main 1.60 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.56.4.3 / (download) - annotate - [select for diffs], Thu May 22 11:41:18 2014 UTC (4 months, 1 week ago) by yamt
Branch: yamt-pagecache
Changes since 1.56.4.2: +39 -36 lines
Diff to previous 1.56.4.2 (colored) to branchpoint 1.56 (colored) next main 1.57 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.64.2.1 / (download) - annotate - [select for diffs], Sun May 18 17:46:21 2014 UTC (4 months, 2 weeks ago) by rmind
Branch: rmind-smpnet
Changes since 1.64: +5 -2 lines
Diff to previous 1.64 (colored) next main 1.65 (colored)

sync with head

Revision 1.65 / (download) - annotate - [select for diffs], Tue Sep 3 02:24:01 2013 UTC (12 months, 4 weeks ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-base, netbsd-7, HEAD
Changes since 1.64: +5 -2 lines
Diff to previous 1.64 (colored)

Add the FS_SUJ flag for journaled softupdates from FreeBSD.

This conflicts with our flag for FS_INDEXDIRS. Apparently FreeBSD
changed that arbitrarily on their end when implementing journaled
softupdates, so follow their lead.

Unfortunately, the new value they use for FS_INDEXDIRS conflicts with
our flag FS_DOQUOTA2 for 64-bit quotas. Since the only thing in our
tree that knows about FS_INDEXDIRS is dumpfs (for printing it), leave
FS_INDEXDIRS commented out.

Also add FS_NFS4ACLS from FreeBSD, commented out because it conflicts
with our FS_DOWAPBL, and FS_TRIM.

(We could honor FS_TRIM as we have code for doing that; however I'm
not sure why FreeBSD chose to make it an on-disk flag instead of e.g.
a mount option and it seems problematic to me. In any case, not in
this commit.)

Also see a post I just made in tech-kern about the flag conflicts.

Revision 1.64 / (download) - annotate - [select for diffs], Sun Jun 23 22:03:34 2013 UTC (15 months, 1 week ago) by dholland
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Branch point for: rmind-smpnet
Changes since 1.63: +8 -8 lines
Diff to previous 1.63 (colored)

Stick ffs_ in front of the following macros:
   fragstoblks()
   blkstofrags()
   fragnum()
   blknum()

to finish the job of distinguishing them from the lfs versions, which
Christos renamed the other day.

I believe this is the last of the overtly ambiguous exported symbols
from ffs... or at least, the last of the ones that conflicted with lfs.
ffs still pollutes the C namespace very broadly (as does ufs) and this
needs quite a bit more cleanup.

XXX: boo on macros with lowercase names. But I'm not tackling that just yet.

Revision 1.63 / (download) - annotate - [select for diffs], Sun Jun 23 07:28:37 2013 UTC (15 months, 1 week ago) by dholland
Branch: MAIN
Changes since 1.62: +10 -10 lines
Diff to previous 1.62 (colored)

Stick ffs_, ext2_, chfs_, filecore_, cd9660_, or mfs_ in front of
the following symbols so as to disambiguate fully. (Christos already
did the lfs ones.)

   lblkno
   lblktosize
   lfragtosize
   numfrags
   blkroundup
   fragroundup

Revision 1.59.2.2 / (download) - annotate - [select for diffs], Sun Jun 23 06:18:39 2013 UTC (15 months, 1 week ago) by tls
Branch: tls-maxphys
Changes since 1.59.2.1: +15 -15 lines
Diff to previous 1.59.2.1 (colored) to branchpoint 1.59 (colored)

resync from head

Revision 1.62 / (download) - annotate - [select for diffs], Sun Jun 23 02:06:05 2013 UTC (15 months, 1 week ago) by dholland
Branch: MAIN
Changes since 1.61: +8 -8 lines
Diff to previous 1.61 (colored)

fsbtodb() -> FFS_FSBTODB(), EXT2_FSBTODB(), or MFS_FSBTODB()
dbtofsb() -> FFS_DBTOFSB() or EXT2_DBTOFSB()

(Christos already did the lfs ones a few days back)

Revision 1.61 / (download) - annotate - [select for diffs], Wed Jun 19 17:51:26 2013 UTC (15 months, 1 week ago) by dholland
Branch: MAIN
Changes since 1.60: +15 -15 lines
Diff to previous 1.60 (colored)

Rename ambiguous macros:
   MAXDIRSIZE -> UFS_MAXDIRSIZE or LFS_MAXDIRSIZE
   NINDIR -> FFS_NINDIR, EXT2_NINDIR, LFS_NINDIR, or MFS_NINDIR
   INOPB -> FFS_INOPB, LFS_INOPB
   INOPF -> FFS_INOPF, LFS_INOPF
   blksize -> ffs_blksize, ext2_blksize, or lfs_blksize
   sblksize -> ffs_blksize

These are not the only ambiguously defined filesystem macros, of
course, there's a pile more. I may not have found all the ambiguous
definitions of blksize(), too, as there are a lot of other things
called 'blksize' in the system.

Revision 1.59.2.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:30:16 2013 UTC (19 months ago) by tls
Branch: tls-maxphys
Changes since 1.59: +3 -3 lines
Diff to previous 1.59 (colored)

resync with head

Revision 1.56.4.2 / (download) - annotate - [select for diffs], Wed Jan 23 00:06:33 2013 UTC (20 months, 1 week ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.56.4.1: +3 -3 lines
Diff to previous 1.56.4.1 (colored) to branchpoint 1.56 (colored)

sync with head

Revision 1.60 / (download) - annotate - [select for diffs], Tue Jan 22 09:39:16 2013 UTC (20 months, 1 week ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base8, khorben-n900, agc-symver-base, agc-symver
Changes since 1.59: +3 -3 lines
Diff to previous 1.59 (colored)

Stuff UFS_ in front of a few of ufs's symbols to reduce namespace
pollution. Specifically:
   ROOTINO -> UFS_ROOTINO
   WINO -> UFS_WINO
   NXADDR -> UFS_NXADDR
   NDADDR -> UFS_NDADDR
   NIADDR -> UFS_NIADDR
   MAXSYMLINKLEN -> UFS_MAXSYMLINKLEN
   MAXSYMLINKLEN_UFS[12] -> UFS[12]_MAXSYMLINKLEN (for consistency)

Sort out ext2fs's misuse of NDADDR and NIADDR; fortunately, these have
the same values in ext2fs and ffs.

No functional change intended.

Revision 1.56.4.1 / (download) - annotate - [select for diffs], Wed May 23 10:08:18 2012 UTC (2 years, 4 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.56: +4 -4 lines
Diff to previous 1.56 (colored)

sync with head.

Revision 1.56.8.1 / (download) - annotate - [select for diffs], Sun Apr 29 23:05:08 2012 UTC (2 years, 5 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.56: +4 -4 lines
Diff to previous 1.56 (colored) next main 1.57 (colored)

sync to latest -current.

Revision 1.59 / (download) - annotate - [select for diffs], Mon Apr 23 17:19:00 2012 UTC (2 years, 5 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, jmcneill-usbmp-base9, jmcneill-usbmp-base10
Branch point for: tls-maxphys
Changes since 1.58: +5 -5 lines
Diff to previous 1.58 (colored)

everywhere else it is assumed that the filesystem block size fits into
a 32-bit "int" -- do the cast to quell a compiler warning in a more
sensible way

Revision 1.58 / (download) - annotate - [select for diffs], Fri Apr 20 02:07:43 2012 UTC (2 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.57: +2 -2 lines
Diff to previous 1.57 (colored)

one more cast

Revision 1.57 / (download) - annotate - [select for diffs], Thu Apr 19 17:25:38 2012 UTC (2 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.56: +4 -4 lines
Diff to previous 1.56 (colored)

Fix signed/unsigned issues.

Revision 1.55.6.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:10:17 2011 UTC (3 years, 3 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.55: +8 -3 lines
Diff to previous 1.55 (colored) next main 1.56 (colored)

Sync with HEAD.

Revision 1.55.4.1 / (download) - annotate - [select for diffs], Thu Apr 21 01:42:20 2011 UTC (3 years, 5 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.55: +8 -3 lines
Diff to previous 1.55 (colored) next main 1.56 (colored)

sync with head

Revision 1.56 / (download) - annotate - [select for diffs], Sun Mar 6 17:08:38 2011 UTC (3 years, 6 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, rmind-uvmplock-nbase, rmind-uvmplock-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.55: +8 -3 lines
Diff to previous 1.55 (colored)

merge the bouyer-quota2 branch. This adds a new on-disk format
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.

See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.

Revision 1.55.8.1 / (download) - annotate - [select for diffs], Thu Jan 20 14:25:02 2011 UTC (3 years, 8 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.55: +8 -3 lines
Diff to previous 1.55 (colored) next main 1.56 (colored)

Snapshot of work in progress on a modernised disk quota system:
- new quotactl syscall (versionned for backward compat), which takes
  as parameter a path to a mount point, and a prop_dictionary
  (in plistref format) describing commands and arguments.
  For each command, status and data are returned as a prop_dictionary.
  quota commands features will be added to take advantage of this,
  exporting quota data or getting quota commands as plists.

- new on disk-format storage (all 64bit wide), integrated to metadata for
  ffs (and playing nicely with wapbl).
  Quotas are enabled on a ffs filesystem via superblock flags.
  tunefs(8) can enable or disable quotas.
  On a quota-enabled filesystem, fsck_ffs(8) will track per-uid/gid
  block and inode usages, and will check and update quotas in Pass 6.
  quota usage and limits are stored in unliked files (one for users,
  one for groups)l fsck_ffs(8) will create the files if needed, or
  free them if needed. This means that after enabling or disabling
  quotas on a filesystem; a fsck_ffs(8) run is required.
  quotacheck(8) is not needed any more, on a unclean shutdown
  fsck or journal replay will take care of fixing quotas.
  newfs(8) can create a ready-to-mount quota-enabled filesystem
  (superblock flags are set and quota inodes are created).
  Other new features or semantic changes:
  - default quota datas, applied to users or groups which don't already
    have a quota entry
  - per-user/group grace time (instead of a filesystem global one)
  - 0 really means "nothing allowed at all", not "no limit".
    If you want "no limit", set the limit to UQUAD_MAX (tools will
    understand "unlimited" and "-")

  A quota file is structured as follow:
  it starts with a header, containing a few per-filesystem values,
  and the default quota limits.
  Quota entries are linked together as a simple list, each entry has a
  pointer (as an offset withing the file) to the next.
  The header has a pointer to a list of free quota entries, and
  a hash table of in-use entries. The size of the hash table depends
  on the filesystem block size (header+hash table should fit in the
  first block). The file is not sparse and is a multiple of
  filesystem block size (when the free quota entry list is empty a new
  filesystem block is allocated). quota entries to not cross
  filesystem block boundaries.

  In memory, the kernel keeps a cache of recently used quota entries
  as a reference to the block number, and offset withing the block.
  The quota entry itself is keept in the buf cache.

fsck_ffs(8), tunefs(8) and newfs(8) supports are completed (with
related atf tests :)
The kernel can update disk usage and report it via quotactl(2).

Todo: enforce quotas limits (limits are not checked by kernel yet)
      update repquota, edquota and rpc.rquotad to the new world
      implement compat_50_quotactl ioctl.
      update quotactl(2) man page

fsck_ffs required fixes so that allocating new blocks or inodes will
properly update the superblock and cg sumaries. This was not an issue up
to now because superblock and cg sumaries check happened last, but now
allocations or frees can happen in pass 6.

Revision 1.49.10.4 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:44 2010 UTC (4 years, 6 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.49.10.3: +6 -1 lines
Diff to previous 1.49.10.3 (colored) to branchpoint 1.49 (colored) next main 1.50 (colored)

sync with head

Revision 1.55 / (download) - annotate - [select for diffs], Sun Jan 31 10:54:10 2010 UTC (4 years, 8 months ago) by mlelstv
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base
Branch point for: rmind-uvmplock, jruoho-x86intr, bouyer-quota2
Changes since 1.54: +6 -1 lines
Diff to previous 1.54 (colored)

Fix block shift to work with different device block sizes.

Unlike other filesystems this has some side issues because
the shift values are stored in the superblock and because
userland utitlies share the same fsbtodb macros.

-> the kernel now ignores the value stored in the superblock.
-> the macro adaption is only done for defined(_KERNEL) code.

Revision 1.51.8.2 / (download) - annotate - [select for diffs], Thu Jul 23 23:33:03 2009 UTC (5 years, 2 months ago) by jym
Branch: jym-xensuspend
Changes since 1.51.8.1: +5 -1 lines
Diff to previous 1.51.8.1 (colored) to branchpoint 1.51 (colored) next main 1.52 (colored)

Sync with HEAD.

Revision 1.49.10.3 / (download) - annotate - [select for diffs], Sat Jul 18 14:53:27 2009 UTC (5 years, 2 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.49.10.2: +5 -1 lines
Diff to previous 1.49.10.2 (colored) to branchpoint 1.49 (colored)

sync with head.

Revision 1.54 / (download) - annotate - [select for diffs], Sun Jun 28 09:26:18 2009 UTC (5 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, matt-premerge-20091211, jymxensuspend-base, jym-xensuspend-nbase
Changes since 1.53: +5 -1 lines
Diff to previous 1.53 (colored)

+/*
+ * NOTE: COORDINATE ON-DISK FORMAT CHANGES WITH THE FREEBSD PROJECT.
+ */

Revision 1.49.10.2 / (download) - annotate - [select for diffs], Sat May 16 10:41:53 2009 UTC (5 years, 4 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.49.10.1: +2 -1 lines
Diff to previous 1.49.10.1 (colored) to branchpoint 1.49 (colored)

sync with head

Revision 1.51.8.1 / (download) - annotate - [select for diffs], Wed May 13 17:23:07 2009 UTC (5 years, 4 months ago) by jym
Branch: jym-xensuspend
Changes since 1.51: +3 -2 lines
Diff to previous 1.51 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.53 / (download) - annotate - [select for diffs], Tue May 12 21:01:02 2009 UTC (5 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base5, yamt-nfs-mp-base4, jym-xensuspend-base
Changes since 1.52: +2 -1 lines
Diff to previous 1.52 (colored)

Reserve a bit for FS_GJOURNAL (from FreeBSD).

Revision 1.49.10.1 / (download) - annotate - [select for diffs], Mon May 4 08:14:38 2009 UTC (5 years, 5 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.49: +64 -55 lines
Diff to previous 1.49 (colored)

sync with head.

Revision 1.51.2.1 / (download) - annotate - [select for diffs], Tue Mar 3 18:34:39 2009 UTC (5 years, 7 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.51: +2 -2 lines
Diff to previous 1.51 (colored) next main 1.52 (colored)

Sync with HEAD.

Revision 1.52 / (download) - annotate - [select for diffs], Mon Feb 23 03:01:13 2009 UTC (5 years, 7 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base
Changes since 1.51: +2 -2 lines
Diff to previous 1.51 (colored)

typo in comment

Revision 1.49.16.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:18:10 2008 UTC (5 years, 11 months ago) by haad
Branch: haad-dm
Changes since 1.49: +63 -54 lines
Diff to previous 1.49 (colored) next main 1.50 (colored)

Sync with HEAD.

Revision 1.49.6.1 / (download) - annotate - [select for diffs], Sun Sep 28 10:41:06 2008 UTC (6 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.49: +63 -54 lines
Diff to previous 1.49 (colored) next main 1.50 (colored)

Sync with HEAD.

Revision 1.49.12.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:37:05 2008 UTC (6 years ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.49: +63 -54 lines
Diff to previous 1.49 (colored) next main 1.50 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.51 / (download) - annotate - [select for diffs], Thu Jul 31 08:49:47 2008 UTC (6 years, 2 months ago) by simonb
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, jym-xensuspend
Changes since 1.50: +53 -53 lines
Diff to previous 1.50 (colored)

Be consistent with #define<tab>.

Revision 1.50 / (download) - annotate - [select for diffs], Thu Jul 31 05:38:06 2008 UTC (6 years, 2 months ago) by simonb
Branch: MAIN
Changes since 1.49: +17 -8 lines
Diff to previous 1.49 (colored)

Merge the simonb-wapbl branch.  From the original branch commit:

   Add Wasabi System's WAPBL (Write Ahead Physical Block Logging)
   journaling code.  Originally written by Darrin B. Jewell while
   at Wasabi and updated to -current by Antti Kantee, Andy Doran,
   Greg Oster and Simon Burge.

OK'd by core@, releng@.

Revision 1.49.14.2 / (download) - annotate - [select for diffs], Thu Jul 3 16:40:26 2008 UTC (6 years, 3 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.49.14.1: +7 -2 lines
Diff to previous 1.49.14.1 (colored) to branchpoint 1.49 (colored) next main 1.50 (colored)

Store the location of the journal in the superblock.  Currently
nothing really uses this, other than replay checking that what is
in the superblock matches what it expects.

Revision 1.49.14.1 / (download) - annotate - [select for diffs], Tue Jun 10 14:51:23 2008 UTC (6 years, 3 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.49: +11 -7 lines
Diff to previous 1.49 (colored)

Initial commit of Wasabi System's WAPBL (Write Ahead Physical Block
Logging) journaling code.  Originally written by Darrin B. Jewell
while at Wasabi and updated to -current by Antti Kantee, Andy Doran,
Greg Oster and Simon Burge.

Still a number of issues - look in doc/BRANCHES for "simonb-wapbl"
for more info.

Revision 1.47.4.2 / (download) - annotate - [select for diffs], Mon Feb 18 21:07:28 2008 UTC (6 years, 7 months ago) by mjf
Branch: mjf-devfs
Changes since 1.47.4.1: +2 -2 lines
Diff to previous 1.47.4.1 (colored) to branchpoint 1.47 (colored) next main 1.48 (colored)

Sync with HEAD.

Revision 1.45.4.3 / (download) - annotate - [select for diffs], Mon Jan 21 09:48:09 2008 UTC (6 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.45.4.2: +2 -2 lines
Diff to previous 1.45.4.2 (colored) to branchpoint 1.45 (colored) next main 1.46 (colored)

sync with head

Revision 1.46.46.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:58:28 2008 UTC (6 years, 8 months ago) by matt
Branch: matt-armv6
Changes since 1.46.46.1: +3 -3 lines
Diff to previous 1.46.46.1 (colored) to branchpoint 1.46 (colored) next main 1.47 (colored)

sync with HEAD

Revision 1.48.6.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:58:21 2008 UTC (6 years, 9 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.48: +2 -2 lines
Diff to previous 1.48 (colored) next main 1.49 (colored)

Sync with HEAD

Revision 1.48.2.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:58:02 2007 UTC (6 years, 9 months ago) by ad
Branch: vmlocking2
Changes since 1.48: +2 -2 lines
Diff to previous 1.48 (colored) next main 1.49 (colored)

Sync with head.

Revision 1.49 / (download) - annotate - [select for diffs], Tue Dec 25 18:33:49 2007 UTC (6 years, 9 months ago) by perry
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, wrstuden-revivesa-base-1, wrstuden-revivesa-base, vmlocking2-base3, simonb-wapbl-nbase, simonb-wapbl-base, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1
Branch point for: yamt-nfs-mp, wrstuden-revivesa, simonb-wapbl, mjf-devfs2, haad-dm
Changes since 1.48: +2 -2 lines
Diff to previous 1.48 (colored)

Convert many of the uses of __attribute__ to equivalent
__packed, __unused and __dead macros from cdefs.h

Revision 1.47.4.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:21:40 2007 UTC (6 years, 9 months ago) by mjf
Branch: mjf-devfs
Changes since 1.47: +2 -2 lines
Diff to previous 1.47 (colored)

Sync with HEAD.

Revision 1.45.4.2 / (download) - annotate - [select for diffs], Fri Dec 7 17:35:21 2007 UTC (6 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.45.4.1: +2 -2 lines
Diff to previous 1.45.4.1 (colored) to branchpoint 1.45 (colored)

sync with head

Revision 1.46.44.2 / (download) - annotate - [select for diffs], Tue Nov 27 19:39:24 2007 UTC (6 years, 10 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.46.44.1: +2 -2 lines
Diff to previous 1.46.44.1 (colored) to branchpoint 1.46 (colored) next main 1.47 (colored)

Sync with HEAD. amd64 Xen support needs testing.

Revision 1.48 / (download) - annotate - [select for diffs], Fri Nov 23 18:00:46 2007 UTC (6 years, 10 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: vmlocking2, bouyer-xeni386
Changes since 1.47: +2 -2 lines
Diff to previous 1.47 (colored)

Change the fs_clean member of the ffs superblock to be unsigned
(uint8_t instead of int8_t) - this prevents an ugly sign-extension
printing bug as well as formally undefined behavior when you mount an
unclean fs enough times.

From (my own) PR kern/28134; I've been carrying this patch for three
years, long enough to forget about it, and it's had no ill effects in
that time.

reviewed: pooka

Revision 1.46.46.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:35:14 2007 UTC (6 years, 10 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.46: +4 -4 lines
Diff to previous 1.46 (colored)

sync with HEAD

Revision 1.45.4.1 / (download) - annotate - [select for diffs], Sat Oct 27 11:36:44 2007 UTC (6 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.45: +4 -4 lines
Diff to previous 1.45 (colored)

sync with head.

Revision 1.46.30.1 / (download) - annotate - [select for diffs], Tue Oct 9 13:45:16 2007 UTC (6 years, 11 months ago) by ad
Branch: vmlocking
Changes since 1.46: +4 -4 lines
Diff to previous 1.46 (colored) next main 1.47 (colored)

Sync with head.

Revision 1.46.48.1 / (download) - annotate - [select for diffs], Sat Oct 6 15:43:45 2007 UTC (6 years, 11 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.46: +4 -4 lines
Diff to previous 1.46 (colored) next main 1.47 (colored)

sync with head.

Revision 1.46.44.1 / (download) - annotate - [select for diffs], Tue Oct 2 18:29:32 2007 UTC (7 years ago) by joerg
Branch: jmcneill-pm
Changes since 1.46: +4 -4 lines
Diff to previous 1.46 (colored)

Sync with HEAD.

Revision 1.47 / (download) - annotate - [select for diffs], Mon Sep 24 16:20:50 2007 UTC (7 years ago) by pooka
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, vmlocking-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs
Changes since 1.46: +4 -4 lines
Diff to previous 1.46 (colored)

Fix comment inaccurate from prehistoric times: default MINFREE is 5, not 10

Revision 1.46 / (download) - annotate - [select for diffs], Sun Dec 11 12:25:25 2005 UTC (8 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: yamt-x86pmap-base, yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, yamt-pdpolicy, yamt-idlelwp-base8, yamt-idlelwp, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, thorpej-atomic-base, thorpej-atomic, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, rpaulo-netinet-merge-pcb-base, rpaulo-netinet-merge-pcb, reinoud-bufcleanup, post-newlock2-merge, peter-altq-base, peter-altq, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, newlock2-nbase, newlock2-base, newlock2, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, mjf-ufs-trans-base, mjf-ufs-trans, matt-nb4-arm-base, matt-nb4-arm, matt-mips64-base, matt-mips64, hpcarm-cleanup, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi, ad-audiomp-base, ad-audiomp, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-x86pmap, vmlocking, matt-armv6, jmcneill-pm
Changes since 1.45: +1 -1 lines
Diff to previous 1.45 (colored)

merge ktrace-lwp.

Revision 1.44.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:39 2005 UTC (9 years, 5 months ago) by kent
Branch: kent-audio2
Changes since 1.44: +4 -4 lines
Diff to previous 1.44 (colored) next main 1.45 (colored)

sync with -current

Revision 1.44.6.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:37:03 2005 UTC (9 years, 6 months ago) by yamt
Branch: yamt-km
Changes since 1.44: +4 -4 lines
Diff to previous 1.44 (colored) next main 1.45 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.32.2.4 / (download) - annotate - [select for diffs], Fri Mar 4 16:54:46 2005 UTC (9 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.32.2.3: +4 -4 lines
Diff to previous 1.32.2.3 (colored) next main 1.33 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.45 / (download) - annotate - [select for diffs], Sat Feb 26 22:32:20 2005 UTC (9 years, 7 months ago) by perry
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, yamt-km-base4, yamt-km-base3, thorpej-vnode-attr-base, thorpej-vnode-attr, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, ktrace-lwp-base, kent-audio2-base
Branch point for: yamt-lazymbuf
Changes since 1.44: +4 -4 lines
Diff to previous 1.44 (colored)

nuke trailing whitespace

Revision 1.32.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:39:09 2004 UTC (10 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.32.2.2: +1 -1 lines
Diff to previous 1.32.2.2 (colored)

Fix the sync with head I botched.

Revision 1.32.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:56:52 2004 UTC (10 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.32.2.1: +0 -0 lines
Diff to previous 1.32.2.1 (colored)

Sync with HEAD.

Revision 1.32.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:56:50 2004 UTC (10 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.32: +129 -26 lines
Diff to previous 1.32 (colored)

Sync with HEAD

Revision 1.44 / (download) - annotate - [select for diffs], Tue May 25 14:54:59 2004 UTC (10 years, 4 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, matt-timespec, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.43: +38 -3 lines
Diff to previous 1.43 (colored)

Add ffs internal snapshots. Written by Marshall Kirk McKusick for FreeBSD.

- Not enabled by default. Needs kernel option FFS_SNAPSHOT.
- Change parameters of ffs_blkfree.
- Let the copy-on-write functions return an error so spec_strategy
    may fail if the copy-on-write fails.
- Change genfs_*lock*() to use vp->v_vnlock instead of &vp->v_lock.
- Add flag B_METAONLY to VOP_BALLOC to return indirect block buffer.
- Add a function ffs_checkfreefile needed for snapshot creation.
- Add special handling of snapshot files:
    Snapshots may not be opened for writing and the attributes are read-only.
    Use the mtime as the time this snapshot was taken.
    Deny mtime updates for snapshot files.
- Add function transferlockers to transfer any waiting processes from
  one lock to another.
- Add vfsop VFS_SNAPSHOT to take a snapshot and make it accessible through
  a vnode.
- Add snapshot support to ls, fsck_ffs and dump.

Welcome to 2.0F.

Approved by: Jason R. Thorpe <thorpej@netbsd.org>

Revision 1.43 / (download) - annotate - [select for diffs], Sun Mar 21 18:48:24 2004 UTC (10 years, 6 months ago) by dsl
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.42: +6 -2 lines
Diff to previous 1.42 (colored)

Rework superblock validation logic to make adding validity tests easier.
Ensure that we don't use the first alternate superblock of a ffsv1
filesystem with 64k blocks (it is in the same place as an ffsv2 sb).
Fixes part of PR kern/24809

Revision 1.42 / (download) - annotate - [select for diffs], Sat Mar 20 17:26:16 2004 UTC (10 years, 6 months ago) by dsl
Branch: MAIN
Changes since 1.41: +8 -3 lines
Diff to previous 1.41 (colored)

Change comments - one I wrote earlier wasn't right.
Add a couple of notes about areas of the superblock being reassigned
when ffsv2 was imported.

Revision 1.41 / (download) - annotate - [select for diffs], Sat Mar 20 15:37:12 2004 UTC (10 years, 6 months ago) by dsl
Branch: MAIN
Changes since 1.40: +16 -1 lines
Diff to previous 1.40 (colored)

Add a large comment about the balls-up caused by the ffsv2 superblock
not being at 8k - causes all sorts of problems, in particular with
ffsv1 filessytems with 64k blocks, and disks that are reformatted from
ffsv1 to ffsv2 (and v.v.).  see also PR kern/24809

Revision 1.40 / (download) - annotate - [select for diffs], Sat Jan 3 19:18:17 2004 UTC (10 years, 9 months ago) by dbj
Branch: MAIN
Changes since 1.39: +42 -1 lines
Diff to previous 1.39 (colored)

reintroduce compatbility defines for
fs_headswitch, fs_trkseek, fs_csmask, fs_csshift
fs_postbl, fs_rotbl, cg_blktot, cg_blks, cbtocylno, cbtorpos

Revision 1.39 / (download) - annotate - [select for diffs], Fri Jan 2 06:57:46 2004 UTC (10 years, 9 months ago) by dbj
Branch: MAIN
Changes since 1.38: +5 -3 lines
Diff to previous 1.38 (colored)

explicitly pad struct appleufslabel and use __attribute__((__packed__))
since apple put the 64 bit uuid field on a 4 byte boundary

Revision 1.38 / (download) - annotate - [select for diffs], Fri Jan 2 05:08:57 2004 UTC (10 years, 9 months ago) by dbj
Branch: MAIN
Changes since 1.37: +4 -3 lines
Diff to previous 1.37 (colored)

add uuid field to apple ufs volume label

Revision 1.37 / (download) - annotate - [select for diffs], Wed Dec 31 19:19:39 2003 UTC (10 years, 9 months ago) by dbj
Branch: MAIN
Changes since 1.36: +2 -3 lines
Diff to previous 1.36 (colored)

remove unused cs_numclusters field from struct csum_total
this avoids a potential future bug if it is ever used.
before this fix, fsck_ffs would check and fix this field to be zero

Revision 1.36 / (download) - annotate - [select for diffs], Wed Dec 31 18:53:45 2003 UTC (10 years, 9 months ago) by dbj
Branch: MAIN
Changes since 1.35: +5 -4 lines
Diff to previous 1.35 (colored)

update explanatory comment about NOCSPTRS to reflect that fs_active
is now within that region.
no functional change

Revision 1.35 / (download) - annotate - [select for diffs], Mon Sep 29 20:34:23 2003 UTC (11 years ago) by dbj
Branch: MAIN
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (colored)

Declare fs_old_flags and fs_flags as unsigned.
This fixes a bug introduced in revision 1.120 of ffs_vfsops dated 2003/09/13
which results in fs_flags having a value of 0x7fffff00 when a superblock
is updated to use the new layout.
Discussed in http://mail-index.netbsd.org/tech-kern/2003/09/28/0003.html

Revision 1.34 / (download) - annotate - [select for diffs], Thu Aug 21 14:41:00 2003 UTC (11 years, 1 month ago) by dsl
Branch: MAIN
Changes since 1.33: +13 -9 lines
Diff to previous 1.33 (colored)

Split CGSIZE definition so it can be used with 64bit fpg values.
Split cg_start so magic can be done in libsa when it is known that the
filesystem isn't UFS2.

Revision 1.33 / (download) - annotate - [select for diffs], Thu Aug 7 16:34:32 2003 UTC (11 years, 1 month ago) by agc
Branch: MAIN
Changes since 1.32: +2 -6 lines
Diff to previous 1.32 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.

Revision 1.32 / (download) - annotate - [select for diffs], Sat Apr 5 13:37:36 2003 UTC (11 years, 6 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.31: +25 -6 lines
Diff to previous 1.31 (colored)

* Use the old and new time fields in the superblock as well as a few others
  to determine if this filesystem was mounted by an older kernel after
  having been mounted by a newer one, to avoid some summary mismatches.
* Reinstate support for 4.2 cylinder groups (read-only, as it was before).

Revision 1.31 / (download) - annotate - [select for diffs], Sat Apr 5 11:12:42 2003 UTC (11 years, 6 months ago) by he
Branch: MAIN
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

Remember to prefix the manually-swapped FS magic numbers with 0x.

Revision 1.30 / (download) - annotate - [select for diffs], Thu Apr 3 16:07:09 2003 UTC (11 years, 6 months ago) by fvdl
Branch: MAIN
Changes since 1.29: +5 -5 lines
Diff to previous 1.29 (colored)

Avoid truncation of values in some macros that shift 64 bit values.
From FreeBSD.

Revision 1.29 / (download) - annotate - [select for diffs], Wed Apr 2 10:39:39 2003 UTC (11 years, 6 months ago) by fvdl
Branch: MAIN
Changes since 1.28: +177 -145 lines
Diff to previous 1.28 (colored)

Add support for UFS2. UFS2 is an enhanced FFS, adding support for
64 bit block pointers, extended attribute storage, and a few
other things.

This commit does not yet include the code to manipulate the extended
storage (for e.g. ACLs), this will be done later.

Originally written by Kirk McKusick and Network Associates Laboratories for
FreeBSD.

Revision 1.28 / (download) - annotate - [select for diffs], Fri Jan 24 21:55:24 2003 UTC (11 years, 8 months ago) by fvdl
Branch: MAIN
Changes since 1.27: +10 -10 lines
Diff to previous 1.27 (colored)

Bump daddr_t to 64 bits. Replace it with int32_t in all places where
it was used on-disk, so that on-disk formats remain the same.
Remove ufs_daddr_t and ufs_lbn_t for the time being.

Revision 1.13.2.8 / (download) - annotate - [select for diffs], Mon Nov 11 22:16:52 2002 UTC (11 years, 10 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.13.2.7: +1 -1 lines
Diff to previous 1.13.2.7 (colored) to branchpoint 1.13 (colored) next main 1.14 (colored)

Catch up to -current

Revision 1.27 / (download) - annotate - [select for diffs], Mon Nov 4 16:59:37 2002 UTC (11 years, 11 months ago) by wiz
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

s/sqiud/squid/ in comment, reported by skrueger at europe com.

Revision 1.13.2.7 / (download) - annotate - [select for diffs], Fri Oct 18 02:45:51 2002 UTC (11 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.13.2.6: +22 -0 lines
Diff to previous 1.13.2.6 (colored) to branchpoint 1.13 (colored)

Catch up to -current.

Revision 1.13.6.5 / (download) - annotate - [select for diffs], Thu Oct 10 18:44:55 2002 UTC (11 years, 11 months ago) by jdolecek
Branch: kqueue
Changes since 1.13.6.4: +23 -1 lines
Diff to previous 1.13.6.4 (colored) to branchpoint 1.13 (colored) next main 1.14 (colored)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.26 / (download) - annotate - [select for diffs], Sat Sep 28 20:11:09 2002 UTC (12 years ago) by dbj
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge
Changes since 1.25: +23 -1 lines
Diff to previous 1.25 (colored)

Add support for the Apple UFS variation on ffs
This is the bulk of PR #17345

The general approach is to use a run time deteriminable value
for DIRBLKSIZ.  Additional allowances are included for using
MAXSYMLINKLEN with FS_42INODEFMT and a shift in the cylinder group
cluster summary count array.  Support is added for managing
the Apple UFS volume label.

Revision 1.13.6.4 / (download) - annotate - [select for diffs], Sun Jun 23 17:52:09 2002 UTC (12 years, 3 months ago) by jdolecek
Branch: kqueue
Changes since 1.13.6.3: +5 -4 lines
Diff to previous 1.13.6.3 (colored) to branchpoint 1.13 (colored)

catch up with -current on kqueue branch

Revision 1.13.2.6 / (download) - annotate - [select for diffs], Wed Apr 17 00:06:31 2002 UTC (12 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.13.2.5: +5 -4 lines
Diff to previous 1.13.2.5 (colored) to branchpoint 1.13 (colored)

Catch up to -current.

Revision 1.25 / (download) - annotate - [select for diffs], Wed Apr 10 14:31:07 2002 UTC (12 years, 5 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, gehenna-devsw-base, gehenna-devsw
Changes since 1.24: +3 -2 lines
Diff to previous 1.24 (colored)

Add a special case for nrpos=1 to cbtorpos().  This massively reduces CPU usage
by newfs(8) -- and fsck_ffs(8) on a relatively empty file system.  There is
still one divide left in the inner loops, to calculate cylno values.

Revision 1.24 / (download) - annotate - [select for diffs], Wed Apr 10 07:46:10 2002 UTC (12 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.23: +4 -4 lines
Diff to previous 1.23 (colored)

Use fsbtodb() rather than multiplying by NSPF().

Revision 1.13.2.5 / (download) - annotate - [select for diffs], Thu Feb 28 04:15:28 2002 UTC (12 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.13.2.4: +1 -1 lines
Diff to previous 1.13.2.4 (colored) to branchpoint 1.13 (colored)

Catch up to -current.

Revision 1.13.2.4 / (download) - annotate - [select for diffs], Fri Jan 11 23:39:52 2002 UTC (12 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.13.2.3: +1 -3 lines
Diff to previous 1.13.2.3 (colored) to branchpoint 1.13 (colored)

More catchup.

Revision 1.13.6.3 / (download) - annotate - [select for diffs], Thu Jan 10 20:05:07 2002 UTC (12 years, 8 months ago) by thorpej
Branch: kqueue
Changes since 1.13.6.2: +5 -5 lines
Diff to previous 1.13.6.2 (colored) to branchpoint 1.13 (colored)

Sync kqueue branch with -current.

Revision 1.13.2.3 / (download) - annotate - [select for diffs], Tue Jan 8 00:34:49 2002 UTC (12 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.13.2.2: +4 -2 lines
Diff to previous 1.13.2.2 (colored) to branchpoint 1.13 (colored)

Catch up to -current.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Jan 7 15:25:22 2002 UTC (12 years, 8 months ago) by lukem
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base, ifpoll, eeh-devprop-base, eeh-devprop
Changes since 1.22: +1 -3 lines
Diff to previous 1.22 (colored)

revert part of rev 1.14 -  #include <ufs/ufs/dinode.h>  - because that
makes it MUCH more difficult to reference this file stand-alone.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Dec 18 10:57:22 2001 UTC (12 years, 9 months ago) by fvdl
Branch: MAIN
Changes since 1.21: +4 -2 lines
Diff to previous 1.21 (colored)

Bring over fixes from FreeBSD that weren't incorporated yet, mainly
from Kirk McKusick. They implement taking pending block/inode frees
into account for the sake of correct statfs() numbers, and adding
a new softdep type (newdirblk) to correctly handle newly allocated
directory blocks.

Minor additional changes: 1) swap the newly introduced fs_pendinginodes
and fs_pendingblock fields in ffs_sb_swap, and 2) declare lkt_held
in the debug version of the softdep lock structure volatile, as it
can be modified from interrupt context #ifdef DEBUG.

Revision 1.12.4.8 / (download) - annotate - [select for diffs], Sun Nov 25 20:01:20 2001 UTC (12 years, 10 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003
Changes since 1.12.4.7: +2 -2 lines
Diff to previous 1.12.4.7 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored)

Pull up revision 1.21 (requested by lukem):
  Mark fs_cgrotor as unused.

Revision 1.12.4.7 / (download) - annotate - [select for diffs], Sun Nov 25 20:00:41 2001 UTC (12 years, 10 months ago) by he
Branch: netbsd-1-5
Changes since 1.12.4.6: +24 -7 lines
Diff to previous 1.12.4.6 (colored) to branchpoint 1.12 (colored)

Pull up revision 1.20 (requested by lukem):
  Pull in enhanced ffs_dirpref() algorithm, which provides a
  substantial performance improvement through better locality
  between parent/child directories and their files, and by easing
  the pressure on the buffer cache for metadata operations.

Revision 1.12.4.6 / (download) - annotate - [select for diffs], Sun Nov 25 19:38:28 2001 UTC (12 years, 10 months ago) by he
Branch: netbsd-1-5
Changes since 1.12.4.5: +2 -3 lines
Diff to previous 1.12.4.5 (colored) to branchpoint 1.12 (colored)

Pull up revision 1.19 (requested by lukem):
  Deprecate unused fs_fscktime.

Revision 1.12.4.5 / (download) - annotate - [select for diffs], Sun Nov 25 19:34:33 2001 UTC (12 years, 10 months ago) by he
Branch: netbsd-1-5
Changes since 1.12.4.4: +19 -21 lines
Diff to previous 1.12.4.4 (colored) to branchpoint 1.12 (colored)

Pull up revision 1.18 (requested by lukem):
  Change fs_csp[] from being a fixed size to being an array sized
  as required.  This allows file systems with more than about 15500
  cylinder groups (on 32-bit systems) to be used.

Revision 1.12.4.4 / (download) - annotate - [select for diffs], Sun Nov 25 19:33:59 2001 UTC (12 years, 10 months ago) by he
Branch: netbsd-1-5
Changes since 1.12.4.3: +7 -10 lines
Diff to previous 1.12.4.3 (colored) to branchpoint 1.12 (colored)

Pull up revision 1.17 (requested by lukem):
  Prevent 32-bit overflows by converting to 64-bit quantities in
  appropriate places.

Revision 1.12.4.3 / (download) - annotate - [select for diffs], Sun Nov 25 19:31:22 2001 UTC (12 years, 10 months ago) by he
Branch: netbsd-1-5
Changes since 1.12.4.2: +3 -3 lines
Diff to previous 1.12.4.2 (colored) to branchpoint 1.12 (colored)

Pull up revision 1.16 (requested by lukem):
  Replace unused fs_headswitch/trkseek with fs_id.

Revision 1.12.4.2 / (download) - annotate - [select for diffs], Sun Nov 25 19:22:13 2001 UTC (12 years, 10 months ago) by he
Branch: netbsd-1-5
Changes since 1.12.4.1: +68 -60 lines
Diff to previous 1.12.4.1 (colored) to branchpoint 1.12 (colored)

Pull up revisions 1.14-1.15 (requested by lukem):
  Mark a few fields as unused.  Multiple include protection.
  Also typo corrections.

Revision 1.12.4.1 / (download) - annotate - [select for diffs], Sun Nov 25 19:19:12 2001 UTC (12 years, 10 months ago) by he
Branch: netbsd-1-5
Changes since 1.12: +5 -5 lines
Diff to previous 1.12 (colored)

Pull up revision 1.13 (requested by lukem):
  Use int32_t for on-disk time_t representation.
  Convert %q_ to %ll_ in print formats.

Revision 1.20.2.1 / (download) - annotate - [select for diffs], Mon Oct 1 12:48:26 2001 UTC (13 years ago) by fvdl
Branch: thorpej-devvp
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

Catch up with -current.

Revision 1.13.2.2 / (download) - annotate - [select for diffs], Fri Sep 21 22:37:06 2001 UTC (13 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.13.2.1: +100 -88 lines
Diff to previous 1.13.2.1 (colored) to branchpoint 1.13 (colored)

Catch up to -current.

Revision 1.21 / (download) - annotate - [select for diffs], Wed Sep 19 01:38:17 2001 UTC (13 years ago) by lukem
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

- ffs_blkpref() changes:
	- don't both updating fs->fs_cgrotor, since it's actually not used in
	  the kernel. from Manuel Bouyer in [kern/3389]
	- when examining cylinder groups from startcg to startcg-1 (wrapping
	  at fs->fs_ncg), there's no need to check startcg at the end as well
	  as the start...
- highlight in the struct fs declaration that fs_cgrotor is UNUSED

Revision 1.13.6.2 / (download) - annotate - [select for diffs], Thu Sep 13 01:16:30 2001 UTC (13 years ago) by thorpej
Branch: kqueue
Changes since 1.13.6.1: +99 -87 lines
Diff to previous 1.13.6.1 (colored) to branchpoint 1.13 (colored)

Update the kqueue branch to HEAD.

Revision 1.20 / (download) - annotate - [select for diffs], Thu Sep 6 02:16:02 2001 UTC (13 years ago) by lukem
Branch: MAIN
CVS Tags: thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp
Changes since 1.19: +24 -7 lines
Diff to previous 1.19 (colored)

Incorporate the enhanced ffs_dirpref() by Grigoriy Orlov, as found in
FreeBSD (three commits; the initial work, man page updates, and a fix
to ffs_reload()), with the following differences:
- Be consistent between newfs(8) and tunefs(8) as to the options which
  set and control the tuning parameters for this work (avgfilesize & avgfpdir)
- Use u_int16_t instead of u_int8_t to keep track of the number of
  contiguous directories (suggested by Chuck Silvers)
- Work within our FFS_EI framework
- Ensure that fs->fs_maxclusters and fs->fs_contigdirs don't point to
  the same area of memory

The new algorithm has a marked performance increase, especially when
performing tasks such as untarring pkgsrc.tar.gz, etc.

The original FreeBSD commit messages are attached:

=====
mckusick    2001/04/10 01:39:00 PDT
  Directory layout preference improvements from Grigoriy Orlov <gluk@ptci.ru>.
  His description of the problem and solution follow. My own tests show
  speedups on typical filesystem intensive workloads of 5% to 12% which
  is very impressive considering the small amount of code change involved.

  ------

    One day I noticed that some file operations run much faster on
  small file systems then on big ones. I've looked at the ffs
  algorithms, thought about them, and redesigned the dirpref algorithm.

    First I want to describe the results of my tests. These results are old
  and I have improved the algorithm after these tests were done. Nevertheless
  they show how big the perfomance speedup may be. I have done two file/directory
  intensive tests on a two OpenBSD systems with old and new dirpref algorithm.
  The first test is "tar -xzf ports.tar.gz", the second is "rm -rf ports".
  The ports.tar.gz file is the ports collection from the OpenBSD 2.8 release.
  It contains 6596 directories and 13868 files. The test systems are:

  1. Celeron-450, 128Mb, two IDE drives, the system at wd0, file system for
     test is at wd1. Size of test file system is 8 Gb, number of cg=991,
     size of cg is 8m, block size = 8k, fragment size = 1k OpenBSD-current
     from Dec 2000 with BUFCACHEPERCENT=35

  2. PIII-600, 128Mb, two IBM DTLA-307045 IDE drives at i815e, the system
     at wd0, file system for test is at wd1. Size of test file system is 40 Gb,
     number of cg=5324, size of cg is 8m, block size = 8k, fragment size = 1k
     OpenBSD-current from Dec 2000 with BUFCACHEPERCENT=50

  You can get more info about the test systems and methods at:
  http://www.ptci.ru/gluk/dirpref/old/dirpref.html

                                Test Results

               tar -xzf ports.tar.gz               rm -rf ports
    mode  old dirpref new dirpref speedup old dirprefnew dirpref speedup
                               First system
   normal     667         472      1.41       477        331       1.44
   async      285         144      1.98       130         14       9.29
   sync       768         616      1.25       477        334       1.43
   softdep    413         252      1.64       241         38       6.34
                               Second system
   normal     329         81       4.06       263.5       93.5     2.81
   async      302         25.7    11.75       112          2.26   49.56
   sync       281         57.0     4.93       263         90.5     2.9
   softdep    341         40.6     8.4        284          4.76   59.66

  "old dirpref" and "new dirpref" columns give a test time in seconds.
  speedup - speed increasement in times, ie. old dirpref / new dirpref.

  ------

  Algorithm description

  The old dirpref algorithm is described in comments:

  /*
   * Find a cylinder to place a directory.
   *
   * The policy implemented by this algorithm is to select from
   * among those cylinder groups with above the average number of
   * free inodes, the one with the smallest number of directories.
   */

  A new directory is allocated in a different cylinder groups than its
  parent directory resulting in a directory tree that is spreaded across
  all the cylinder groups. This spreading out results in a non-optimal
  access to the directories and files. When we have a small filesystem
  it is not a problem but when the filesystem is big then perfomance
  degradation becomes very apparent.

  What I mean by a big file system ?

    1. A big filesystem is a filesystem which occupy 20-30 or more percent
       of total drive space, i.e. first and last cylinder are physically
       located relatively far from each other.
    2. It has a relatively large number of cylinder groups, for example
       more cylinder groups than 50% of the buffers in the buffer cache.

  The first results in long access times, while the second results in
  many buffers being used by metadata operations. Such operations use
  cylinder group blocks and on-disk inode blocks. The cylinder group
  block (fs->fs_cblkno) contains struct cg, inode and block bit maps.
  It is 2k in size for the default filesystem parameters. If new and
  parent directories are located in different cylinder groups then the
  system performs more input/output operations and uses more buffers.
  On filesystems with many cylinder groups, lots of cache buffers are
  used for metadata operations.

  My solution for this problem is very simple. I allocate many directories
  in one cylinder group. I also do some things, so that the new allocation
  method does not cause excessive fragmentation and all directory inodes
  will not be located at a location far from its file's inodes and data.
  The algorithm is:
  /*
   * Find a cylinder group to place a directory.
   *
   * The policy implemented by this algorithm is to allocate a
   * directory inode in the same cylinder group as its parent
   * directory, but also to reserve space for its files inodes
   * and data. Restrict the number of directories which may be
   * allocated one after another in the same cylinder group
   * without intervening allocation of files.
   *
   * If we allocate a first level directory then force allocation
   * in another cylinder group.
   */

    My early versions of dirpref give me a good results for a wide range of
  file operations and different filesystem capacities except one case:
  those applications that create their entire directory structure first
  and only later fill this structure with files.

    My solution for such and similar cases is to limit a number of
  directories which may be created one after another in the same cylinder
  group without intervening file creations. For this purpose, I allocate
  an array of counters at mount time. This array is linked to the superblock
  fs->fs_contigdirs[cg]. Each time a directory is created the counter
  increases and each time a file is created the counter decreases. A 60Gb
  filesystem with 8mb/cg requires 10kb of memory for the counters array.

    The maxcontigdirs is a maximum number of directories which may be created
  without an intervening file creation. I found in my tests that the best
  performance occurs when I restrict the number of directories in one cylinder
  group such that all its files may be located in the same cylinder group.
  There may be some deterioration in performance if all the file inodes
  are in the same cylinder group as its containing directory, but their
  data partially resides in a different cylinder group. The maxcontigdirs
  value is calculated to try to prevent this condition. Since there is
  no way to know how many files and directories will be allocated later
  I added two optimization parameters in superblock/tunefs. They are:

          int32_t  fs_avgfilesize;   /* expected average file size */
          int32_t  fs_avgfpdir;      /* expected # of files per directory */

  These parameters have reasonable defaults but may be tweeked for special
  uses of a filesystem. They are only necessary in rare cases like better
  tuning a filesystem being used to store a squid cache.

  I have been using this algorithm for about 3 months. I have done
  a lot of testing on filesystems with different capacities, average
  filesize, average number of files per directory, and so on. I think
  this algorithm has no negative impact on filesystem perfomance. It
  works better than the default one in all cases. The new dirpref
  will greatly improve untarring/removing/coping of big directories,
  decrease load on cvs servers and much more. The new dirpref doesn't
  speedup a compilation process, but also doesn't slow it down.

  Obtained from:	Grigoriy Orlov <gluk@ptci.ru>
=====

=====
iedowse     2001/04/23 17:37:17 PDT
  Pre-dirpref versions of fsck may zero out the new superblock fields
  fs_contigdirs, fs_avgfilesize and fs_avgfpdir. This could cause
  panics if these fields were zeroed while a filesystem was mounted
  read-only, and then remounted read-write.

  Add code to ffs_reload() which copies the fs_contigdirs pointer
  from the previous superblock, and reinitialises fs_avgf* if necessary.

  Reviewed by:	mckusick
=====

=====
nik         2001/04/10 03:36:44 PDT
  Add information about the new options to newfs and tunefs which set the
  expected average file size and number of files per directory.  Could do
  with some fleshing out.
=====

Revision 1.19 / (download) - annotate - [select for diffs], Mon Sep 3 14:52:17 2001 UTC (13 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.18: +2 -3 lines
Diff to previous 1.18 (colored)

deprecate fs_fscktime; we never used it.

in an effort to maintain compatibility with freebsd/openbsd/whatever,
i'm attempting to get the superblock format in sync, and freebsd uses
the int32_t at this position for `fs_pendinginodes'.

if we ever decide to implement fscktime functionality, we'll:
a) make sure to liaise with the other projects to reserve the same
   spare field
b) actually implement the code this time ...

(this is also preparing us for other changes, like the new dirpref code)

Revision 1.18 / (download) - annotate - [select for diffs], Sun Sep 2 01:58:31 2001 UTC (13 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.17: +19 -21 lines
Diff to previous 1.17 (colored)

Incorporate fix by iedowse @ FreeBSD to allow disks with large numbers of
cylinder groups to work correctly, with minor modifications by me to work
with our FFS_EI code.  From the FreeBSD commit message:

	The ffs superblock includes a 128-byte region for use by temporary
	in-core pointers to summary information. An array in this region
	(fs_csp) could overflow on filesystems with a very large number of
	cylinder groups (~16000 on i386 with 8k blocks). When this happens,
	other fields in the superblock get corrupted, and fsck refuses to
	check the filesystem.

	Solve this problem by replacing the fs_csp array in 'struct fs'
	with a single pointer, and add padding to keep the length of the
	128-byte region fixed. Update the kernel and userland utilities
	to use just this single pointer.

	With this change, the kernel no longer makes use of the superblock
	fields 'fs_csshift' and 'fs_csmask'. Add a comment to newfs/mkfs.c
	to indicate that these fields must be calculated for compatibility
	with older kernels.

	Reviewed by:    mckusick

Revision 1.17 / (download) - annotate - [select for diffs], Fri Aug 31 03:15:45 2001 UTC (13 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.16: +7 -10 lines
Diff to previous 1.16 (colored)

More fixes from FreeBSD (with changes):
- Cast blk argument to lblktosize() to (off_t), to prevent 32 bit overflow.
  whilst almost every use in ffs used this for small blknos, there are
  potential issues, and it's safer this way.  (as discussed with chuq)
- Use 64bit (off_t) math to calculate if we have hit our freespace() limit.
  Necessary for coherent results on filesystems bigger than 0.5Tb.
- Use lblktosize() in blksize() and dblksize(), to make it obvious what's
  happening
- Remove sblksize() - nothing uses it

Revision 1.16 / (download) - annotate - [select for diffs], Thu Aug 30 14:37:25 2001 UTC (13 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

some improvements from freebsd/openbsd
- replace the unused fs_headswitch and fs_trkseek with fs_id[2], bringing
  our struct fs closer to that in freebsd & openbsd (& solaris FWIW)
- dumpfs: improve warning message when cpc == 0

Revision 1.15 / (download) - annotate - [select for diffs], Thu Aug 30 08:31:25 2001 UTC (13 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.14: +58 -57 lines
Diff to previous 1.14 (colored)

- minor whitespace and comments cleanup
- replace "filesystem" with "file system"
- fix spelo (from freebsd)

Revision 1.13.2.1 / (download) - annotate - [select for diffs], Fri Aug 24 00:13:20 2001 UTC (13 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.13: +11 -4 lines
Diff to previous 1.13 (colored)

Catch up with -current.

Revision 1.13.6.1 / (download) - annotate - [select for diffs], Fri Aug 3 04:14:07 2001 UTC (13 years, 2 months ago) by lukem
Branch: kqueue
Changes since 1.13: +11 -4 lines
Diff to previous 1.13 (colored)

update to -current

Revision 1.14 / (download) - annotate - [select for diffs], Fri Jul 27 01:28:06 2001 UTC (13 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.13: +11 -4 lines
Diff to previous 1.13 (colored)

- multiple include protection
- pull in <ufs/ufs/dinode.h> for ufs_daddr_t
- mark a few fields as being "UNUSED" (because they are)

Revision 1.11.14.2 / (download) - annotate - [select for diffs], Mon Mar 12 13:32:06 2001 UTC (13 years, 6 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.11.14.1: +5 -5 lines
Diff to previous 1.11.14.1 (colored) to branchpoint 1.11 (colored) next main 1.12 (colored)

Sync with HEAD.

Revision 1.13 / (download) - annotate - [select for diffs], Fri Feb 23 02:25:10 2001 UTC (13 years, 7 months ago) by eeh
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, perseant-lfsv2-base, perseant-lfsv2
Branch point for: nathanw_sa, kqueue
Changes since 1.12: +5 -5 lines
Diff to previous 1.12 (colored)

Use int32_t for on-disk time_t values.

Revision 1.11.14.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:11:47 2000 UTC (13 years, 10 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.11: +18 -2 lines
Diff to previous 1.11 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.11.20.2 / (download) - annotate - [select for diffs], Mon Dec 27 18:36:38 1999 UTC (14 years, 9 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.11.20.1: +18 -2 lines
Diff to previous 1.11.20.1 (colored) to branchpoint 1.11 (colored) next main 1.12 (colored)

Pull up to last week's -current.

Revision 1.11.20.1 / (download) - annotate - [select for diffs], Tue Dec 21 23:20:07 1999 UTC (14 years, 9 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.11: +6 -1 lines
Diff to previous 1.11 (colored)

Initial commit of recent changes to make DEV_BSIZE go away.

Runs on i386, needs work on other arch's. Main kernel routines should be
fine, but a number of the stand programs need help.

cd, fd, ccd, wd, and sd have been updated. sd has been tested with non-512
byte block devices. vnd, raidframe, and lfs need work.

Non 2**n block support is automatic for LKM's and conditional for kernels
on "options NON_PO2_BLOCKS".

Revision 1.12 / (download) - annotate - [select for diffs], Mon Nov 15 18:49:14 1999 UTC (14 years, 10 months ago) by fvdl
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl, chs-ubc2-newbase
Branch point for: netbsd-1-5
Changes since 1.11: +18 -2 lines
Diff to previous 1.11 (colored)

Add Kirk McKusick's soft updates code to the trunk. Not enabled by
default, as the copyright on the main file (ffs_softdep.c) is such
that is has been put into gnusrc. options SOFTDEP will pull this
in. This code also contains the trickle syncer.

Bump version number to 1.4O

Revision 1.11.16.1 / (download) - annotate - [select for diffs], Tue Oct 19 12:50:39 1999 UTC (14 years, 11 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.11: +18 -2 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

Bring in Kirk McKusick's FFS softdep code on a branch.

Revision 1.11 / (download) - annotate - [select for diffs], Tue Jul 28 17:30:01 1998 UTC (16 years, 2 months ago) by drochner
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kenh-if-detach-base, kenh-if-detach, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, fvdl-softdep-base, eeh-paddr_t-base, eeh-paddr_t, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-base, chs-ubc2, chs-ubc-base, chs-ubc
Branch point for: wrstuden-devbsize, thorpej_scsipi, fvdl-softdep
Changes since 1.10: +1 -6 lines
Diff to previous 1.10 (colored)

The fragtbl[], inside[] and around[] variables are needed by "fsck",
so we can't put them inside "#ifdef _KERNEL".
Put declarations inside .c files where needed to preserve namespace.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Jul 28 04:17:51 1998 UTC (16 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.9: +3 -1 lines
Diff to previous 1.9 (colored)

Omit some externs if not _KERNEL.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Mar 18 15:57:28 1998 UTC (16 years, 6 months ago) by bouyer
Branch: MAIN
Changes since 1.8: +28 -20 lines
Diff to previous 1.8 (colored)

Add support for reading/writing FFS in non-native byte order, conditioned
to "options FFS_EI". The superblock and inodes (without blk addr) are
byteswapped at disk read/write time, other metadatas are byteswapped
when used (as they are acceeded directly in the buffer cache).
This required the addition of a "um_flags" field to struct ufsmount.
ffs_bswap.c contains superblock and inode byteswap routines also used
by userland utilities.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Mar 1 02:23:15 1998 UTC (16 years, 7 months ago) by fvdl
Branch: MAIN
Changes since 1.7: +11 -11 lines
Diff to previous 1.7 (colored)

Merge with Lite2 + local changes

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:14:03 1998 UTC (16 years, 7 months ago) by fvdl
Branch: netbsd, CSRG
CVS Tags: lite-2
Changes since 1.1.1.1: +151 -139 lines
Diff to previous 1.1.1.1 (colored)

Import 4.4BSD-Lite2

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:10:45 1998 UTC (16 years, 7 months ago) by fvdl
Branch: netbsd, CSRG
CVS Tags: lite-1, date-03-may-96
Changes since 1.1: +1 -2 lines
Diff to previous 1.1 (colored)

Import 4.4BSD-Lite for reference

Revision 1.7 / (download) - annotate - [select for diffs], Wed Jun 11 10:09:48 1997 UTC (17 years, 3 months ago) by bouyer
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, marc-pcmcia-bp, marc-pcmcia-base, marc-pcmcia, bouyer-scsipi
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

Add support for ext2fs, this needed a few modifications to ufs/ufs/inode.h:
- added an "union inode_ext" to struct inode, for the per-fs extentions.
  For now only ext2fs uses it.
- i_din is now an union:
	union {
		struct  dinode ffs_din; /* 128 bytes of the on-disk dinode. */
		struct ext2fs_dinode e2fs_din; /* 128 bytes of the on-disk dinode. */
	} i_din
  Added a lot of #define i_ffs_* and i_e2fs_* to access the fields.
- Added two macros: FFS_ITIMES and EXT2FS_ITIMES. ITIMES calls the rigth
  macro, depending on the time of the inode. ITIMES is used where necessary,
  FFS_ITIMES and EXT2FS_ITIMES in other places.

Revision 1.6 / (download) - annotate - [select for diffs], Wed Apr 12 21:21:02 1995 UTC (19 years, 5 months ago) by mycroft
Branch: MAIN
CVS Tags: thorpej-setroot, netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1, mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Changes since 1.5: +10 -2 lines
Diff to previous 1.5 (colored)

Make use of the `fs_clean' field.  If it was set when the file system was
mounted or upgraded to r-w, then clear it and set it again later when the
file system is unmounted or downgraded.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Dec 14 13:03:42 1994 UTC (19 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.4: +7 -6 lines
Diff to previous 1.4 (colored)

Sync with CSRG.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Dec 13 19:10:43 1994 UTC (19 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.3: +155 -143 lines
Diff to previous 1.3 (colored)

Sync with CSRG.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Oct 20 04:21:00 1994 UTC (19 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.2: +140 -141 lines
Diff to previous 1.2 (colored)

update for new syscall args description mechanism, and deal safely
with wider types.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jun 29 06:46:40 1994 UTC (20 years, 3 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.1: +3 -2 lines
Diff to previous 1.1 (colored)

New RCS ID's, take two.  they're more aesthecially pleasant, and use 'NetBSD'

Revision 1.1 / (download) - annotate - [select for diffs], Wed Jun 8 11:42:13 1994 UTC (20 years, 3 months ago) by mycroft
Branch: MAIN

Update to 4.4-Lite fs code, with local changes.

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.




CVSweb <webmaster@jp.NetBSD.org>