The NetBSD Project

CVS log for src/sys/ufs/ext2fs/ext2fs_inode.c

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

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.91 / (download) - annotate - [select for diffs], Sat Aug 26 05:22:50 2023 UTC (6 months, 3 weeks ago) by riastradh
Branch: MAIN
CVS Tags: triaxx-drm, thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.90: +3 -3 lines
Diff to previous 1.90 (colored)

ext2fs: Nix trailing whitespace.

Revision 1.90 / (download) - annotate - [select for diffs], Tue Aug 17 22:00:33 2021 UTC (2 years, 7 months ago) by andvar
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.89: +3 -3 lines
Diff to previous 1.89 (colored)

fix multiplei repetitive typos in comments, messages and documentation. mainly because copy paste code big amount of files are affected.

Revision 1.89 / (download) - annotate - [select for diffs], Thu Apr 23 21:47:08 2020 UTC (3 years, 10 months ago) by ad
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, 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.88: +3 -3 lines
Diff to previous 1.88 (colored)

PR kern/54759 (vm.ubc_direct deadlock when read()/write() into mapping of itself)

- Add new flag UBC_ISMAPPED which tells ubc_uiomove() the object is mmap()ed
  somewhere.  Use it to decide whether to do direct-mapped copy, rather than
  poking around directly in the vnode in ubc_uiomove(), which is ugly and
  doesn't work for tmpfs.  It would be nicer to contain all this in UVM but
  the filesystem provides the needed locking here (VV_MAPPED) and to
  reinvent that would suck more.

- Rename UBC_UNMAP_FLAG() to UBC_VNODE_FLAGS().  Pass in UBC_ISMAPPED where
  appropriate.

Revision 1.88 / (download) - annotate - [select for diffs], Fri May 26 14:34:20 2017 UTC (6 years, 9 months ago) by riastradh
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, 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, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, 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, 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, isaki-audio2-base, isaki-audio2, 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.87: +2 -6 lines
Diff to previous 1.87 (colored)

Eliminate crusty debugging sludge.

We have a mostly sane vnode lifecycle now.  If this needs debugging,
it should be done once at the call site of VOP_RECLAIM.

Revision 1.87 / (download) - annotate - [select for diffs], Tue Apr 11 14:25:01 2017 UTC (6 years, 11 months ago) by riastradh
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, bouyer-socketcan-base1
Changes since 1.86: +4 -4 lines
Diff to previous 1.86 (colored)

Make VOP_INACTIVE preserve vnode lock on return.

Discussed on tech-kern:
https://mail-index.netbsd.org/tech-kern/2017/04/01/msg021751.html

Ride 7.99.68, a bumpy bus of incremental vfs improvements!

Revision 1.86 / (download) - annotate - [select for diffs], Sun Aug 14 11:44:54 2016 UTC (7 years, 7 months ago) by jdolecek
Branch: MAIN
CVS Tags: pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.85: +6 -6 lines
Diff to previous 1.85 (colored)

switch code to use the EXT2_HAS_{COMPAT|ROCOMPAT|INCOMPAT}_FEATURE() macros instead of open coding the checks

