The NetBSD Project

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

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.34.10.1: download - view: text, markup, annotated - select for diffs
Wed Nov 4 23:27:52 2026 UTC (11 days, 9 hours ago) by perseant
Branches: perseant-exfatfs
Diff to: previous 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34: +2 -1 lines
Sync with HEAD

Revision 1.35: download - view: text, markup, annotated - select for diffs
Fri Dec 19 09:31:16 2025 UTC (10 months, 3 weeks ago) by nia
Branches: MAIN
CVS tags: perseant-exfatfs-base-20261102, HEAD
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +2 -1 lines
libsa: Do not assume <sys/endian.h> is transcluded via <sys/param.h>

prompted by PR pkg/59839

Revision 1.34: download - view: text, markup, annotated - select for diffs
Fri Apr 29 07:42:07 2022 UTC (4 years, 6 months ago) by rin
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20250801, perseant-exfatfs-base-20240630, perseant-exfatfs-base, netbsd-11-base, netbsd-11-1-RELEASE, netbsd-11-0-RELEASE, netbsd-11-0-RC7, netbsd-11-0-RC6, netbsd-11-0-RC5, netbsd-11-0-RC4, netbsd-11-0-RC3, netbsd-11-0-RC2, netbsd-11-0-RC1, netbsd-11, netbsd-10-base, netbsd-10-2-RELEASE, netbsd-10-1-RELEASE, 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, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: perseant-exfatfs
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +2 -8 lines
Re-introduce SA_HARDCODED_SECSIZE hack, by which hardcoded DEV_BSIZE is
used instead of secsize obtained by SAIOSECSIZE ioctl.

This hack avoids divdi3 and friends from being linked, in order to
support variable secsize for some archs.

Should be useful for ancient archs, for which secsize is fixed.

Thanks christos@ for comment.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Wed Apr 27 14:48:50 2022 UTC (4 years, 6 months ago) by rin
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +7 -1 lines
Revert previous at the moment.

