The NetBSD Project

CVS log for src/sys/lib/libsa/ufs.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / lib / libsa

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.61 / (download) - annotate - [select for diffs], Wed Jun 19 17:51:26 2013 UTC (12 hours, 11 minutes ago) by dholland
Branch: MAIN
CVS Tags: HEAD
Changes since 1.60: +17 -10 lines
Diff to previous 1.60 (colored)

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

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

Revision 1.60 / (download) - annotate - [select for diffs], Sun Jun 9 17:57:08 2013 UTC (10 days, 12 hours ago) by dholland
Branch: MAIN
Changes since 1.59: +2 -2 lines
Diff to previous 1.59 (colored)

Stick UFS_ in front of these symbols:
   DIRBLKSIZ
   DIRECTSIZ
   DIRSIZ
   OLDDIRFMT
   NEWDIRFMT

Part of PR 47909.

Revision 1.59 / (download) - annotate - [select for diffs], Tue Jan 22 09:39:14 2013 UTC (4 months, 3 weeks ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base8, tls-maxphys-nbase, tls-maxphys-base, khorben-n900, agc-symver-base, agc-symver
Changes since 1.58: +13 -13 lines
Diff to previous 1.58 (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.58 / (download) - annotate - [select for diffs], Mon May 21 21:34:16 2012 UTC (12 months, 4 weeks ago) by dsl
Branch: MAIN
CVS Tags: yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, jmcneill-usbmp-base10
Branch point for: tls-maxphys
Changes since 1.57: +3 -7 lines
Diff to previous 1.57 (colored)

Remove the code that tries to load the "ffs" kernel module during boot.
This is in line with the core decision than even modular kernels should
  contain the ffs code.
I've left in the code that tries to load "nfs" and "ext2fs", but it
  isn't clear that is necessary.
Removes a warning message that (usually) flashes past to fast to read.
AFAICT all the relevant kernels contain ffs (and nfs for that matter).

Revision 1.57 / (download) - annotate - [select for diffs], Mon Jan 16 18:44:13 2012 UTC (17 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base4, netbsd-6-base, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2
Branch point for: netbsd-6
Changes since 1.56: +2 -31 lines
Diff to previous 1.56 (colored)

PR/45796: Evgeniy Ivanov minixfs3 support.
Split out fn_match since we have 3 copies now.

Revision 1.56 / (download) - annotate - [select for diffs], Sun Dec 25 06:09:08 2011 UTC (17 months, 3 weeks ago) by tsutsui
Branch: MAIN
Changes since 1.55: +146 -1 lines
Diff to previous 1.55 (colored)

Apply the following patch submitted by Evgeniy Ivanov:
http://mail-index.NetBSD.org/tech-kern/2011/12/15/msg012226.html
http://mail-index.NetBSD.org/tech-kern/2011/12/17/msg012229.html

 - add 'ls' op to struct fs_ops to support ls command on each fs,
   enabled by -DLIBSA_ENABLE_LS_OP and SAMISCMAKEFLAGS+="SA_ENABLE_LS_OP=yes"
   in libsa
 - split sys/lib/libsa/ufs_ls.c into UFS specific part and MI part (ls.c)
   that opens the target fs and calls fs-depedent XXX_ls() functions
 - add a ls op for ext2fs
   (all other fs than ufs and ext2fs don't have actual ls ops yet)
 - replace existing MD ufs_ls() calls with this new MI ls()

The original patch was written for i386 and ext2fs.
zaurus zboot has been tested by nonaka@.
ews4800mips and x68k loaders have been tested by me (with several fixes).
landisk might be okay since it was almost copied from i386.

XXX1: "ls" op in fs_ops looks a bit inconsistent, but we will be able to
      replace it with real fs ops like readdir if it's really worth
XXX2: someone might have to check sys/arch/ia64/stand/efi/libefi/efifs_ls.c

Revision 1.55 / (download) - annotate - [select for diffs], Thu Jun 16 13:27:58 2011 UTC (2 years ago) by joerg
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.54: +7 -7 lines
Diff to previous 1.54 (colored)

Add an optional MD calling convention flag for use in libsa when space
optimisation is critical. Use this on i386 to switch to register passing
calling convention for the file system entry points and most assembler
call backs that have to preserve at least 3 registers.

Revision 1.54 / (download) - annotate - [select for diffs], Wed Nov 19 12:36:41 2008 UTC (4 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: 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, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, mjf-devfs2-base, matt-premerge-20091211, matt-mips64-premerge-20101231, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, jruoho-x86intr-base, jruoho-x86intr, haad-nbase2, haad-dm-base2, haad-dm-base, cherry-xenmp-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, ad-audiomp2-base, ad-audiomp2
Branch point for: cherry-xenmp
Changes since 1.53: +9 -1 lines
Diff to previous 1.53 (colored)

For the x86 boot loader, autoload a kernel module corresponding to the
root file system type.

Revision 1.53 / (download) - annotate - [select for diffs], Wed Jan 2 11:48:58 2008 UTC (5 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, nick-net80211-sync-base, nick-net80211-sync, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, 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-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-devfs-base, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, haad-dm-base1, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1
Branch point for: yamt-nfs-mp, nick-hppapmap, mjf-devfs2, haad-dm
Changes since 1.52: +2 -1 lines
Diff to previous 1.52 (colored)

Merge vmlocking2 to head.

Revision 1.52 / (download) - annotate - [select for diffs], Sat Dec 1 17:44:16 2007 UTC (5 years, 6 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: vmlocking2, bouyer-xeni386
Changes since 1.51: +2 -2 lines
Diff to previous 1.51 (colored)

Use "uint" rather than "unsigned" without a type.

Revision 1.51 / (download) - annotate - [select for diffs], Sat Nov 24 13:20:58 2007 UTC (5 years, 6 months ago) by isaki
Branch: MAIN
Changes since 1.50: +29 -29 lines
Diff to previous 1.50 (colored)

style, indent, and ANSI-fy.

Revision 1.50 / (download) - annotate - [select for diffs], Sat Sep 29 21:36:56 2007 UTC (5 years, 8 months ago) by martin
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, vmlocking-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs
Changes since 1.49: +11 -3 lines
Diff to previous 1.49 (colored)

When compiled with COMPAT_SOLARIS_UFS, always calculate fs_qbmask and
fs_qfmask on the fly. This allows libsa to read newer Solaris ufs
filesystems (which have a slightly incompatible superblock).
Suggested by Antti Kantee when discussing PR kern/37000.

Revision 1.49 / (download) - annotate - [select for diffs], Thu May 11 01:13:44 2006 UTC (7 years, 1 month ago) by mrg
Branch: MAIN
CVS Tags: yamt-x86pmap-base, yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-idlelwp-base8, yamt-idlelwp, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, thorpej-atomic-base, thorpej-atomic, simonb-timecounters-base, rpaulo-netinet-merge-pcb-base, reinoud-bufcleanup, post-newlock2-merge, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, newlock2-nbase, newlock2-base, newlock2, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, mjf-ufs-trans-base, mjf-ufs-trans, matt-nb4-arm-base, matt-nb4-arm, matt-mips64-base, matt-mips64, hpcarm-cleanup, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, chap-midi-nbase, chap-midi-base, chap-midi, ad-audiomp-base, ad-audiomp, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-x86pmap, vmlocking, matt-armv6, jmcneill-pm
Changes since 1.48: +5 -5 lines
Diff to previous 1.48 (colored)

ssize_t -> size_t to match variable and functions.

Revision 1.48 / (download) - annotate - [select for diffs], Wed Jan 25 18:27:23 2006 UTC (7 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, 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.47: +4 -4 lines
Diff to previous 1.47 (colored)

free -> dealloc

Revision 1.47 / (download) - annotate - [select for diffs], Wed Jan 18 02:52:22 2006 UTC (7 years, 5 months ago) by uwe
Branch: MAIN
Changes since 1.46: +2 -2 lines
Diff to previous 1.46 (colored)

Define indp_t as signed int32_t, like ffsv1.c does.

Revision 1.46 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:46 2005 UTC (7 years, 6 months ago) by christos
Branch: MAIN
Branch point for: yamt-uio_vmspace
Changes since 1.45: +1 -1 lines
Diff to previous 1.45 (colored)

merge ktrace-lwp.

Revision 1.45 / (download) - annotate - [select for diffs], Fri Aug 19 02:04:03 2005 UTC (7 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Changes since 1.44: +11 -10 lines
Diff to previous 1.44 (colored)

64 bit inode changes.

Revision 1.44 / (download) - annotate - [select for diffs], Sat Feb 26 22:58:57 2005 UTC (8 years, 3 months 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.43: +2 -2 lines
Diff to previous 1.43 (colored)

nuke trailing whitespace

Revision 1.43 / (download) - annotate - [select for diffs], Sat Mar 20 14:24:59 2004 UTC (9 years, 3 months ago) by dsl
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, matt-timespec, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.42: +4 -1 lines
Diff to previous 1.42 (colored)

When searching for the superblock, check that the fs_sblockloc field
matches the location we read it from to ensure we don't have one of the
alternate superblocks.
Fixes part of PR kern/24809

Revision 1.42 / (download) - annotate - [select for diffs], Sun Aug 31 22:40:49 2003 UTC (9 years, 9 months ago) by fvdl
Branch: MAIN
Changes since 1.41: +11 -10 lines
Diff to previous 1.41 (colored)

Fix signed/unsigned warnings.

Revision 1.41 / (download) - annotate - [select for diffs], Wed Aug 27 22:42:08 2003 UTC (9 years, 9 months ago) by dsl
Branch: MAIN
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored)

Use memset not bzero to help shrink alpha bootxx_lfs
(sys/arch/alpha/stand/common/start.S also uses bzero, I don't know
any alpha opcodes so cant change that one...)

Revision 1.40 / (download) - annotate - [select for diffs], Fri Aug 22 21:33:52 2003 UTC (9 years, 10 months ago) by dsl
Branch: MAIN
Changes since 1.39: +100 -137 lines
Diff to previous 1.39 (colored)

Reduce memory footprint:
- use file buffer for all block reads
- only save a small amount of the indirect block list
Allows i386 bootxx_ufs code to load /boot from a filesystem with 32k blocks
while still fitting inside 64k of memory.
Code size reduced as well (by ~1k on i386).
It ought to be possible to use a buffer that is smaller than a filesystem
block.  This might be needed in order to boot from filesystems with larger
block sizes.

Revision 1.39 / (download) - annotate - [select for diffs], Thu Aug 21 00:01:28 2003 UTC (9 years, 10 months ago) by elric
Branch: MAIN
Changes since 1.38: +3 -1 lines
Diff to previous 1.38 (colored)

Should call ufs_close() if it isn't being built in.

Revision 1.38 / (download) - annotate - [select for diffs], Mon Aug 18 15:45:30 2003 UTC (9 years, 10 months ago) by dsl
Branch: MAIN
Changes since 1.37: +35 -55 lines
Diff to previous 1.37 (colored)

make 'path' argument to ufs_open 'const char *' and fix the fallout.

Revision 1.37 / (download) - annotate - [select for diffs], Mon Aug 18 08:00:52 2003 UTC (9 years, 10 months ago) by dsl
Branch: MAIN
Changes since 1.36: +20 -55 lines
Diff to previous 1.36 (colored)

KNF, fix a comment or two

Revision 1.36 / (download) - annotate - [select for diffs], Thu Aug 7 16:32:31 2003 UTC (9 years, 10 months ago) by agc
Branch: MAIN
Changes since 1.35: +2 -6 lines
Diff to previous 1.35 (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.35 / (download) - annotate - [select for diffs], Fri Apr 11 11:24:49 2003 UTC (10 years, 2 months ago) by dsl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.34: +194 -104 lines
Diff to previous 1.34 (colored)

Merge in lfs.c, use defines to build ffsv1, ffsv2, lfsv1 or lfsv2.
(removes the ability to build a single ufs.o that supports ffs v1 and v2,
that animal was too large for some of the boot code.)
Use shifts and masks to avoid pulling in 64bit divide.

Revision 1.34 / (download) - annotate - [select for diffs], Wed Apr 2 19:47:25 2003 UTC (10 years, 2 months ago) by he
Branch: MAIN
Changes since 1.33: +3 -1 lines
Diff to previous 1.33 (colored)

Conditionalize declaration of local variable ``i'', now that the
code which uses it is also conditionalized.

Revision 1.33 / (download) - annotate - [select for diffs], Wed Apr 2 10:39:34 2003 UTC (10 years, 2 months ago) by fvdl
Branch: MAIN
Changes since 1.32: +147 -56 lines
Diff to previous 1.32 (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.32 / (download) - annotate - [select for diffs], Sun Feb 23 22:47:43 2003 UTC (10 years, 3 months ago) by simonb
Branch: MAIN
Changes since 1.31: +3 -9 lines
Diff to previous 1.31 (colored)

Use the MAX() macro from <sys/param.h> instead of a local inline.  Results
in same code size in ufs.c and removes an unused inline function in lfs.c.

Revision 1.31 / (download) - annotate - [select for diffs], Fri Jan 24 21:55:18 2003 UTC (10 years, 4 months ago) by fvdl
Branch: MAIN
Changes since 1.30: +5 -3 lines
Diff to previous 1.30 (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.30 / (download) - annotate - [select for diffs], Thu Mar 30 12:19:49 2000 UTC (13 years, 2 months ago) by augustss
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf, 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, 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, nathanw_sa_end, nathanw_sa_before_merge, nathanw_sa_base, nathanw_sa, minoura-xpg4dl-base, minoura-xpg4dl, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, kqueue, ifpoll-base, ifpoll, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, gehenna-devsw-base, gehenna-devsw, fvdl_fs64_base, eeh-devprop-base, eeh-devprop
Changes since 1.29: +24 -24 lines
Diff to previous 1.29 (colored)

Kill some more register declarations.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Nov 13 21:17:57 1999 UTC (13 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, fvdl-softdep-base, chs-ubc2-newbase
Changes since 1.28: +11 -0 lines
Diff to previous 1.28 (colored)

Backout my libsa changes.

Revision 1.28 / (download) - annotate - [select for diffs], Thu Nov 11 20:23:17 1999 UTC (13 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.27: +1 -12 lines
Diff to previous 1.27 (colored)

Update for the improvements to libsa, and don't reference libkern.h.

Revision 1.27 / (download) - annotate - [select for diffs], Wed Aug 18 21:33:50 1999 UTC (13 years, 10 months ago) by cgd
Branch: MAIN
CVS Tags: comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize, thorpej_scsipi, fvdl-softdep
Changes since 1.26: +6 -1 lines
Diff to previous 1.26 (colored)

note that these files should be easily diffable (until they share common code

Revision 1.26 / (download) - annotate - [select for diffs], Tue Aug 17 02:26:32 1999 UTC (13 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.25: +3 -1 lines
Diff to previous 1.25 (colored)

set f_seekp to 0 in ufs_open() before returning.  It ended up being 0
in most situations, but not always: if the terminal path name component
being opened couldn't be found in the first fs block of the directory
that contained it, f_seekp would be non-zero (and Bad Things would result).

Revision 1.25 / (download) - annotate - [select for diffs], Thu Apr 1 05:27:54 1999 UTC (14 years, 2 months ago) by simonb
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH001, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, chs-ubc2-base, chs-ubc2
Branch point for: netbsd-1-4
Changes since 1.24: +4 -1 lines
Diff to previous 1.24 (colored)

Don't compile in sanity checks for old file systems if
LIBSA_NO_COMPAT_UFS is defined.

Revision 1.24 / (download) - annotate - [select for diffs], Wed Mar 31 07:43:39 1999 UTC (14 years, 2 months ago) by simonb
Branch: MAIN
Changes since 1.23: +1 -11 lines
Diff to previous 1.23 (colored)

G/C UFS_NOSYMLINK, UFS_NOCLOSE and UFS_NOWRITE and use new LIBSA_NO_FS_*.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Mar 31 01:50:26 1999 UTC (14 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.22: +62 -16 lines
Diff to previous 1.22 (colored)

Make a bunch of backward-compatible changes to the boot blocks which allow
size to be reduced substantially.  (backward compatibility verified
by compiling one of the alpha boot blocks which uses all of the code
before and after, diffing the object files, and manually verifying that
the differences were 'correct'.  some differences were "unavoidable,"
it wanting to avoid a double-commit, because e.g. local variables which
were previously used were no longer used.)  a README which describes
supported options (or at least the ones mentioned below) is forthcoming.

add support for the preprocessor macro LIBSA_NO_TWIDDLE, which
  causes calls to twiddle() to be omitted if it's defined.
add support for the preprocessor macros:
	LIBSA_NO_FS_CLOSE
	LIBSA_NO_FS_WRITE
	LIBSA_NO_FS_SEEK
  which, if defined, cause the corresponding file system operations
  in the individual file system implementations to be omitted.  (note
  that all of those macros are not supported by all file systems at
  this point.  comments were added to individual file system files
  to indicate lack of support, and should be cleaned up later.  Backward
  compatibility options e.g. UFS_NOCLOSE, etc., are supported.)
add support for the preprocessor macro LIBSA_NO_FS_SYMLINK, which
  removes support for symbolic links from the file system support
  functions.  (same notes as for the macros above apply.)
add support for the preprocessor macro LIBSA_FS_SINGLECOMPONENT which
  removes all subdirectory and symlink support from the file system
  support functions.  (same notes as for the macros above apply.)
add support for the preprocessor macro LIBSA_NO_FD_CHECKING, which
  causes code relating to libsa file descriptor checks (e.g. range
  checking and checking that a file descriptor is valid) to be
  omitted if it's defined.
add support for the preprocessor macro LIBSA_NO_RAW_ACCESS, which
  causes code relating to raw device access to be omitted if it's
  defined.
change some structure copies to use bcopy() instead.  that way
  use of bcopy vs. memcpy() can easily be selected by
  LIBSA_USE_MEMCPY.  (without changes like these, you could end up
  having both bcopy() and memcpy() included.  eventually, all
  calls to bcopy should be changed to calls to memcpy() or memmove()
  as appropriate -- hopefully never the latter -- with an option to
  use bcopy instead.)
add support for the preprocessor macro LIBSA_NO_DISKLABEL_MSGS, which
  causes disklabel() to return '1' as msg rather than a string.  Can
  be used if the boot blocks don't care about the string, and need to
  save the space.
add support for the preprocessor macro LIBSA_SINGLE_FILESYSTEM, which
  if defined causes all of the file system switch code to be removed.
  Its value should be the name of the file system supported by the
  boot block, e.g. "ufs" for the FFS file system.  calls to the
  file system functions open, close, etc., which were previously
  done through a function switch are then done via direct invocation
  of <fs>_open, <fs>_close, etc. (e.g. ufs_open, ...).
add support for the preprocessor macro LIBSA_SINGLE_DEVICE, which
  does the equivalent of LIBSA_SINGLE_FILESYSTEM but for the device
  switch table.  Device entry pointes are expected to be named
  <dev>foo, e.g. the 'strategy' routine used when LIBSA_SINGLE_DEVICE
  is set to 'disk' is diskstrategy.
make ufs.c f_nindir array be unsigned ints.  the fact that it was signed
  caused ufs.c to require signed division routines (which were otherwise
  unnecessary for a small boot block).

Revision 1.22 / (download) - annotate - [select for diffs], Mon Feb 22 07:59:09 1999 UTC (14 years, 4 months ago) by simonb
Branch: MAIN
Changes since 1.21: +19 -9 lines
Diff to previous 1.21 (colored)

Drop support for symlinks of UFS_NOSYMLINK is defined.
Don't compile in ufs_close/ufs_write if UFS_NOCLOSE/UFS_NOWRITE is defined.
Remove trailing whitespace.

Revision 1.21 / (download) - annotate - [select for diffs], Thu Feb 11 09:10:45 1999 UTC (14 years, 4 months ago) by pk
Branch: MAIN
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored)

Add missing prototypes.

Revision 1.20 / (download) - annotate - [select for diffs], Sun Mar 1 07:15:39 1998 UTC (15 years, 3 months ago) by ross
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach, eeh-paddr_t-base, eeh-paddr_t, chs-ubc-base, chs-ubc
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

Sweep up some miscellaneous leftover lite2 integration shrapnel.

Revision 1.19 / (download) - annotate - [select for diffs], Thu Jun 26 19:11:55 1997 UTC (15 years, 11 months ago) by drochner
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, marc-pcmcia-bp, marc-pcmcia-base, marc-pcmcia, bouyer-scsipi
Changes since 1.18: +11 -1 lines
Diff to previous 1.18 (colored)

Avoid user space headers for standalone programs.
Don't use sys/lib/libkern or sys/lib/libz if not standalone
 (ie, user space test programs).

Revision 1.18 / (download) - annotate - [select for diffs], Fri Jun 13 14:32:24 1997 UTC (16 years ago) by drochner
Branch: MAIN
Changes since 1.17: +1 -3 lines
Diff to previous 1.17 (colored)

Don't #include <string.h>, needed prototypes are in libkern.h.

Revision 1.17 / (download) - annotate - [select for diffs], Fri Jan 17 20:17:58 1997 UTC (16 years, 5 months ago) by cgd
Branch: MAIN
CVS Tags: mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Changes since 1.16: +3 -1 lines
Diff to previous 1.16 (colored)

fix file system buffer leak that occurs if an error occurs (e.g. file not
found) during the file system open function after having read some data
from the disk.  From  Matthias Drochner (PR 3120).

Revision 1.16 / (download) - annotate - [select for diffs], Mon Sep 30 16:01:22 1996 UTC (16 years, 8 months ago) by ws
Branch: MAIN
CVS Tags: thorpej-setroot
Changes since 1.15: +4 -2 lines
Diff to previous 1.15 (colored)

Add support for booting from cd9660 fs
Support directory traversal and symbolic links for nfs booting
Close device when file opening failed
Plug memory leak in ufs code

Revision 1.15 / (download) - annotate - [select for diffs], Sun Jun 2 13:28:21 1996 UTC (17 years ago) by ragge
Branch: MAIN
Changes since 1.14: +3 -2 lines
Diff to previous 1.14 (colored)

Fix include file order to confirm to KNF in master tree also.

Revision 1.14 / (download) - annotate - [select for diffs], Sat Jan 13 22:25:44 1996 UTC (17 years, 5 months ago) by leo
Branch: MAIN
CVS Tags: netbsd-1-2-base
Branch point for: netbsd-1-2
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

Some files containing more than one function are split. This reduces the
size of the resulting loader. The read_inode() function now returns the
result of the strategy function instead of success in all cases (ufs.c).
Fixes pr#1817

Revision 1.13 / (download) - annotate - [select for diffs], Fri Oct 20 00:42:21 1995 UTC (17 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.12: +19 -14 lines
Diff to previous 1.12 (colored)

add prototypes for static functions.  make ffs_oldfscompat static.
fix some arguments and structure members, in recognition of the fact
that (u_int == u_long == size_t) is not true on all systems.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Sep 17 00:49:48 1995 UTC (17 years, 9 months ago) by pk
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.11: +11 -10 lines
Diff to previous 1.11 (colored)

Revert fs_ops read/write declarations; these return error numbers.
Get rid of some more compiler warnings.
Set errno where appropriate.

Revision 1.11 / (download) - annotate - [select for diffs], Tue Feb 21 06:33:25 1995 UTC (18 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.10: +6 -1 lines
Diff to previous 1.10 (colored)

Add a generic twiddler.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Jan 7 20:53:31 1995 UTC (18 years, 5 months ago) by ws
Branch: MAIN
Changes since 1.9: +17 -23 lines
Diff to previous 1.9 (colored)

Better fix for the last.
Worked this out together with Darren Reed.
This one fixes several bugs, plus it's closer to the original

Revision 1.9 / (download) - annotate - [select for diffs], Fri Jan 6 00:22:58 1995 UTC (18 years, 5 months ago) by pk
Branch: MAIN
Changes since 1.8: +34 -26 lines
Diff to previous 1.8 (colored)

Update symbolic-link handling, from Darren Reed.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Oct 26 05:45:09 1994 UTC (18 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.7: +2 -4 lines
Diff to previous 1.7 (colored)

new RCS ID format.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Aug 22 21:56:15 1994 UTC (18 years, 10 months ago) by brezak
Branch: MAIN
CVS Tags: 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
Branch point for: netbsd-1-0
Changes since 1.6: +12 -3 lines
Diff to previous 1.6 (colored)

Cleanup to make more ANSI compliant; checkpoint

Revision 1.6 / (download) - annotate - [select for diffs], Wed Jul 27 07:58:45 1994 UTC (18 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored)

include libkern.h

Revision 1.5 / (download) - annotate - [select for diffs], Wed Jul 27 07:37:35 1994 UTC (18 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.4: +1 -3 lines
Diff to previous 1.4 (colored)

get rid of someone else's bravery (stupidity)

Revision 1.4 / (download) - annotate - [select for diffs], Mon Jul 18 13:08:09 1994 UTC (18 years, 11 months ago) by pk
Branch: MAIN
Changes since 1.3: +30 -1 lines
Diff to previous 1.3 (colored)

Include ffs_oldfscompat() from ffs_vfsops.c; enables booting from pre-44
filesystems (on big-endian machines).

Revision 1.3 / (download) - annotate - [select for diffs], Mon Jun 20 08:39:01 1994 UTC (19 years ago) by pk
Branch: MAIN
CVS Tags: netbsd-1-0-base
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

Further adaptions to 4.4-lite header files.

Revision 1.2 / (download) - annotate - [select for diffs], Mon Jun 20 07:50:20 1994 UTC (19 years ago) by glass
Branch: MAIN
Changes since 1.1: +2 -7 lines
Diff to previous 1.1 (colored)

make it compile w/4.4-lite header file changes

Revision 1.1 / (download) - annotate - [select for diffs], Wed Jan 26 02:04:01 1994 UTC (19 years, 4 months ago) by brezak
Branch: MAIN

CMU/4.4 stand-alone library

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>