The NetBSD Project

CVS log for src/sys/ufs/ffs/ffs_subr.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.53.4.1 / (download) - annotate - [select for diffs], Sat May 13 11:51:14 2023 UTC (10 months, 2 weeks ago) by martin
Branch: netbsd-10
CVS Tags: netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1
Changes since 1.53: +3 -3 lines
Diff to previous 1.53 (colored) next main 1.54 (colored) to selected 1.15.10.5 (colored)

Pull up following revision(s) (requested by chs in ticket #160):

	usr.sbin/makefs/ffs/ffs_alloc.c: revision 1.31
	sbin/tunefs/tunefs.c: revision 1.58
	sbin/fsck_ffs/setup.c: revision 1.105
	sbin/fsck_ffs/pass5.c: revision 1.56
	usr.sbin/makefs/ffs.c: revision 1.74
	usr.sbin/makefs/ffs/mkfs.c: revision 1.42
	usr.sbin/makefs/Makefile: revision 1.40
	sys/ufs/ffs/fs.h: revision 1.71
	sbin/fsdb/fsdb.c: revision 1.54
	sbin/resize_ffs/resize_ffs.c: revision 1.58
	sbin/fsck_ffs/pass4.c: revision 1.29
	usr.sbin/makefs/ffs/ffs_extern.h: revision 1.9
	sbin/newfs/mkfs.c: revision 1.133
	sys/ufs/ffs/ffs_alloc.c: revision 1.172
	sbin/fsck_ffs/pass1b.c: revision 1.24
	usr.sbin/dumpfs/dumpfs.c: revision 1.68
	sys/ufs/ffs/ffs_extern.h: revision 1.88
	usr.sbin/quotacheck/quotacheck.c: revision 1.51
	sys/ufs/ffs/ffs_subr.c: revision 1.54
	sbin/fsck_ffs/main.c: revision 1.91
	sbin/fsck_ffs/pass1.c: revision 1.63

ufs: fixed signed/unsigned bugs affecting large file systems

Apply these commits from FreeBSD:
  commit e870d1e6f97cc73308c11c40684b775bcfa906a2
  Author: Kirk McKusick <mckusick@FreeBSD.org>
  Date:   Wed Feb 10 20:10:35 2010 +0000
    This fix corrects a problem in the file system that treats large
    inode numbers as negative rather than unsigned. For a default
    (16K block) file system, this bug began to show up at a file system
    size above about 16Tb.
    To fully handle this problem, newfs must be updated to ensure that
    it will never create a filesystem with more than 2^32 inodes. That
    patch will be forthcoming soon.
    Reported by: Scott Burns, John Kilburg, Bruce Evans
    Followup by: Jeff Roberson
    PR:          133980
    MFC after:   2 weeks

  commit 81479e688b0f643ffacd3f335b4b4bba460b769d
  Author: Kirk McKusick <mckusick@FreeBSD.org>
  Date:   Thu Feb 11 18:14:53 2010 +0000
    One last pass to get all the unsigned comparisons correct.

In additional to the changes from FreeBSD, this commit includes quite a few
related changes to appease -Wsign-compare.

Revision 1.54 / (download) - annotate - [select for diffs], Sat Jan 7 19:41:30 2023 UTC (14 months, 2 weeks ago) by chs
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.53: +3 -3 lines
Diff to previous 1.53 (colored) to selected 1.15.10.5 (colored)

ufs: fixed signed/unsigned bugs affecting large file systems

Apply these commits from FreeBSD:

  commit e870d1e6f97cc73308c11c40684b775bcfa906a2
  Author: Kirk McKusick <mckusick@FreeBSD.org>
  Date:   Wed Feb 10 20:10:35 2010 +0000

    This fix corrects a problem in the file system that treats large
    inode numbers as negative rather than unsigned. For a default
    (16K block) file system, this bug began to show up at a file system
    size above about 16Tb.

    To fully handle this problem, newfs must be updated to ensure that
    it will never create a filesystem with more than 2^32 inodes. That
    patch will be forthcoming soon.

    Reported by: Scott Burns, John Kilburg, Bruce Evans
    Followup by: Jeff Roberson
    PR:          133980
    MFC after:   2 weeks

  commit 81479e688b0f643ffacd3f335b4b4bba460b769d
  Author: Kirk McKusick <mckusick@FreeBSD.org>
  Date:   Thu Feb 11 18:14:53 2010 +0000

    One last pass to get all the unsigned comparisons correct.


In additional to the changes from FreeBSD, this commit includes quite a few
related changes to appease -Wsign-compare.

Revision 1.53 / (download) - annotate - [select for diffs], Tue May 24 06:28:02 2022 UTC (22 months ago) by andvar
Branch: MAIN
CVS Tags: netbsd-10-base, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored) to selected 1.15.10.5 (colored)

fix various typos in comments, docs and log messages.