Revision 1.85 / (download) - annotate - [select for diffs], Sat Aug 13 07:40:10 2016 UTC (7 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.84: +20 -20 lines
Diff to previous 1.84 (colored)

KNF, no functional changes...

Revision 1.84 / (download) - annotate - [select for diffs], Thu Aug 4 17:43:48 2016 UTC (7 years, 7 months ago) by jdolecek
Branch: MAIN
CVS Tags: pgoyette-localcount-20160806
Changes since 1.83: +4 -4 lines
Diff to previous 1.83 (colored)

rename struct ext2fs_dinode attribute e2di_dacl to correct
e2di_size_high; even Linux ext2 filesystem code actually uses it
unconditionally this way and ext4 code finally also calls it that way
in their struct definition too; if there was any trace of this for other
purpose it's long gone

Revision 1.83 / (download) - annotate - [select for diffs], Wed Aug 3 21:53:02 2016 UTC (7 years, 7 months ago) by jdolecek
Branch: MAIN
Changes since 1.82: +3 -3 lines
Diff to previous 1.82 (colored)

support arbitrary ext3/ext4 inode size, add all the new ext4 fields ext2fs_dinode, and add support for loading the extra inode data

Revision 1.82 / (download) - annotate - [select for diffs], Sat Mar 28 19:24:04 2015 UTC (8 years, 11 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160726, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, jaromird-ext3
Branch point for: pgoyette-localcount
Changes since 1.81: +3 -3 lines
Diff to previous 1.81 (colored)

Remove the 'cred' argument from bread(). Remove a now unused var in
ffs_snapshot.c. Update the man page accordingly.

ok hannken@

Revision 1.81 / (download) - annotate - [select for diffs], Sun Jun 23 07:28:37 2013 UTC (10 years, 8 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, 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.80: +3 -3 lines
Diff to previous 1.80 (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.80 / (download) - annotate - [select for diffs], Sun Jun 23 02:06:05 2013 UTC (10 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.79: +10 -10 lines
Diff to previous 1.79 (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.79 / (download) - annotate - [select for diffs], Wed Jun 19 17:51:26 2013 UTC (10 years, 9 months ago) by dholland
Branch: MAIN
Changes since 1.78: +10 -10 lines
Diff to previous 1.78 (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.78 / (download) - annotate - [select for diffs], Tue Jan 22 09:39:15 2013 UTC (11 years, 1 month ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base8, khorben-n900, agc-symver-base, agc-symver
Changes since 1.77: +23 -15 lines
Diff to previous 1.77 (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.77 / (download) - annotate - [select for diffs], Thu Dec 20 08:03:44 2012 UTC (11 years, 3 months ago) by hannken
Branch: MAIN
Changes since 1.76: +2 -3 lines
Diff to previous 1.76 (colored)

Change bread() and breadn() to never return a buffer on
error and modify all callers to not brelse() on error.

Welcome to 6.99.16

PR kern/46282 (6.0_BETA crash: msdosfs_bmap -> pcbmap -> bread -> bio_doread)

Revision 1.76 / (download) - annotate - [select for diffs], Wed Nov 21 23:11:23 2012 UTC (11 years, 3 months ago) by jakllsch
Branch: MAIN
CVS Tags: yamt-pagecache-base7
Changes since 1.75: +54 -4 lines
Diff to previous 1.75 (colored)

Write support for the Ext4 Read-only Compatible Feature "huge_file".

Primarily, this feature extends the inode block count field to 48 bits.
Additionally, this feature allows this field to be represented in file
system block size units rather than DEV_BSIZE units.

Revision 1.75 / (download) - annotate - [select for diffs], Fri Jan 27 19:22:48 2012 UTC (12 years, 1 month ago) by para
Branch: MAIN
CVS Tags: yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, 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-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
Branch point for: tls-maxphys
Changes since 1.74: +5 -5 lines
Diff to previous 1.74 (colored)

converting readdir in ffs ext2fs from malloc(9) to kmem(9)
while there allocate ufs mount structs from kmem(9) too
preceding kmem-vmem-pool-patch

releng@ acknowledged

Revision 1.74 / (download) - annotate - [select for diffs], Thu Jun 16 09:21:03 2011 UTC (12 years, 9 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.73: +4 -3 lines
Diff to previous 1.73 (colored)

Rename uvm_vnp_zerorange(struct vnode *, off_t, size_t) to
ubc_zerorange(struct uvm_object *, off_t, size_t, int) changing
the first argument to an uvm_object and adding a flags argument.

Modify tmpfs_reg_resize() to zero the backing store (aobj) instead
of the vnode.  Ubc_purge() no longer panics when unmounting tmpfs.

Keep uvm_vnp_zerorange() until the next kernel version bump.

Revision 1.73 / (download) - annotate - [select for diffs], Wed Jul 28 11:03:48 2010 UTC (13 years, 7 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, rmind-uvmplock-nbase, rmind-uvmplock-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: cherry-xenmp
Changes since 1.72: +3 -6 lines
Diff to previous 1.72 (colored)

ext2fs,ffs: free on disk inodes in the reclaim routine.
Remove now unneeded vnode flag VI_FREEING.

Welcome to 5.99.38.

Ok: Andrew Doran <ad@netbsd.org>

Revision 1.72 / (download) - annotate - [select for diffs], Thu Jun 24 13:03:18 2010 UTC (13 years, 8 months ago) by hannken
Branch: MAIN
Changes since 1.71: +3 -3 lines
Diff to previous 1.71 (colored)

Clean up vnode lock operations pass 2:

VOP_UNLOCK(vp, flags) -> VOP_UNLOCK(vp): Remove the unneeded flags argument.

Welcome to 5.99.32.

Discussed on tech-kern.

Revision 1.71 / (download) - annotate - [select for diffs], Sun Feb 7 17:12:40 2010 UTC (14 years, 1 month ago) by bouyer
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base1, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.70: +4 -2 lines
Diff to previous 1.70 (colored)

- ufs_balloc_range(): on error, only PG_RELEASED the pages that were
  allocated to extend the file to the new size. Releasing all pages
  may release pages that contains previously-written data not yet flushed
  to disk. Should fix PR kern/35704
- {ffs,lfs,ext2fs}_truncate(): Even if the inode's size is the same as
  the new length, call uvm_vnp_setsize(). *_truncate() may have been
  called by *_write() in the error path (e.g. block allocation failure
  because of quota of file system full), and at this point v_writesize
  has been set to the desired size of the file and not reverted to the
  old size. Not adjusting v_writesize to the real size cause
  genfs_do_io() to write to disk past the real end of the file.

Revision 1.70 / (download) - annotate - [select for diffs], Mon Oct 19 18:41:17 2009 UTC (14 years, 5 months ago) by bouyer
Branch: MAIN
CVS Tags: matt-premerge-20091211, jym-xensuspend-nbase
Changes since 1.69: +2 -7 lines
Diff to previous 1.69 (colored)

Remove closes 3 & 4 from my licence. Lots of thanks to Soren Jacobsen
for the booring work !

Revision 1.69 / (download) - annotate - [select for diffs], Sat Sep 12 11:27:39 2009 UTC (14 years, 6 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8
Changes since 1.68: +7 -7 lines
Diff to previous 1.68 (colored)

Migrate from u_intNN_t to uintNN_t.

Revision 1.68 / (download) - annotate - [select for diffs], Sun Mar 1 15:59:57 2009 UTC (15 years ago) by christos
Branch: MAIN
CVS Tags: yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, jymxensuspend-base, jym-xensuspend-base
Changes since 1.67: +3 -3 lines
Diff to previous 1.67 (colored)

PR/40936: Frederik Sausmikat: ext2fs: add support for inodes > 128 bytes

Revision 1.67 / (download) - annotate - [select for diffs], Wed Dec 17 20:51:38 2008 UTC (15 years, 3 months ago) by cegger
Branch: MAIN
CVS Tags: mjf-devfs2-base
Branch point for: jym-xensuspend
Changes since 1.66: +3 -3 lines
Diff to previous 1.66 (colored)

kill MALLOC and FREE macros.

Revision 1.66 / (download) - annotate - [select for diffs], Fri May 16 09:22:00 2008 UTC (15 years, 10 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, netbsd-5-base, 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, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, hpcarm-cleanup-nbase, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5, matt-nb5-mips64
Changes since 1.65: +3 -3 lines
Diff to previous 1.65 (colored)

Make sure all cached buffers with valid, not yet written data have been
run through copy-on-write.  Call fscow_run() with valid data where possible.

The LP_UFSCOW hack is no longer needed to protect ffs_copyonwrite() against
endless recursion.

- Add a flag B_MODIFY to bread(), breada() and breadn().  If set the caller
  intends to modify the buffer returned.

- Always run copy-on-write on buffers returned from ffs_balloc().

- Add new function ffs_getblk() that gets a buffer, assigns a new blkno,
  may clear the buffer and runs copy-on-write.  Process possible errors
  from getblk() or fscow_run().  Part of PR kern/38664.

Welcome to 4.99.63

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

Revision 1.65 / (download) - annotate - [select for diffs], Thu Mar 27 19:06:52 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base2, yamt-nfs-mp-base
Branch point for: yamt-pf42, yamt-nfs-mp, wrstuden-revivesa
Changes since 1.64: +3 -3 lines
Diff to previous 1.64 (colored)

Make rusage collection per-LWP and collate in the appropriate places.
cloned threads need a little bit more work but the locking needs to
be fixed first.

Revision 1.64 / (download) - annotate - [select for diffs], Wed Jan 9 16:15:23 2008 UTC (16 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1
Branch point for: mjf-devfs2
Changes since 1.63: +9 -5 lines
Diff to previous 1.63 (colored)

Go back to freeing on disk inodes in the inactive routine. It would be
better not to do this, but it rules out potential side effects with softdep.

Revision 1.63 / (download) - annotate - [select for diffs], Wed Jan 2 11:49:08 2008 UTC (16 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: matt-armv6-base
Changes since 1.62: +10 -10 lines
Diff to previous 1.62 (colored)

Merge vmlocking2 to head.

Revision 1.62 / (download) - annotate - [select for diffs], Sat Dec 8 19:29:53 2007 UTC (16 years, 3 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.61: +5 -5 lines
Diff to previous 1.61 (colored)

Remove cn_lwp from struct componentname.  curlwp should be used
from on.  The NDINIT() macro no longer takes the lwp parameter and
associates the credentials of the calling thread with the namei
structure.

Revision 1.61 / (download) - annotate - [select for diffs], Mon Nov 26 19:02:26 2007 UTC (16 years, 3 months ago) by pooka
Branch: MAIN
CVS Tags: vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base
Branch point for: vmlocking2
Changes since 1.60: +3 -5 lines
Diff to previous 1.60 (colored)

Remove the "struct lwp *" argument from all VFS and VOP interfaces.
The general trend is to remove it from all kernel interfaces and
this is a start.  In case the calling lwp is desired, curlwp should
be used.

quick consensus on tech-kern

Revision 1.60 / (download) - annotate - [select for diffs], Mon Oct 8 18:01:27 2007 UTC (16 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, vmlocking-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs
Changes since 1.59: +5 -6 lines
Diff to previous 1.59 (colored)

Merge ffs locking & brelse changes from the vmlocking branch.

Revision 1.59 / (download) - annotate - [select for diffs], Tue Jun 5 12:31:33 2007 UTC (16 years, 9 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-x86pmap-base2, yamt-x86pmap-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: yamt-x86pmap, matt-armv6, jmcneill-pm
Changes since 1.58: +3 -2 lines
Diff to previous 1.58 (colored)

improve post-ubc file overwrite performance in common cases.
ie. when it's safe, actually overwrite blocks rather than doing
read-modify-write.

also fixes PR/33152 and PR/36303.

Revision 1.58 / (download) - annotate - [select for diffs], Sat Apr 7 14:21:52 2007 UTC (16 years, 11 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic
Changes since 1.57: +2 -7 lines
Diff to previous 1.57 (colored)

Remove calls to now obsolete vn_start_write() and vn_finished_write().

Revision 1.57 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:43 2007 UTC (17 years ago) by christos
Branch: MAIN
CVS Tags: reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.56: +9 -9 lines
Diff to previous 1.56 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.56 / (download) - annotate - [select for diffs], Sat Dec 9 22:07:48 2006 UTC (17 years, 3 months ago) by chs
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, post-newlock2-merge, newlock2-nbase, newlock2-base, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.55: +3 -3 lines
Diff to previous 1.55 (colored)

several ext2fs fixes provided by Barry Bouwsma:
 - set ip->i_e2fs_dtime to time_second, not time_uptime.
 - don't allow ipref to go negative
 - fs->e2fs.e2fs_icount is a valid inode number, allow it.

Revision 1.55 / (download) - annotate - [select for diffs], Wed Jun 7 22:34:18 2006 UTC (17 years, 9 months ago) by kardel
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, rpaulo-netinet-merge-pcb-base, netbsd-4-base, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2, netbsd-4
Changes since 1.54: +3 -5 lines
Diff to previous 1.54 (colored)

merge FreeBSD timecounters from branch simonb-timecounters
- struct timeval time is gone
  time.tv_sec -> time_second
- struct timeval mono_time is gone
  mono_time.tv_sec -> time_uptime
- access to time via
	{get,}{micro,nano,bin}time()
	get* versions are fast but less precise
- support NTP nanokernel implementation (NTP API 4)
- further reading:
  Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf
  NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html

Revision 1.54 / (download) - annotate - [select for diffs], Sun May 14 21:32:21 2006 UTC (17 years, 10 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5, simonb-timecounters-base
Branch point for: chap-midi
Changes since 1.53: +4 -3 lines
Diff to previous 1.53 (colored)

integrate kauth.

Revision 1.53 / (download) - annotate - [select for diffs], Fri Mar 17 23:29:11 2006 UTC (18 years ago) by christos
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3, elad-kernelauth-base
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored)

don't use MALLOC with a non-constant size; use malloc instead.

Revision 1.52 / (download) - annotate - [select for diffs], Sun Dec 11 12:25:25 2005 UTC (18 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Changes since 1.51: +5 -5 lines
Diff to previous 1.51 (colored)

merge ktrace-lwp.

Revision 1.51 / (download) - annotate - [select for diffs], Fri Nov 11 15:50:57 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.50: +7 -2 lines
Diff to previous 1.50 (colored)

- ignore truncation for VCHR/VBLK/VFIFO as it used to be
  before yamt-vop merge.  PR/32049 from Atsushi Onoe.
- reject setattr which attempts to change size of VLNK/VSOCK.

Revision 1.50 / (download) - annotate - [select for diffs], Wed Nov 2 12:39:00 2005 UTC (18 years, 4 months ago) by yamt
Branch: MAIN
Changes since 1.49: +23 -37 lines
Diff to previous 1.49 (colored)

merge yamt-vop branch.  remove following VOPs.

	VOP_BLKATOFF
	VOP_VALLOC
	VOP_BALLOC
	VOP_REALLOCBLKS
	VOP_VFREE
	VOP_TRUNCATE
	VOP_UPDATE

Revision 1.49 / (download) - annotate - [select for diffs], Mon Sep 26 13:52:20 2005 UTC (18 years, 5 months ago) by yamt
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.48: +3 -3 lines
Diff to previous 1.48 (colored)

always use nanotime rather than time.
it's bad to mix nanotime and time because it sometimes
make timestamps go backwards.

Revision 1.48 / (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.47: +3 -7 lines
Diff to previous 1.47 (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.47 / (download) - annotate - [select for diffs], Tue Aug 30 22:01:12 2005 UTC (18 years, 6 months ago) by xtraeme
Branch: MAIN
Changes since 1.46: +9 -16 lines
Diff to previous 1.46 (colored)

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

Revision 1.46 / (download) - annotate - [select for diffs], Tue Jun 28 16:53:14 2005 UTC (18 years, 8 months ago) by kml
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.45: +4 -4 lines
Diff to previous 1.45 (colored)

Ensure that we change the size of the vnode at the same time as
we change the size of the inode, and use ext2fs_size uniformly.
This fixes a crash that occurs when I create a directory, then
move it, all on an ext2 filesystem.

Revision 1.45 / (download) - annotate - [select for diffs], Sat Feb 26 22:32:20 2005 UTC (19 years 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
Changes since 1.44: +5 -5 lines
Diff to previous 1.44 (colored)

nuke trailing whitespace

Revision 1.44 / (download) - annotate - [select for diffs], Wed Feb 9 23:02:10 2005 UTC (19 years, 1 month ago) by ws
Branch: MAIN
CVS Tags: yamt-km-base2
Changes since 1.43: +53 -12 lines
Diff to previous 1.43 (colored)

Add support for large files (>2GB).
Like Linux, automagically convert old filesystem to use this,
if they are already at revision 1.
For revision 0, just punt (unlike Linux; makes me a bit too nervous.)

There should be an option to fsck_ext2fs to upgrade revision 0 to revision 1.

Reviewd by Manuel (bouyer@).

Revision 1.43 / (download) - annotate - [select for diffs], Sun Aug 15 07:19:56 2004 UTC (19 years, 7 months ago) by mycroft
Branch: MAIN
CVS Tags: yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.42: +44 -30 lines
Diff to previous 1.42 (colored)

Fixing age old cruft:
* Rather than using mnt_maxsymlinklen to indicate that a file systems returns
  d_type fields(!), add a new internal flag, IMNT_DTYPE.

Add 3 new elements to ufsmount:
* um_maxsymlinklen, replaces mnt_maxsymlinklen (which never should have existed
  in the first place).
* um_dirblksiz, which tracks the current directory block size, eliminating the
  FS-specific checks littered throughout the code.  This may be used later to
  make the block size variable.
* um_maxfilesize, which is the maximum file size, possibly adjusted lower due
  to implementation issues.

Sync some bug fixes from FFS into ext2fs, particularly:
* ffs_lookup.c 1.21, 1.28, 1.33, 1.48
* ffs_inode.c 1.43, 1.44, 1.45, 1.66, 1.67
* ffs_vnops.c 1.84, 1.85, 1.86

Clean up some crappy pointer frobnication.

Revision 1.42 / (download) - annotate - [select for diffs], Sat Aug 14 14:32:04 2004 UTC (19 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.41: +3 -4 lines
Diff to previous 1.41 (colored)

Push atime/mtime updates even further -- into the reclaim path, so they happen
rarely in the normal case.  (Note: This happens at reboot/shutdown time because
all file systems are unmounted.)

Also, for IN_MODIFY, use IN_ACCESSED, not IN_MODIFIED; otherwise "ls -l" of
your device node or FIFO would cause the time stamps to get written too
quickly.

Revision 1.41 / (download) - annotate - [select for diffs], Sat Aug 14 01:08:02 2004 UTC (19 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.40: +7 -4 lines
Diff to previous 1.40 (colored)

Add a new flag, IN_MODIFY.  This is like IN_UPDATE|IN_CHANGE, but unlike
setting those flags, it does not cause the inode to be written in the periodic
sync.  This is used for writes to special files (devices and named pipes) and
FIFOs.

Do not preemptively sync updates to access times and modification times.  They
are now updated in the inode only opportunistically, or when the file or device
is closed.  (Really, it should be delayed beyond close, but this is enough to
help substantially with device nodes.)

And the most amusing part:
Trickle sync was broken on both FFS and ext2fs, in different ways.  In FFS, the
periodic call to VFS_SYNC(MNT_LAZY) was still causing all file data to be
synced.  In ext2fs, it was causing the metadata to *not* be synced.  We now
only call VOP_UPDATE() on the node if we're doing MNT_LAZY.  I've confirmed
that we do in fact trickle correctly now.

Revision 1.40 / (download) - annotate - [select for diffs], Mon Mar 22 19:23:08 2004 UTC (20 years ago) by bouyer
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.39: +12 -13 lines
Diff to previous 1.39 (colored)

Fix disclaimer in my copyright. Pointed out by Thomas Klausner.

Revision 1.39 / (download) - annotate - [select for diffs], Sun Jan 25 18:06:49 2004 UTC (20 years, 1 month ago) by hannken
Branch: MAIN
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored)

Make VOP_STRATEGY(bp) a real VOP as discussed on tech-kern.

VOP_STRATEGY(bp) is replaced by one of two new functions:

- VOP_STRATEGY(vp, bp)  Call the strategy routine of vp for bp.
- DEV_STRATEGY(bp)      Call the d_strategy routine of bp->b_dev for bp.

DEV_STRATEGY(bp) is used only for block-to-block device situations.

Revision 1.38 / (download) - annotate - [select for diffs], Wed Nov 5 10:18:38 2003 UTC (20 years, 4 months ago) by hannken
Branch: MAIN
Changes since 1.37: +4 -8 lines
Diff to previous 1.37 (colored)

Clean up the usage of vn_start_write(). At least one occurence clobbered
previous error conditions.
If "(flags & (V_WAIT|V_PCATCH)) == V_WAIT" the return value is always zero.
Ignore the return value in these cases.

From Darrin B. Jewell.

Revision 1.37 / (download) - annotate - [select for diffs], Wed Oct 15 11:29:01 2003 UTC (20 years, 5 months ago) by hannken
Branch: MAIN
Changes since 1.36: +14 -3 lines
Diff to previous 1.36 (colored)

Add the gating of system calls that cause modifications to the underlying
file system.
The function vfs_write_suspend stops all new write operations to a file
system, allows any file system modifying system calls already in progress
to complete, then sync's the file system to disk and returns. The
function vfs_write_resume allows the suspended write operations to
complete.

From FreeBSD with slight modifications.

Approved by: Frank van der Linden <fvdl@netbsd.org>

Revision 1.36 / (download) - annotate - [select for diffs], Sun Oct 5 17:48:49 2003 UTC (20 years, 5 months ago) by bouyer
Branch: MAIN
Changes since 1.35: +5 -7 lines
Diff to previous 1.35 (colored)

Remove references to University of California from my copyright notices.

Revision 1.35 / (download) - annotate - [select for diffs], Thu Aug 7 16:34:26 2003 UTC (20 years, 7 months ago) by agc
Branch: MAIN
Changes since 1.34: +33 -3 lines
Diff to previous 1.34 (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.34 / (download) - annotate - [select for diffs], Sun Jun 29 22:32:32 2003 UTC (20 years, 8 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored)

Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.33 / (download) - annotate - [select for diffs], Sat Jun 28 14:22:24 2003 UTC (20 years, 8 months ago) by darrenr
Branch: MAIN
Changes since 1.32: +5 -5 lines
Diff to previous 1.32 (colored)

Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V

Revision 1.32 / (download) - annotate - [select for diffs], Wed Apr 2 22:38:22 2003 UTC (20 years, 11 months ago) by he
Branch: MAIN
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored)

In the inode, i_din.e2fs_din is now a pointer, so there is no longer
a need to take the address here.

Revision 1.31 / (download) - annotate - [select for diffs], Wed Apr 2 10:39:35 2003 UTC (20 years, 11 months ago) by fvdl
Branch: MAIN
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (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.30 / (download) - annotate - [select for diffs], Sat Jan 25 16:40:28 2003 UTC (21 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.29: +4 -3 lines
Diff to previous 1.29 (colored)

The oldblks and newblks arrays are used to store direct copies of
on-disk block pointers, so they should be int32_t. Error found
by Izumi Tsutsui.

Revision 1.29 / (download) - annotate - [select for diffs], Fri Jan 24 21:55:20 2003 UTC (21 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.28: +20 -14 lines
Diff to previous 1.28 (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.28 / (download) - annotate - [select for diffs], Thu Sep 26 11:06:36 2002 UTC (21 years, 5 months ago) by jdolecek
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)

use ufs_balloc_range() rather than local (mostly identical, but with some
bugs) ext2fs variant

Revision 1.27 / (download) - annotate - [select for diffs], Thu Nov 8 02:39:07 2001 UTC (22 years, 4 months ago) by lukem
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, newlock-base, newlock, 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, ifpoll-base, gehenna-devsw-base, gehenna-devsw, eeh-devprop-base, eeh-devprop
Changes since 1.26: +4 -1 lines
Diff to previous 1.26 (colored)

add RCSID

Revision 1.26 / (download) - annotate - [select for diffs], Tue Nov 6 06:59:05 2001 UTC (22 years, 4 months ago) by simonb
Branch: MAIN
Changes since 1.25: +1 -3 lines
Diff to previous 1.25 (colored)

Remove some bogus checks for unsigned variables < 0.

Revision 1.25 / (download) - annotate - [select for diffs], Fri Oct 26 05:56:07 2001 UTC (22 years, 4 months ago) by lukem
Branch: MAIN
Changes since 1.24: +1 -2 lines
Diff to previous 1.24 (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.24 / (download) - annotate - [select for diffs], Tue Jun 19 12:59:18 2001 UTC (22 years, 9 months ago) by wiz
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf, perseant-lfsv2-base, perseant-lfsv2
Branch point for: thorpej-mips-cache, kqueue
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

`accessible' only has one `a'.

Revision 1.23 / (download) - annotate - [select for diffs], Sun Feb 18 20:17:04 2001 UTC (23 years, 1 month ago) by chs
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.22: +4 -2 lines
Diff to previous 1.22 (colored)

skip truncating a file to 0 before freeing it if it's already zero-length.

Revision 1.22 / (download) - annotate - [select for diffs], Wed Feb 7 12:40:44 2001 UTC (23 years, 1 month ago) by tsutsui
Branch: MAIN
Changes since 1.21: +3 -2 lines
Diff to previous 1.21 (colored)

Fix nested extern declaration of prtactive.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Nov 27 08:39:53 2000 UTC (23 years, 3 months ago) by chs
Branch: MAIN
Changes since 1.20: +20 -47 lines
Diff to previous 1.20 (colored)

Initial integration of the Unified Buffer Cache project.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Jun 28 14:16:37 2000 UTC (23 years, 8 months ago) by mrg
Branch: MAIN
Changes since 1.19: +1 -5 lines
Diff to previous 1.19 (colored)

remove include of <vm/vm.h> and <uvm/uvm_extern.h>

Revision 1.19 / (download) - annotate - [select for diffs], Tue May 30 19:09:44 2000 UTC (23 years, 9 months ago) by mycroft
Branch: MAIN
CVS Tags: 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
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

Adjust where IN_MODIFIED and IN_ACCESSED are cleared (as in the FFS code).

Revision 1.18 / (download) - annotate - [select for diffs], Mon May 29 18:34:36 2000 UTC (23 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.17: +9 -5 lines
Diff to previous 1.17 (colored)

Pull in IN_ACCESSED changes and some MNT_LAZY `bug fixes' from FFS.

Revision 1.17 / (download) - annotate - [select for diffs], Sun May 28 08:44:32 2000 UTC (23 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Pull in indirect block unwind code from FFS.

Revision 1.16 / (download) - annotate - [select for diffs], Sun May 28 04:13:58 2000 UTC (23 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.15: +13 -11 lines
Diff to previous 1.15 (colored)

Add a new function to remove extra buffers when truncating a file.  This is
more generic than the vinvalbuf(V_SAVEMETA) case, avoiding synchronous
operations when truncating to a non-zero length.

Revision 1.15 / (download) - annotate - [select for diffs], Sat May 13 23:43:12 2000 UTC (23 years, 10 months ago) by perseant
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.14: +9 -8 lines
Diff to previous 1.14 (colored)

Change the sementics of the last parameter from a boolean ("waitfor") to
a set of flags ("flags").  Two flags are defined, UPDATE_WAIT and
UPDATE_DIROP.

Under the old semantics, VOP_UPDATE would block if waitfor were set,
under the assumption that directory operations should be done
synchronously.  At least LFS and FFS+softdep do not make this
assumption; FFS+softdep got around the problem by enclosing all relevant
calls to VOP_UPDATE in a "if(!DOINGSOFTDEP(vp))", while LFS simply
ignored waitfor, one of the reasons why NFS-serving an LFS filesystem
did not work properly.

Under the new semantics, the UPDATE_DIROP flag is a hint to the
fs-specific update routine that the call comes from a dirop routine, and
should be wait for, or not, accordingly.

Closes PR#8996.

Revision 1.14 / (download) - annotate - [select for diffs], Thu Mar 30 12:41:11 2000 UTC (23 years, 11 months ago) by augustss
Branch: MAIN
Changes since 1.13: +11 -11 lines
Diff to previous 1.13 (colored)

Remove register declarations.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Mar 24 05:51:30 1999 UTC (25 years ago) by mrg
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-newbase, chs-ubc2-base
Branch point for: wrstuden-devbsize, thorpej_scsipi, chs-ubc2
Changes since 1.12: +3 -20 lines
Diff to previous 1.12 (colored)

completely remove Mach VM support.  all that is left is the all the
header files as UVM still uses (most of) these.

Revision 1.12 / (download) - annotate - [select for diffs], Fri Mar 5 21:09:49 1999 UTC (25 years ago) by mycroft
Branch: MAIN
Changes since 1.11: +7 -11 lines
Diff to previous 1.11 (colored)

Pass null pointers to VOP_UPDATE rather than having all the callers fetch the
current time themselves.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Mar 5 20:47:07 1999 UTC (25 years ago) by mycroft
Branch: MAIN
Changes since 1.10: +4 -2 lines
Diff to previous 1.10 (colored)

Permit the access and modify time pointers passed to VOP_UPDATE to be null,
meaning the current time.

Revision 1.10 / (download) - annotate - [select for diffs], Fri Oct 23 00:33:24 1998 UTC (25 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach, chs-ubc-base, chs-ubc
Changes since 1.9: +5 -3 lines
Diff to previous 1.9 (colored)

For consistency w/ FFS/LFS, define EXT2_DINODE_SIZE, and use it instead
of pointer arithmetic and/or sizeof(struct ext2fs_dinode).

Revision 1.9 / (download) - annotate - [select for diffs], Tue Sep 29 10:24:58 1998 UTC (25 years, 5 months ago) by bouyer
Branch: MAIN
Changes since 1.8: +3 -1 lines
Diff to previous 1.8 (colored)

#include opt_uvm.h only if _KENREL and !_LKM
Make ext2fs_init() call ufs_init(). it was doing the init by itself,
testing for extern done != 0. This bug was hidden by the fact that
ext2fs_init() is called before ffs_init().

Revision 1.8 / (download) - annotate - [select for diffs], Sun Aug 9 20:15:38 1998 UTC (25 years, 7 months ago) by perry
Branch: MAIN
Changes since 1.7: +8 -8 lines
Diff to previous 1.7 (colored)

bzero->memset, bcopy->memcpy, bcmp->memcmp

Revision 1.7 / (download) - annotate - [select for diffs], Tue Jun 9 06:33:22 1998 UTC (25 years, 9 months ago) by mikel
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

ffs_ -> ext2fs_ in warning; art@openbsd.org

Revision 1.6 / (download) - annotate - [select for diffs], Sun Mar 1 02:23:46 1998 UTC (26 years ago) by fvdl
Branch: MAIN
Changes since 1.5: +30 -48 lines
Diff to previous 1.5 (colored)

Merge with Lite2 + local changes

Revision 1.5 / (download) - annotate - [select for diffs], Tue Feb 10 14:10:43 1998 UTC (26 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.4: +3 -1 lines
Diff to previous 1.4 (colored)

- add defopt's for UVM, UVMHIST and PMAP_NEW.
- remove unnecessary UVMHIST_DECL's.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Feb 5 08:00:29 1998 UTC (26 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.3: +14 -1 lines
Diff to previous 1.3 (colored)

initial import of the new virtual memory system, UVM, into -current.

UVM was written by chuck cranor <chuck@maria.wustl.edu>, with some
minor portions derived from the old Mach code.  i provided some help
getting swap and paging working, and other bug fixes/ideas.  chuck
silvers <chuq@chuq.com> also provided some other fixes.

this is the rest of the MI portion changes.

this will be KNF'd shortly.  :-)

Revision 1.3 / (download) - annotate - [select for diffs], Thu Oct 9 15:42:50 1997 UTC (26 years, 5 months ago) by bouyer
Branch: MAIN
CVS Tags: 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-base
Changes since 1.2: +10 -10 lines
Diff to previous 1.2 (colored)

Add byte-swapping functions (bswap16, bswap32, bswap64) to libkern.
Only assembly version for i386 bswap16 and bswap32 for now (bswap64 uses
bswap32). Contribution of assembly versions of these are welcome.
Add byte-swapping of ext2fs metadata for big-endian systems.
Tested on i386 and sparc.

Revision 1.2 / (download) - annotate - [select for diffs], Fri Jul 4 20:22:13 1997 UTC (26 years, 8 months ago) by drochner
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, marc-pcmcia-bp
Branch point for: marc-pcmcia
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

Don't cast 64bit (off_t) file sizes to vm_offset_t (32bit on many
architectures), truncate them intelligently instead.
The truncation is done centralized in vnode_pager.c.
This prevents from wrap-over effects when parts of large (>2^32 byte) files
are mmapped.
Don't allow to mmap above the numerical range of vm_offset_t.
This is considered a temporary solution until the vm system handles the
object sizes/offsets more cleanly.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Jun 11 09:33:56 1997 UTC (26 years, 9 months ago) by bouyer
Branch: MAIN
CVS Tags: bouyer-scsipi

The ext2fs layer, based on the ffs/ufs one. Uses a few functions from
sys/ufs/ufs/

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>