This is wrong reasoning; 68020 and above (incl. 040 and 060) support
32-bit displacements for PC relative addressing (via "fully extension
addressing mode" with null index register).

I've still not figured out what goes wrong with amiga/boot(8) when
compiled without -l option for gas(1)...

On 2022/04/27 20:48, Rin Okuyama wrote:
> Module Name:	src
> Committed By:	rin
> Date:		Wed Apr 27 11:48:26 UTC 2022
>
> Modified Files:
> 	src/sys/lib/libsa: ext2fs.c minixfs3.c stand.h ufs.c
>
> Log Message:
> Introduce SA_HARDCODED_SECSIZE hack, by which hardcoded DEV_BSIZE is
> used instead of secsize obtained by SAIOSECSIZE ioctl.
>
> This hack avoids divdi3 and friends from being linked, in order to
> support variable secsize.
>
> This is useful for amiga/boot(8); it is loaded by firmware into
> unpredictable address, and therefore all symbols should be
> addressable by PC relative mode with only 16-bit displacements.
>
> See sys/arch/amiga/stand/bootblock/{boot/bbstart.s,elf2bb,txlt} for
> more details.
>
>
> To generate a diff of this commit:
> cvs rdiff -u -r1.31 -r1.32 src/sys/lib/libsa/ext2fs.c
> cvs rdiff -u -r1.10 -r1.11 src/sys/lib/libsa/minixfs3.c
> cvs rdiff -u -r1.83 -r1.84 src/sys/lib/libsa/stand.h src/sys/lib/libsa/ufs.c
>
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Wed Apr 27 11:48:26 2022 UTC (4 years, 6 months ago) by rin
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +2 -8 lines
Introduce SA_HARDCODED_SECSIZE hack, by which hardcoded DEV_BSIZE is
used instead of secsize obtained by SAIOSECSIZE ioctl.

This hack avoids divdi3 and friends from being linked, in order to
support variable secsize.

This is useful for amiga/boot(8); it is loaded by firmware into
unpredictable address, and therefore all symbols should be
addressable by PC relative mode with only 16-bit displacements.

See sys/arch/amiga/stand/bootblock/{boot/bbstart.s,elf2bb,txlt} for
more details.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Sun Apr 24 06:48:15 2022 UTC (4 years, 6 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +8 -2 lines
Ask driver about sector size to support reading superblocks from fixed
byte offsets.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Tue Apr 19 09:25:38 2022 UTC (4 years, 6 months ago) by skrll
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +2 -2 lines
Typo in comment. avoinds -> avoids

Revision 1.25.16.3: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:05:04 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.25.16.2: preferred, colored; branchpoint 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25.16.2: +1 -1 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.25.16.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:53 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.25.16.1: preferred, colored; branchpoint 1.25: preferred, colored
Changes since revision 1.25.16.1: +2 -2 lines
Merge changes from current as of 20200406

Revision 1.28.4.1: download - view: text, markup, annotated - select for diffs
Sat Jan 25 22:38:51 2020 UTC (6 years, 9 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28: +2 -2 lines
Sync with head.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Fri Jan 24 13:20:33 2020 UTC (6 years, 9 months ago) by jakllsch
Branches: 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, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +2 -2 lines
Use dp->e2d_namlen rather than strlen(dp->e2d_name) in ext2fs_ls().

Prevents garbage beyond the end of the name from appearing on screen.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon Jun 24 13:58:24 2019 UTC (7 years, 4 months ago) by pgoyette
Branches: MAIN
CVS tags: phil-wifi-20191119, netbsd-9-base, netbsd-9-5-RELEASE, netbsd-9-4-RELEASE, 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, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +2 -2 lines
Now that the ufs module has been split out from ffs and ext2fs, we need
to update the boot-loader to push all modules required to support the
booted filesystem.  We treat the fsmod string as a slash-separated list
of module names (relative to kern.module.path), rather than as a single
module path name.

Note that ffsv1 and ffsv2 are still exempted from the boot-loader's
auto-push, but the list of required filesystems is still noted in the
source.

Also note that arch/sandpoint needs a similar change.  I have not made
this change because I am totally unable to test it.

Tested on my kernel with _no_ built-in file-systems and with the ffs
bootloader settings of fsmod enabled.

Revision 1.25.16.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:09:05 2019 UTC (7 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +11 -10 lines
Sync with HEAD

Revision 1.27: download - view: text, markup, annotated - select for diffs
Fri Apr 5 20:09:29 2019 UTC (7 years, 7 months ago) by christos
Branches: MAIN
CVS tags: phil-wifi-20190609, isaki-audio2-base, isaki-audio2
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +2 -2 lines
Go back ot using 0x%x instead of %#x because we don't always support the
format. See subr_prf.c

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sun Mar 31 20:08:45 2019 UTC (7 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +12 -11 lines
fix warnings, printf formats, etc.

Revision 1.13.2.4: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:38:46 2017 UTC (8 years, 11 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.13.2.3: preferred, colored; branchpoint 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13.2.3: +39 -20 lines
update from HEAD

Revision 1.20.6.1: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:56:03 2016 UTC (10 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20: +40 -21 lines
Sync with HEAD

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sun Aug 21 08:27:57 2016 UTC (10 years, 2 months ago) by christos
Branches: 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-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, 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, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, netbsd-8-base, netbsd-8-3-RELEASE, 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
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +1 -15 lines
delete now unused function .

Revision 1.20.10.1: download - view: text, markup, annotated - select for diffs
Sat Aug 6 00:19:09 2016 UTC (10 years, 3 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20: +40 -7 lines
Sync with HEAD

Revision 1.24: download - view: text, markup, annotated - select for diffs
Thu Aug 4 21:39:20 2016 UTC (10 years, 3 months ago) by rjs
Branches: MAIN
CVS tags: pgoyette-localcount-20160806
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -2 lines
Another header change.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Thu Aug 4 06:58:41 2016 UTC (10 years, 3 months ago) by nonaka
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +38 -5 lines
Sync with sys/ufs/ext2fs/ext2fs_bswap.c.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Thu Aug 4 03:16:00 2016 UTC (10 years, 3 months ago) by nonaka
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -2 lines
pass EXT2_DINODE_SIZE(fs) as isize to e2fs_iload().
should fix build failure.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Wed Aug 3 09:11:18 2016 UTC (10 years, 3 months ago) by rjs
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +2 -2 lines
Adjust for change to kernel ext2fs headers.

Revision 1.13.2.3: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:04:30 2014 UTC (12 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.13.2.2: preferred, colored; branchpoint 1.13: preferred, colored
Changes since revision 1.13.2.2: +22 -65 lines
Rebase to HEAD as of a few days ago.

Revision 1.10.2.4: download - view: text, markup, annotated - select for diffs
Thu May 22 11:41:04 2014 UTC (12 years, 5 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.10.2.3: preferred, colored; branchpoint 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10.2.3: +42 -84 lines
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.18.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:46:08 2014 UTC (12 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18: +21 -64 lines
sync with head

Revision 1.20: download - view: text, markup, annotated - select for diffs
Thu Mar 20 03:13:18 2014 UTC (12 years, 8 months ago) by christos
Branches: 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, 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, 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: pgoyette-localcount, nick-nhusb
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +20 -63 lines
reduce size by 1K by sharing the ls code.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sun Oct 20 17:17:30 2013 UTC (13 years ago) by christos
Branches: MAIN
CVS tags: riastradh-drm2-base3
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -2 lines
XXX: gcc initializations

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun Jun 23 07:28:36 2013 UTC (13 years, 4 months ago) by dholland
Branches: MAIN
CVS tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Branch point for: rmind-smpnet
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -2 lines
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.13.2.2: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:20:23 2013 UTC (13 years, 4 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.13.2.1: preferred, colored; branchpoint 1.13: preferred, colored
Changes since revision 1.13.2.1: +20 -19 lines
resync from head

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Jun 23 02:06:05 2013 UTC (13 years, 4 months ago) by dholland
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -2 lines
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.16: download - view: text, markup, annotated - select for diffs
Wed Jun 19 17:51:26 2013 UTC (13 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +9 -9 lines
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.15: download - view: text, markup, annotated - select for diffs
Fri May 10 15:22:37 2013 UTC (13 years, 6 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +18 -17 lines
Wrap >80 char lines that overflowed on NDADDR -> EXT2FS_NDADDR changes.

Revision 1.13.2.1: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:29:58 2013 UTC (13 years, 8 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +19 -19 lines
resync with head

Revision 1.10.2.3: download - view: text, markup, annotated - select for diffs
Wed Jan 23 00:06:24 2013 UTC (13 years, 9 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.10.2.2: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.2.2: +19 -19 lines
sync with head

Revision 1.14: download - view: text, markup, annotated - select for diffs
Tue Jan 22 09:39:14 2013 UTC (13 years, 9 months ago) by dholland
Branches: MAIN
CVS tags: yamt-pagecache-base8, khorben-n900, agc-symver-base, agc-symver
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +19 -19 lines
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.12.2.1: download - view: text, markup, annotated - select for diffs
Sun Jun 3 21:42:52 2012 UTC (14 years, 5 months ago) by jdc
Branches: netbsd-6
CVS tags: 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, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +2 -4 lines
Pull up revisions:
  src/sys/arch/i386/stand/lib/exec.c revision 1.50
  src/sys/arch/sandpoint/stand/altboot/main.c revision 1.21 via patch
  src/sys/lib/libsa/ext2fs.c revision 1.13
  src/sys/lib/libsa/ffsv1.c revision 1.6
  src/sys/lib/libsa/ffsv2.c revision 1.6
  src/sys/lib/libsa/globals.c revision 1.9
  src/sys/lib/libsa/lfsv1.c revision 1.5
  src/sys/lib/libsa/lfsv2.c revision 1.5
  src/sys/lib/libsa/stand.h revision 1.76
  src/sys/lib/libsa/ufs.c revision 1.58
(requested by dsl in ticket #279).

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.10.6.2: download - view: text, markup, annotated - select for diffs
Sat Jun 2 11:09:36 2012 UTC (14 years, 5 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.10.6.1: preferred, colored; branchpoint 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10.6.1: +2 -4 lines
sync to latest -current.

Revision 1.10.2.2: download - view: text, markup, annotated - select for diffs
Wed May 23 10:08:13 2012 UTC (14 years, 5 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.10.2.1: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.2.1: +2 -4 lines
sync with head.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Mon May 21 21:34:16 2012 UTC (14 years, 5 months ago) by dsl
Branches: MAIN
CVS tags: yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, jmcneill-usbmp-base10
Branch point for: tls-maxphys
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -4 lines
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.10.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:08:33 2012 UTC (14 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +117 -1 lines
sync with head

Revision 1.10.6.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:35:35 2012 UTC (14 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +117 -1 lines
merge to -current.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Jan 16 18:44:13 2012 UTC (14 years, 10 months ago) by christos
Branches: 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
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -30 lines
PR/45796: Evgeniy Ivanov minixfs3 support.
Split out fn_match since we have 3 copies now.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Dec 25 06:09:08 2011 UTC (14 years, 10 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +145 -1 lines
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.9.6.1: download - view: text, markup, annotated - select for diffs
Thu Jun 23 14:20:23 2011 UTC (15 years, 4 months ago) by cherry
Branches: cherry-xenmp
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +7 -7 lines
Catchup with rmind-uvmplock merge.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Jun 16 13:27:58 2011 UTC (15 years, 5 months ago) by joerg
Branches: 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
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +7 -7 lines
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.8.4.1: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:55:29 2011 UTC (15 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +2 -1 lines
sync with head

Revision 1.4.36.1: download - view: text, markup, annotated - select for diffs
Sun Jan 16 12:38:27 2011 UTC (15 years, 10 months ago) by bouyer
Branches: netbsd-5
CVS tags: 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
Diff to: previous 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4: +6 -5 lines
Pull up following revision(s) (requested by tsutsui in ticket #1486):
	sbin/fsck_ext2fs/setup.c: revision 1.26
	sbin/newfs_ext2fs/mke2fs.c: revision 1.10
	sbin/newfs_ext2fs/mke2fs.c: revision 1.11
	sbin/newfs_ext2fs/mke2fs.c: revision 1.12
	sbin/fsck_ext2fs/inode.c: revision 1.24
	sys/lib/libsa/ext2fs.c: revision 1.6
	sbin/newfs_ext2fs/extern.h: revision 1.3
	sbin/fsck_ext2fs/inode.c: revision 1.25
	sys/lib/libsa/ext2fs.c: revision 1.7
	sbin/fsck_ext2fs/inode.c: revision 1.26
	sys/ufs/ext2fs/ext2fs_inode.c: revision 1.68
	sbin/fsck_ext2fs/inode.c: revision 1.27
	sbin/fsck_ext2fs/inode.c: revision 1.28
	sys/ufs/ext2fs/ext2fs_dinode.h: revision 1.18
	sys/ufs/ext2fs/ext2fs_dinode.h: revision 1.19
	sbin/newfs_ext2fs/newfs_ext2fs.c: revision 1.5
	sbin/newfs_ext2fs/newfs_ext2fs.8: revision 1.2
	sbin/newfs_ext2fs/newfs_ext2fs.c: revision 1.6
	sbin/newfs_ext2fs/newfs_ext2fs.8: revision 1.3
	sys/ufs/ext2fs/ext2fs_vfsops.c: revision 1.142
	sbin/newfs_ext2fs/newfs_ext2fs.c: revision 1.7
	sbin/newfs_ext2fs/newfs_ext2fs.8: revision 1.4
	sbin/newfs_ext2fs/newfs_ext2fs.c: revision 1.8
PR/40936: Frederik Sausmikat: ext2fs: add support for inodes > 128 bytes
Support variable inode sizes.
catch up with variable inode size.
Don't use e2fs_inode_size in superblock on E2FS_REV0 file system.
- accept only EXT2_REV0_DINODE_SIZE inodesize on -O 0
- use inodesize to get offset of inode, not struct ext2fs_dinode array
Replace a magic number with a new EXT2_REV0_DINODE_SIZE macro.
Use EXT2_DINODE_SIZE() to get offset of inode, not struct ext2fs_dinode array.
Fix botched logic in inodesize check.
Use inodesize to get offset of inode in one more place.
- add a sanity check for e2fs_inode_size in readsb()
- use EXT2_DINODE_SIZE() rather than sizeof(struct ext2fs_dinode) or
  struct ext2fs_dinode array/pointer to see e2fs_ipb and inode offsets
Sort options.
New sentence, new line.
Sort options in usage.
- unsigned -> unsigned int
- remove unnecessary casts from malloc(3) and free(3)
- fix a bogus indent
Use "size > INT32_MAX" rather than "size >= 0x80000000U" to check 2GB limit.
Add missed byteswap ops against ext2fs_dinode members.
Handle 32 bit uid field on E2FS_REV1.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Jan 2 21:37:01 2011 UTC (15 years, 10 months ago) by jakllsch
Branches: MAIN
CVS tags: rmind-uvmplock-nbase, rmind-uvmplock-base, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: cherry-xenmp
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -1 lines
Zero the in-memory super block after allocation.  It contains a pointer
that, if not properly initialized, could be improperly deallocated.

Revision 1.4.26.2: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:04:22 2010 UTC (16 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.4.26.1: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.26.1: +1 -6 lines
sync with head

Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon Oct 19 18:41:16 2009 UTC (17 years, 1 month ago) by bouyer
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, matt-premerge-20091211, matt-mips64-premerge-20101231, jym-xensuspend-nbase
Branch point for: rmind-uvmplock
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +1 -6 lines
Remove closes 3 & 4 from my licence. Lots of thanks to Soren Jacobsen
for the booring work !

Revision 1.5.4.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:22:16 2009 UTC (17 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5: +6 -5 lines
Sync with HEAD.

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

Revision 1.4.26.1: download - view: text, markup, annotated - select for diffs
Mon May 4 08:13:51 2009 UTC (17 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +10 -5 lines
sync with head.

Revision 1.4.34.2: download - view: text, markup, annotated - select for diffs
Tue Mar 3 18:33:36 2009 UTC (17 years, 8 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.4.34.1: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.34.1: +6 -5 lines
Sync with HEAD.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Mar 2 10:25:00 2009 UTC (17 years, 8 months ago) by tsutsui
Branches: MAIN
CVS tags: yamt-nfs-mp-base8, 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
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +4 -3 lines
Use EXT2_DINODE_SIZE() to get offset of inode, not struct ext2fs_dinode array.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Mar 1 19:37:16 2009 UTC (17 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -3 lines
catch up with variable inode size.

Revision 1.4.34.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:19:57 2009 UTC (17 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +5 -1 lines
Sync with HEAD.

Revision 1.4.22.1: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:29:22 2009 UTC (17 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4: +5 -1 lines
Sync with HEAD.

Revision 1.4.32.1: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:15:18 2008 UTC (17 years, 11 months ago) by haad
Branches: haad-dm
Diff to: previous 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4: +5 -1 lines
Update haad-dm branch to haad-dm-base2.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Wed Nov 19 12:36:41 2008 UTC (18 years ago) by ad
Branches: MAIN
CVS tags: mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: jym-xensuspend
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +5 -1 lines
For the x86 boot loader, autoload a kernel module corresponding to the
root file system type.

Revision 1.4.16.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:56:39 2008 UTC (18 years, 10 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.4.16.1: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.16.1: +927 -0 lines
sync with HEAD

Revision 1.4.8.2: download - view: text, markup, annotated - select for diffs
Sat Dec 8 18:20:52 2007 UTC (18 years, 11 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.4.8.1: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.8.1: +927 -0 lines
Sync with HEAD.

Revision 1.4.6.2: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:33:40 2007 UTC (18 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.4.6.1: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.6.1: +927 -0 lines
sync with head

Revision 1.4.2.2: download - view: text, markup, annotated - select for diffs
Mon Dec 3 16:15:02 2007 UTC (18 years, 11 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.4.2.1: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.2.1: +927 -0 lines
Sync with HEAD.

Revision 1.4.16.1
Sun Dec 2 06:47:43 2007 UTC (18 years, 11 months ago) by matt
Branches: matt-armv6
FILE REMOVED
Changes since revision 1.4: +0 -927 lines
file ext2fs.c was added on branch matt-armv6 on 2008-01-09 01:56:39 +0000

Revision 1.4.8.1
Sun Dec 2 06:47:43 2007 UTC (18 years, 11 months ago) by mjf
Branches: mjf-devfs
FILE REMOVED
Changes since revision 1.4: +0 -927 lines
file ext2fs.c was added on branch mjf-devfs on 2007-12-08 18:20:52 +0000

Revision 1.4.6.1
Sun Dec 2 06:47:43 2007 UTC (18 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
FILE REMOVED
Changes since revision 1.4: +0 -927 lines
file ext2fs.c was added on branch yamt-lazymbuf on 2007-12-07 17:33:40 +0000

Revision 1.4.2.1
Sun Dec 2 06:47:43 2007 UTC (18 years, 11 months ago) by joerg
Branches: jmcneill-pm
FILE REMOVED
Changes since revision 1.4: +0 -927 lines
file ext2fs.c was added on branch jmcneill-pm on 2007-12-03 16:15:02 +0000

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Dec 2 06:47:43 2007 UTC (18 years, 11 months ago) by tsutsui
Branches: 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, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-net80211-sync-base, nick-net80211-sync, netbsd-5-base, 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, 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, jmcneill-pm-base, hpcarm-cleanup-nbase, hpcarm-cleanup-base, haad-dm-base1, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, ad-socklock-base1
Branch point for: yamt-nfs-mp, yamt-lazymbuf, nick-hppapmap, netbsd-5, mjf-devfs2, mjf-devfs, matt-armv6, jmcneill-pm, haad-dm
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +5 -2 lines
- also pass correct size on dealloc() of in-memory superblock data
- also call dealloc() for group descriptor blocks

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Dec 2 06:12:35 2007 UTC (18 years, 11 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -2 lines
Allocate correct size for in-memory data struct m_ext2fs
(which is larger than SBSIZE).

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Dec 2 05:23:40 2007 UTC (18 years, 11 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +13 -8 lines
- fix description about index structure of an inode to match ext2fs_dinode
- put more byteswap ops on reading block numbers in indirect blocks
  (XXX: untested on big endian machines)

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sat Dec 1 18:06:22 2007 UTC (18 years, 11 months ago) by tsutsui
Branches: MAIN
Add ext2fs support for libsa.

Mostly based on ufs.c, and some ext2fs specific stuff is pulled from
sys/ufs/ext2fs/ext2fs_bswap.c and sys/ufs/ext2fs/ext2fs_vfsops.c.

XXX1: Should we share ufs.c with #ifdef LIBSA_EXT2FS as ffs and lfs do?
XXX2: Maybe we should share ext2fs_bswap.c with kernel.

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>