Revision 1.51.8.1 / (download) - annotate - [select for diffs], Sat Apr 25 11:24:08 2020 UTC (3 years, 11 months ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.51: +6 -6 lines
Diff to previous 1.51 (colored) next main 1.52 (colored) to selected 1.15.10.5 (colored)

Sync with bouyer-xenpvh-base2 (HEAD)

Revision 1.49.18.2 / (download) - annotate - [select for diffs], Tue Apr 21 18:42:45 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.49.18.1: +6 -6 lines
Diff to previous 1.49.18.1 (colored) to branchpoint 1.49 (colored) next main 1.50 (colored) to selected 1.15.10.5 (colored)

Sync with HEAD

Revision 1.52 / (download) - annotate - [select for diffs], Tue Apr 21 15:04:12 2020 UTC (3 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2
Changes since 1.51: +6 -6 lines
Diff to previous 1.51 (colored) to selected 1.15.10.5 (colored)

use %s/__func__ so that the strings can be shared.

Revision 1.49.18.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:57 2019 UTC (4 years, 9 months ago) by christos
Branch: phil-wifi
Changes since 1.49: +7 -6 lines
Diff to previous 1.49 (colored) to selected 1.15.10.5 (colored)

Sync with HEAD

Revision 1.51 / (download) - annotate - [select for diffs], Tue May 28 03:53:28 2019 UTC (4 years, 10 months ago) by kamil
Branch: MAIN
CVS Tags: phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp, bouyer-xenpvh-base1, bouyer-xenpvh-base, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: bouyer-xenpvh
Changes since 1.50: +4 -4 lines
Diff to previous 1.50 (colored) to selected 1.15.10.5 (colored)

Avoid unportable shift base -1 in ffs_subr.c

Cast the start variable before the modulo opration to unsigned int.

Detected with kUBSan.

Revision 1.49.16.1 / (download) - annotate - [select for diffs], Sat Jul 28 04:38:12 2018 UTC (5 years, 8 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.49: +7 -6 lines
Diff to previous 1.49 (colored) next main 1.50 (colored) to selected 1.15.10.5 (colored)

Sync with HEAD

Revision 1.50 / (download) - annotate - [select for diffs], Wed Jul 4 02:02:15 2018 UTC (5 years, 8 months ago) by kamil
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, isaki-audio2-base, isaki-audio2
Changes since 1.49: +7 -6 lines
Diff to previous 1.49 (colored) to selected 1.15.10.5 (colored)

Avoid Undefined Behavior in ffs_clusteracct()

Change the type of 'bit' variable from int to unsigned int and use unsigned
values consistently.

sys/ufs/ffs/ffs_subr.c:336:10, shift exponent -1 is negative

Detected with Kernel Undefined Behavior Sanitizer.

Reported by <Harry Pantazis>

Revision 1.47.12.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:39:21 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.47.12.1: +3 -1 lines
Diff to previous 1.47.12.1 (colored) to branchpoint 1.47 (colored) next main 1.48 (colored) to selected 1.15.10.5 (colored)

update from HEAD

Revision 1.48.6.1 / (download) - annotate - [select for diffs], Sun May 29 08:44:40 2016 UTC (7 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.48: +5 -3 lines
Diff to previous 1.48 (colored) next main 1.49 (colored) to selected 1.15.10.5 (colored)

Sync with HEAD

Revision 1.49 / (download) - annotate - [select for diffs], Sat May 7 11:59:08 2016 UTC (7 years, 10 months ago) by maxv
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-base, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.48: +5 -3 lines
Diff to previous 1.48 (colored) to selected 1.15.10.5 (colored)

uaf

Revision 1.47.12.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:44 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.47: +2 -4 lines
Diff to previous 1.47 (colored) to selected 1.15.10.5 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.47.2.1 / (download) - annotate - [select for diffs], Thu May 22 11:41:18 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.47: +2 -4 lines
Diff to previous 1.47 (colored) next main 1.48 (colored) to selected 1.15.10.5 (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.47.16.1 / (download) - annotate - [select for diffs], Sun May 18 17:46:21 2014 UTC (9 years, 10 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.47: +2 -4 lines
Diff to previous 1.47 (colored) next main 1.48 (colored) to selected 1.15.10.5 (colored)

sync with head

Revision 1.48 / (download) - annotate - [select for diffs], Sun Oct 20 00:29:10 2013 UTC (10 years, 5 months ago) by htodd
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, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Branch point for: nick-nhusb
Changes since 1.47: +2 -4 lines
Diff to previous 1.47 (colored) to selected 1.15.10.5 (colored)

Definining needswap where needed.

Revision 1.47 / (download) - annotate - [select for diffs], Sun Aug 14 12:37:09 2011 UTC (12 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, 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, khorben-n900, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, agc-symver-base, agc-symver
Branch point for: yamt-pagecache, tls-maxphys, rmind-smpnet
Changes since 1.46: +3 -3 lines
Diff to previous 1.46 (colored) to selected 1.15.10.5 (colored)

fix sign-compare warnings

Revision 1.45.26.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:10:16 2011 UTC (12 years, 9 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.45: +101 -2 lines
Diff to previous 1.45 (colored) next main 1.46 (colored) to selected 1.15.10.5 (colored)

Sync with HEAD.

Revision 1.45.20.1 / (download) - annotate - [select for diffs], Thu Apr 21 01:42:20 2011 UTC (12 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.45: +101 -2 lines
Diff to previous 1.45 (colored) next main 1.46 (colored) to selected 1.15.10.5 (colored)

sync with head

Revision 1.46 / (download) - annotate - [select for diffs], Sun Mar 6 17:08:38 2011 UTC (13 years ago) by bouyer
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Changes since 1.45: +101 -2 lines
Diff to previous 1.45 (colored) to selected 1.15.10.5 (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.45.28.4 / (download) - annotate - [select for diffs], Wed Feb 9 10:52:07 2011 UTC (13 years, 1 month ago) by bouyer
Branch: bouyer-quota2
Changes since 1.45.28.3: +4 -2 lines
Diff to previous 1.45.28.3 (colored) to branchpoint 1.45 (colored) next main 1.46 (colored) to selected 1.15.10.5 (colored)

Make it build without FFS_EI

Revision 1.45.28.3 / (download) - annotate - [select for diffs], Tue Feb 8 21:29:45 2011 UTC (13 years, 1 month ago) by bouyer
Branch: bouyer-quota2
Changes since 1.45.28.2: +5 -2 lines
Diff to previous 1.45.28.2 (colored) to branchpoint 1.45 (colored) to selected 1.15.10.5 (colored)

for !_KERNEL case, always define FFS_EI.
Required for makefs, and maybe resize_ffs (it's not clear if
resize_ffs supports swapped byte order or not - swapped endian tests
are expected to fail but actually succeed :)

Revision 1.45.28.2 / (download) - annotate - [select for diffs], Tue Feb 8 16:20:05 2011 UTC (13 years, 1 month ago) by bouyer
Branch: bouyer-quota2
Changes since 1.45.28.1: +2 -6 lines
Diff to previous 1.45.28.1 (colored) to branchpoint 1.45 (colored) to selected 1.15.10.5 (colored)

Sync with HEAD

Revision 1.45.28.1 / (download) - annotate - [select for diffs], Thu Jan 20 14:25:02 2011 UTC (13 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.45: +100 -2 lines
Diff to previous 1.45 (colored) to selected 1.15.10.5 (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.44.44.1 / (download) - annotate - [select for diffs], Mon May 4 08:14:37 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.44: +22 -2 lines
Diff to previous 1.44 (colored) next main 1.45 (colored) to selected 1.15.10.5 (colored)

sync with head.

Revision 1.44.46.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:32:05 2008 UTC (15 years, 9 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.44: +22 -2 lines
Diff to previous 1.44 (colored) next main 1.45 (colored) to selected 1.15.10.5 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.44.40.1 / (download) - annotate - [select for diffs], Thu Jun 5 19:14:37 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.44: +22 -2 lines
Diff to previous 1.44 (colored) next main 1.45 (colored) to selected 1.15.10.5 (colored)

Sync with HEAD.

Also fix build.

Revision 1.44.42.1 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:53 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-pf42
Changes since 1.44: +22 -2 lines
Diff to previous 1.44 (colored) next main 1.45 (colored) to selected 1.15.10.5 (colored)

sync with head

Revision 1.45 / (download) - annotate - [select for diffs], Tue Jun 3 09:47:49 2008 UTC (15 years, 9 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, yamt-nfs-mp-base11, yamt-nfs-mp-base10, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, 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-5-RELEASE, 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-premerge-20091211, 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-premerge-20101231, matt-mips64-base2, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, jruoho-x86intr-base, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, bouyer-quota2-nbase, bouyer-quota2-base, ad-audiomp2-base, ad-audiomp2
Branch point for: rmind-uvmplock, jruoho-x86intr, bouyer-quota2
Changes since 1.44: +22 -2 lines
Diff to previous 1.44 (colored) to selected 1.15.10.5 (colored)

ufs/ffs: replace calls to getblk() with ffs_getblk().  Now all buffers
have been run through copy-on-write and async mounts work again.

Fixes PR kern/38820

Reviewed by: YAMAMOTO Takashi <yamt@netbsd.org>

Revision 1.33.4.2 / (download) - annotate - [select for diffs], Mon Feb 26 09:12:19 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.33.4.1: +5 -7 lines
Diff to previous 1.33.4.1 (colored) to branchpoint 1.33 (colored) next main 1.34 (colored) to selected 1.15.10.5 (colored)

sync with head.

Revision 1.41.18.2 / (download) - annotate - [select for diffs], Thu Feb 1 08:48:48 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.41.18.1: +5 -7 lines
Diff to previous 1.41.18.1 (colored) to branchpoint 1.41 (colored) next main 1.42 (colored) to selected 1.15.10.5 (colored)

Sync with head.

Revision 1.44 / (download) - annotate - [select for diffs], Mon Jan 29 01:52:46 2007 UTC (17 years, 2 months ago) by hubertf
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-pf42-baseX, yamt-pf42-base2, yamt-pf42-base, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, yamt-idlelwp-base8, yamt-idlelwp, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, vmlocking, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, reinoud-bufcleanup, post-newlock2-merge, nick-net80211-sync-base, nick-net80211-sync, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, newlock2-nbase, newlock2-base, mjf-ufs-trans-base, mjf-ufs-trans, mjf-devfs-base, mjf-devfs, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64, ad-socklock-base1, ad-audiomp-base, ad-audiomp
Branch point for: yamt-pf42, yamt-nfs-mp, wrstuden-revivesa, mjf-devfs2
Changes since 1.43: +5 -7 lines
Diff to previous 1.43 (colored) to selected 1.15.10.5 (colored)

Remove more duplicate headers.
Patch by Slava Semushin <slava.semushin@gmail.com>

Again, this was tested by comparing obj files from a pristine and a patched
source tree against an i386/ALL kernel, and also for src/sbin/fsck_ffs,
src/sbin/fsdb and src/usr.sbin/makefs. Only changes in assert() line numbers
were detected in 'objdump -d' output.

Revision 1.41.20.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:19:32 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.41.20.1: +3 -3 lines
Diff to previous 1.41.20.1 (colored) to branchpoint 1.41 (colored) next main 1.42 (colored) to selected 1.15.10.5 (colored)

sync with head.

Revision 1.41.18.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:49 2006 UTC (17 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored) to selected 1.15.10.5 (colored)

Sync with head.

Revision 1.43 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:53 2006 UTC (17 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, 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, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (colored) to selected 1.15.10.5 (colored)

__unused removal on arguments; approved by core.

Revision 1.41.20.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:50 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored) to selected 1.15.10.5 (colored)

sync with head

Revision 1.42 / (download) - annotate - [select for diffs], Thu Oct 12 01:32:51 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored) to selected 1.15.10.5 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.33.4.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:12:31 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.33: +10 -107 lines
Diff to previous 1.33 (colored) to selected 1.15.10.5 (colored)

sync with head.

Revision 1.40.2.1 / (download) - annotate - [select for diffs], Sun Jan 15 10:03:05 2006 UTC (18 years, 2 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.40: +2 -33 lines
Diff to previous 1.40 (colored) next main 1.41 (colored) to selected 1.15.10.5 (colored)

sync with head.

Revision 1.41 / (download) - annotate - [select for diffs], Sat Jan 14 17:41:16 2006 UTC (18 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-splraiseipl-base, 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, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, rpaulo-netinet-merge-pcb-base, rpaulo-netinet-merge-pcb, peter-altq-base, peter-altq, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.40: +2 -33 lines
Diff to previous 1.40 (colored) to selected 1.15.10.5 (colored)

- unify ffs_blkatoff and lfs_blkatoff.
- remove ufs_ops::uo_blkatoff.
- add directory read-ahead code.  (disabled for now.)

Revision 1.40 / (download) - annotate - [select for diffs], Tue Dec 27 04:06:46 2005 UTC (18 years, 3 months ago) by chs
Branch: MAIN
Branch point for: yamt-uio_vmspace
Changes since 1.39: +2 -39 lines
Diff to previous 1.39 (colored) to selected 1.15.10.5 (colored)

changes for making DIAGNOSTIC not change the kernel ABI:
 - for structure fields that are conditionally present,
   make those fields always present.
 - for functions which are conditionally inline, make them never inline.
 - remove some other functions which are conditionally defined but
   don't actually do anything anymore.
 - make a lock-debugging function conditional on only LOCKDEBUG.

as discussed on tech-kern some time back.

Revision 1.39 / (download) - annotate - [select for diffs], Sun Dec 11 12:25:25 2005 UTC (18 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored) to selected 1.15.10.5 (colored)

merge ktrace-lwp.

Revision 1.28.2.5 / (download) - annotate - [select for diffs], Thu Nov 10 14:12:32 2005 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.28.2.4: +19 -48 lines
Diff to previous 1.28.2.4 (colored) next main 1.29 (colored) to selected 1.15.10.5 (colored)

Sync with HEAD. Here we go again...

Revision 1.38 / (download) - annotate - [select for diffs], Wed Nov 2 12:39:00 2005 UTC (18 years, 4 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, ktrace-lwp-base
Changes since 1.37: +10 -16 lines
Diff to previous 1.37 (colored) to selected 1.15.10.5 (colored)

merge yamt-vop branch.  remove following VOPs.

	VOP_BLKATOFF
	VOP_VALLOC
	VOP_BALLOC
	VOP_REALLOCBLKS
	VOP_VFREE
	VOP_TRUNCATE
	VOP_UPDATE

Revision 1.37.2.1 / (download) - annotate - [select for diffs], Thu Oct 20 03:00:30 2005 UTC (18 years, 5 months ago) by yamt
Branch: yamt-vop
Changes since 1.37: +10 -16 lines
Diff to previous 1.37 (colored) next main 1.38 (colored) to selected 1.15.10.5 (colored)

adapt ufs.

Revision 1.37 / (download) - annotate - [select for diffs], Mon Sep 12 20:09:59 2005 UTC (18 years, 6 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, thorpej-vnode-attr-base, thorpej-vnode-attr
Branch point for: yamt-vop
Changes since 1.36: +2 -35 lines
Diff to previous 1.36 (colored) to selected 1.15.10.5 (colored)

move the new ffs_itimes() to a berr place -- ffs_subr.c is shared with
userland

Revision 1.36 / (download) - annotate - [select for diffs], Mon Sep 12 16:24:41 2005 UTC (18 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.35: +35 -2 lines
Diff to previous 1.35 (colored) to selected 1.15.10.5 (colored)

Use nanotime() to update the time fields in filesystems. Convert the code
from macros to real functions. Original patch and review from chuq.
Note: ext2fs only keeps seconds in the on-disk inode, and msdosfs does not
have enough precision for all fields, so this is not very useful for those
two.

Revision 1.35 / (download) - annotate - [select for diffs], Tue Aug 30 22:01:12 2005 UTC (18 years, 7 months ago) by xtraeme
Branch: MAIN
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (colored) to selected 1.15.10.5 (colored)

* Remove __P()
* Use ANSI function declarations on ext2fs and mfs

Revision 1.34 / (download) - annotate - [select for diffs], Fri Jul 15 05:01:16 2005 UTC (18 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.33: +11 -34 lines
Diff to previous 1.33 (colored) to selected 1.15.10.5 (colored)

Use ANSI function decls.

Revision 1.32.8.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:39 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.32: +4 -4 lines
Diff to previous 1.32 (colored) next main 1.33 (colored) to selected 1.15.10.5 (colored)

sync with -current

Revision 1.32.10.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:37:03 2005 UTC (19 years ago) by yamt
Branch: yamt-km
Changes since 1.32: +4 -4 lines
Diff to previous 1.32 (colored) next main 1.33 (colored) to selected 1.15.10.5 (colored)

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

Revision 1.28.2.4 / (download) - annotate - [select for diffs], Fri Mar 4 16:54:46 2005 UTC (19 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.28.2.3: +4 -4 lines
Diff to previous 1.28.2.3 (colored) to selected 1.15.10.5 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.33 / (download) - annotate - [select for diffs], Sat Feb 26 22:32:20 2005 UTC (19 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, 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, kent-audio2-base
Branch point for: yamt-lazymbuf
Changes since 1.32: +4 -4 lines
Diff to previous 1.32 (colored) to selected 1.15.10.5 (colored)

nuke trailing whitespace

Revision 1.28.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:39:09 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.28.2.2: +2 -2 lines
Diff to previous 1.28.2.2 (colored) to selected 1.15.10.5 (colored)

Fix the sync with head I botched.

Revision 1.28.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:56:52 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.28.2.1: +0 -0 lines
Diff to previous 1.28.2.1 (colored) to selected 1.15.10.5 (colored)

Sync with HEAD.

Revision 1.28.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:56:50 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.28: +15 -13 lines
Diff to previous 1.28 (colored) to selected 1.15.10.5 (colored)

Sync with HEAD

Revision 1.32 / (download) - annotate - [select for diffs], Tue Dec 30 12:33:24 2003 UTC (20 years, 3 months ago) by pk
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, 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, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.31: +6 -2 lines
Diff to previous 1.31 (colored) to selected 1.15.10.5 (colored)

Replace the traditional buffer memory management -- based on fixed per buffer
virtual memory reservation and a private pool of memory pages -- by a scheme
based on memory pools.

This allows better utilization of memory because buffers can now be allocated
with a granularity finer than the system's native page size (useful for
filesystems with e.g. 1k or 2k fragment sizes).  It also avoids fragmentation
of virtual to physical memory mappings (due to the former fixed virtual
address reservation) resulting in better utilization of MMU resources on some
platforms.  Finally, the scheme is more flexible by allowing run-time decisions
on the amount of memory to be used for buffers.

On the other hand, the effectiveness of the LRU queue for buffer recycling
may be somewhat reduced compared to the traditional method since, due to the
nature of the pool based memory allocation, the actual least recently used
buffer may release its memory to a pool different from the one needed by a
newly allocated buffer. However, this effect will kick in only if the
system is under memory pressure.

Revision 1.31 / (download) - annotate - [select for diffs], Tue Dec 2 04:40:43 2003 UTC (20 years, 4 months ago) by dbj
Branch: MAIN
Changes since 1.30: +7 -3 lines
Diff to previous 1.30 (colored) to selected 1.15.10.5 (colored)

clarify comments, especially since ffs_isfreeblock is non-intuitive:
  ffs_isblock:
    check if a block is available
      returns true if all the correponding bits in the free map are 1
     returns false if any corresponding bit in the free map is 0
  ffs_isfreeblock:
    check if a block is completely allocated
      returns true if all the corresponding bits in the free map are 0
      returns false if any corresponding bit in the free map is 1

Revision 1.30 / (download) - annotate - [select for diffs], Mon Oct 27 00:12:42 2003 UTC (20 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.29: +5 -7 lines
Diff to previous 1.29 (colored) to selected 1.15.10.5 (colored)

Overhaul how `build.sh tools' are used:

    *	Rename "config.h" to "nbtool_config.h" and
	HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
	This makes in more obvious in the source when we're using
	tools/compat/config.h versus "standard autoconf" config.h

    *	Consistently move the inclusion of nbtool_config.h to before
    	<sys/cdefs.h> so that the former can provide __RCSID() (et al),
    	and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
	#if HAVE_NBTOOL_CONFIG_H
	#include "nbtool_config.h"
	#endif
to the top of the source files (for the general case).

Revision 1.29 / (download) - annotate - [select for diffs], Thu Aug 7 16:34:30 2003 UTC (20 years, 7 months ago) by agc
Branch: MAIN
Changes since 1.28: +3 -7 lines
Diff to previous 1.28 (colored) to selected 1.15.10.5 (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.28 / (download) - annotate - [select for diffs], Wed Apr 2 10:39:38 2003 UTC (21 years ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.27: +58 -6 lines
Diff to previous 1.27 (colored) to selected 1.15.10.5 (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.27 / (download) - annotate - [select for diffs], Sat Jan 25 18:12:32 2003 UTC (21 years, 2 months ago) by tron
Branch: MAIN
Changes since 1.26: +5 -3 lines
Diff to previous 1.26 (colored) to selected 1.15.10.5 (colored)

Use PRId64 instead of hard coding "%lld" to fix build problems under
LP64 ports.

Revision 1.26 / (download) - annotate - [select for diffs], Sat Jan 25 12:53:45 2003 UTC (21 years, 2 months ago) by tron
Branch: MAIN
Changes since 1.25: +4 -4 lines
Diff to previous 1.25 (colored) to selected 1.15.10.5 (colored)

Fix printf() format strings problems caused by "daddr_t" change.

Revision 1.25 / (download) - annotate - [select for diffs], Fri Jan 24 21:55:23 2003 UTC (21 years, 2 months ago) by fvdl
Branch: MAIN
Changes since 1.24: +8 -8 lines
Diff to previous 1.24 (colored) to selected 1.15.10.5 (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.15.6.7 / (download) - annotate - [select for diffs], Wed Dec 11 06:51:42 2002 UTC (21 years, 3 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.15.6.6: +2 -2 lines
Diff to previous 1.15.6.6 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored) to selected 1.15.10.5 (colored)

Sync with HEAD.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Dec 1 00:12:09 2002 UTC (21 years, 4 months ago) by matt
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.23: +4 -4 lines
Diff to previous 1.23 (colored) to selected 1.15.10.5 (colored)

Add multiple inclusion protection for headers.  Fix mismatched
variable declarations (missing const's) as needed.

Revision 1.15.10.5 / (download) - annotate - [selected], Fri Sep 6 08:50:12 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.15.10.4: +3 -3 lines
Diff to previous 1.15.10.4 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored)

sync kqueue branch with HEAD

Revision 1.15.6.6 / (download) - annotate - [select for diffs], Thu Aug 1 02:47:03 2002 UTC (21 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.15.6.5: +1 -1 lines
Diff to previous 1.15.6.5 (colored) to branchpoint 1.15 (colored) to selected 1.15.10.5 (colored)

Catch up to -current.

Revision 1.22.2.1 / (download) - annotate - [select for diffs], Mon Jul 15 10:37:23 2002 UTC (21 years, 8 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored) next main 1.23 (colored) to selected 1.15.10.5 (colored)

catch up with -current.

Revision 1.23 / (download) - annotate - [select for diffs], Sat Jul 6 15:39:07 2002 UTC (21 years, 8 months ago) by fredette
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gehenna-devsw-base
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored) to selected 1.15.10.5 (colored)

Fixed a printf argument type.

Revision 1.15.10.4 / (download) - annotate - [select for diffs], Sun Jun 23 17:52:08 2002 UTC (21 years, 9 months ago) by jdolecek
Branch: kqueue
Changes since 1.15.10.3: +31 -28 lines
Diff to previous 1.15.10.3 (colored) to branchpoint 1.15 (colored) to selected 1.15.10.5 (colored)

catch up with -current on kqueue branch

Revision 1.15.6.5 / (download) - annotate - [select for diffs], Wed Apr 17 00:06:30 2002 UTC (21 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.15.6.4: +30 -27 lines
Diff to previous 1.15.6.4 (colored) to branchpoint 1.15 (colored) to selected 1.15.10.5 (colored)

Catch up to -current.

Revision 1.22 / (download) - annotate - [select for diffs], Wed Apr 10 08:05:13 2002 UTC (21 years, 11 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
Branch point for: gehenna-devsw
Changes since 1.21: +31 -28 lines
Diff to previous 1.21 (colored) to selected 1.15.10.5 (colored)

Use blkstofrags() and fragstoblks().  Use &(NBBY-1) rather than %NBBY.
Switch off of fs_fragshift rather than fs_frag (generates better jump tables).

Revision 1.15.6.4 / (download) - annotate - [select for diffs], Thu Feb 28 04:15:27 2002 UTC (22 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.15.6.3: +8 -2 lines
Diff to previous 1.15.6.3 (colored) to branchpoint 1.15 (colored) to selected 1.15.10.5 (colored)

Catch up to -current.

Revision 1.15.10.3 / (download) - annotate - [select for diffs], Mon Feb 11 20:10:47 2002 UTC (22 years, 1 month ago) by jdolecek
Branch: kqueue
Changes since 1.15.10.2: +19 -11 lines
Diff to previous 1.15.10.2 (colored) to branchpoint 1.15 (colored) to selected 1.15.10.5 (colored)

Sync w/ -current.

Revision 1.21 / (download) - annotate - [select for diffs], Thu Jan 31 19:19:22 2002 UTC (22 years, 2 months ago) by tv
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base, eeh-devprop-base, eeh-devprop
Changes since 1.20: +8 -2 lines
Diff to previous 1.20 (colored) to selected 1.15.10.5 (colored)

These sources are pulled into makefs(8), so we need config.h and protection
for __KERNEL_RCSID().

Revision 1.15.6.3 / (download) - annotate - [select for diffs], Fri Jan 11 23:39:52 2002 UTC (22 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.15.6.2: +13 -11 lines
Diff to previous 1.15.6.2 (colored) to branchpoint 1.15 (colored) to selected 1.15.10.5 (colored)

More catchup.

Revision 1.15.10.2 / (download) - annotate - [select for diffs], Thu Jan 10 20:05:04 2002 UTC (22 years, 2 months ago) by thorpej
Branch: kqueue
Changes since 1.15.10.1: +9 -7 lines
Diff to previous 1.15.10.1 (colored) to branchpoint 1.15 (colored) to selected 1.15.10.5 (colored)

Sync kqueue branch with -current.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Jan 9 23:51:00 2002 UTC (22 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.19: +13 -11 lines
Diff to previous 1.19 (colored) to selected 1.15.10.5 (colored)

Only pull in <sys/systm.h> #ifdef _KERNEL, since it's a kernel only header.
In the ! _KERNEL case, provide own prototype for panic() instead.

Revision 1.15.6.2 / (download) - annotate - [select for diffs], Wed Nov 14 19:18:56 2001 UTC (22 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.15.6.1: +9 -7 lines
Diff to previous 1.15.6.1 (colored) to branchpoint 1.15 (colored) to selected 1.15.10.5 (colored)

Catch up to -current.

Revision 1.16.4.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:19:46 2001 UTC (22 years, 4 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.16: +9 -7 lines
Diff to previous 1.16 (colored) next main 1.17 (colored) to selected 1.15.10.5 (colored)

Sync the thorpej-mips-cache branch with -current.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Oct 30 01:11:54 2001 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.18: +4 -1 lines
Diff to previous 1.18 (colored) to selected 1.15.10.5 (colored)

add __KERNEL_RCSID()

Revision 1.18 / (download) - annotate - [select for diffs], Fri Oct 26 06:37:55 2001 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.17: +6 -6 lines
Diff to previous 1.17 (colored) to selected 1.15.10.5 (colored)

- pull in ufsmount.h after inode.h, because the latter pulls in
  quota.h which the former needs, and this makes the usage consistent
  with other files anyway
- expand the details in a few panic strings

Revision 1.17 / (download) - annotate - [select for diffs], Fri Oct 26 05:56:09 2001 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.16: +1 -2 lines
Diff to previous 1.16 (colored) to selected 1.15.10.5 (colored)

remove #include <ufs/ufs/quota.h> where it was just to appease
<ufs/ufs/inode.h>, since the latter now includes the former.  leave the former
in source that obviously uses specific bits of it (for completeness.)

Revision 1.15.10.1 / (download) - annotate - [select for diffs], Sat Aug 25 06:17:17 2001 UTC (22 years, 7 months ago) by thorpej
Branch: kqueue
Changes since 1.15: +5 -5 lines
Diff to previous 1.15 (colored) to selected 1.15.10.5 (colored)

Merge Aug 24 -current into the kqueue branch.

Revision 1.15.6.1 / (download) - annotate - [select for diffs], Fri Aug 24 00:13:18 2001 UTC (22 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.15: +5 -5 lines
Diff to previous 1.15 (colored) to selected 1.15.10.5 (colored)

Catch up with -current.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Aug 9 08:15:26 2001 UTC (22 years, 7 months ago) by lukem
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-mips-cache
Changes since 1.15: +5 -5 lines
Diff to previous 1.15 (colored) to selected 1.15.10.5 (colored)

be consistent and use "u_char" instead of "unsigned char"

Revision 1.13.14.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:11:46 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.13: +30 -6 lines
Diff to previous 1.13 (colored) next main 1.14 (colored) to selected 1.15.10.5 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.15 / (download) - annotate - [select for diffs], Thu Mar 30 12:41:12 2000 UTC (24 years ago) by augustss
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, perseant-lfsv2-base, perseant-lfsv2, netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: nathanw_sa, kqueue
Changes since 1.14: +6 -6 lines
Diff to previous 1.14 (colored) to selected 1.15.10.5 (colored)

Remove register declarations.

Revision 1.13.20.2 / (download) - annotate - [select for diffs], Mon Dec 27 18:36:37 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.13.20.1: +25 -1 lines
Diff to previous 1.13.20.1 (colored) to branchpoint 1.13 (colored) next main 1.14 (colored) to selected 1.15.10.5 (colored)

Pull up to last week's -current.

Revision 1.13.20.1 / (download) - annotate - [select for diffs], Tue Dec 21 23:20:07 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.13: +6 -4 lines
Diff to previous 1.13 (colored) to selected 1.15.10.5 (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.14 / (download) - annotate - [select for diffs], Mon Nov 15 18:49:13 1999 UTC (24 years, 4 months ago) by fvdl
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, chs-ubc2-newbase
Changes since 1.13: +25 -1 lines
Diff to previous 1.13 (colored) to selected 1.15.10.5 (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.13.16.1 / (download) - annotate - [select for diffs], Tue Oct 19 12:50:37 1999 UTC (24 years, 5 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.13: +25 -1 lines
Diff to previous 1.13 (colored) next main 1.14 (colored) to selected 1.15.10.5 (colored)

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

Revision 1.13 / (download) - annotate - [select for diffs], Tue Jul 28 17:30:01 1998 UTC (25 years, 8 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.12: +5 -1 lines
Diff to previous 1.12 (colored) to selected 1.15.10.5 (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.12 / (download) - annotate - [select for diffs], Sat Jun 13 16:26:22 1998 UTC (25 years, 9 months ago) by kleink
Branch: MAIN
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored) to selected 1.15.10.5 (colored)

KNF, mostly of FFS_EI changes.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Mar 18 15:57:28 1998 UTC (26 years ago) by bouyer
Branch: MAIN
Changes since 1.10: +11 -3 lines
Diff to previous 1.10 (colored) to selected 1.15.10.5 (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.10 / (download) - annotate - [select for diffs], Sun Mar 1 02:23:14 1998 UTC (26 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.9: +12 -7 lines
Diff to previous 1.9 (colored) to selected 1.15.10.5 (colored)

Merge with Lite2 + local changes

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:14:04 1998 UTC (26 years, 1 month ago) by fvdl
Branch: netbsd, CSRG
CVS Tags: lite-2
Changes since 1.1.1.1: +14 -10 lines
Diff to previous 1.1.1.1 (colored) to selected 1.15.10.5 (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 (26 years, 1 month 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) to selected 1.15.10.5 (colored)

Import 4.4BSD-Lite for reference

Revision 1.9 / (download) - annotate - [select for diffs], Sat Oct 12 21:58:45 1996 UTC (27 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, thorpej-setroot, 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, mrg-vm-swap, marc-pcmcia-bp, marc-pcmcia-base, marc-pcmcia, is-newarp-before-merge, is-newarp-base, is-newarp, bouyer-scsipi
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored) to selected 1.15.10.5 (colored)

revert previous kprintf changes

Revision 1.8 / (download) - annotate - [select for diffs], Thu Oct 10 17:21:17 1996 UTC (27 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.7: +4 -4 lines
Diff to previous 1.7 (colored) to selected 1.15.10.5 (colored)

printf -> kprintf, sprintf -> ksprintf

Revision 1.7 / (download) - annotate - [select for diffs], Fri Sep 20 22:14:59 1996 UTC (27 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored) to selected 1.15.10.5 (colored)

Make this compile cleanly from userland (fsck_ffs).

Revision 1.6 / (download) - annotate - [select for diffs], Sun Mar 17 02:16:23 1996 UTC (28 years ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored) to selected 1.15.10.5 (colored)

Fix printf format strings

Revision 1.5 / (download) - annotate - [select for diffs], Fri Feb 9 22:22:24 1996 UTC (28 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.4: +6 -5 lines
Diff to previous 1.4 (colored) to selected 1.15.10.5 (colored)

ffs prototypes

Revision 1.4 / (download) - annotate - [select for diffs], Tue Mar 28 20:01:44 1995 UTC (29 years ago) by jtc
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored) to selected 1.15.10.5 (colored)

KERNEL -> _KERNEL

Revision 1.3 / (download) - annotate - [select for diffs], Thu Oct 20 04:20:58 1994 UTC (29 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored) to selected 1.15.10.5 (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:34 1994 UTC (29 years, 9 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) to selected 1.15.10.5 (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:06 1994 UTC (29 years, 9 months ago) by mycroft
Branch: MAIN
Diff to selected 1.15.10.5 (colored)

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>