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


Default branch: MAIN


Revision 1.34 / (download) - annotate - [select for diffs], Fri Apr 29 07:42:07 2022 UTC (9 months ago) by rin
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.33: +2 -8 lines
Diff to previous 1.33 (colored)

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) - annotate - [select for diffs], Wed Apr 27 14:48:50 2022 UTC (9 months ago) by rin
Branch: MAIN
Changes since 1.32: +7 -1 lines
Diff to previous 1.32 (colored)

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) - annotate - [select for diffs], Wed Apr 27 11:48:26 2022 UTC (9 months ago) by rin
Branch: MAIN
Changes since 1.31: +2 -8 lines
Diff to previous 1.31 (colored)

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) - annotate - [select for diffs], Sun Apr 24 06:48:15 2022 UTC (9 months ago) by mlelstv
Branch: MAIN
Changes since 1.30: +8 -2 lines
Diff to previous 1.30 (colored)

Ask driver about sector size to support reading superblocks from fixed
byte offsets.

Revision 1.30 / (download) - annotate - [select for diffs], Tue Apr 19 09:25:38 2022 UTC (9 months, 1 week ago) by skrll
Branch: MAIN
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

Typo in comment. avoinds -> avoids

Revision 1.25.16.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:04 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.25.16.2: +1 -1 lines
Diff to previous 1.25.16.2 (colored) to branchpoint 1.25 (colored) next main 1.26 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.25.16.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:53 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.25.16.1: +2 -2 lines
Diff to previous 1.25.16.1 (colored) to branchpoint 1.25 (colored)

Merge changes from current as of 20200406

Revision 1.28.4.1 / (download) - annotate - [select for diffs], Sat Jan 25 22:38:51 2020 UTC (3 years ago) by ad
Branch: ad-namecache
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored) next main 1.29 (colored)

Sync with head.

Revision 1.29 / (download) - annotate - [select for diffs], Fri Jan 24 13:20:33 2020 UTC (3 years ago) by jakllsch
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, 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
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

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) - annotate - [select for diffs], Mon Jun 24 13:58:24 2019 UTC (3 years, 7 months ago) by pgoyette
Branch: MAIN
CVS Tags: phil-wifi-20191119, 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, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

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) - annotate - [select for diffs], Mon Jun 10 22:09:05 2019 UTC (3 years, 7 months ago) by christos
Branch: phil-wifi
Changes since 1.25: +11 -10 lines
Diff to previous 1.25 (colored)

Sync with HEAD

Revision 1.27 / (download) - annotate - [select for diffs], Fri Apr 5 20:09:29 2019 UTC (3 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20190609, isaki-audio2-base, isaki-audio2
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

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) - annotate - [select for diffs], Sun Mar 31 20:08:45 2019 UTC (3 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.25: +12 -11 lines
Diff to previous 1.25 (colored)

fix warnings, printf formats, etc.

Revision 1.13.2.4 / (download) - annotate - [select for diffs], Sun Dec 3 11:38:46 2017 UTC (5 years, 1 month ago) by jdolecek
Branch: tls-maxphys
Changes since 1.13.2.3: +39 -20 lines
Diff to previous 1.13.2.3 (colored) to branchpoint 1.13 (colored) next main 1.14 (colored)

update from HEAD

Revision 1.20.6.1 / (download) - annotate - [select for diffs], Wed Oct 5 20:56:03 2016 UTC (6 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.20: +40 -21 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

Sync with HEAD

Revision 1.25 / (download) - annotate - [select for diffs], Sun Aug 21 08:27:57 2016 UTC (6 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-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-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
Changes since 1.24: +1 -15 lines
Diff to previous 1.24 (colored)

delete now unused function .

Revision 1.20.10.1 / (download) - annotate - [select for diffs], Sat Aug 6 00:19:09 2016 UTC (6 years, 5 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.20: +40 -7 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

Sync with HEAD

Revision 1.24 / (download) - annotate - [select for diffs], Thu Aug 4 21:39:20 2016 UTC (6 years, 5 months ago) by rjs
Branch: MAIN
CVS Tags: pgoyette-localcount-20160806
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

Another header change.

Revision 1.23 / (download) - annotate - [select for diffs], Thu Aug 4 06:58:41 2016 UTC (6 years, 5 months ago) by nonaka
Branch: MAIN
Changes since 1.22: +38 -5 lines
Diff to previous 1.22 (colored)

Sync with sys/ufs/ext2fs/ext2fs_bswap.c.

Revision 1.22 / (download) - annotate - [select for diffs], Thu Aug 4 03:16:00 2016 UTC (6 years, 5 months ago) by nonaka
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

pass EXT2_DINODE_SIZE(fs) as isize to e2fs_iload().
should fix build failure.

Revision 1.21 / (download) - annotate - [select for diffs], Wed Aug 3 09:11:18 2016 UTC (6 years, 5 months ago) by rjs
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

Adjust for change to kernel ext2fs headers.

Revision 1.13.2.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:30 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-maxphys
Changes since 1.13.2.2: +22 -65 lines
Diff to previous 1.13.2.2 (colored) to branchpoint 1.13 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.10.2.4 / (download) - annotate - [select for diffs], Thu May 22 11:41:04 2014 UTC (8 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.10.2.3: +42 -84 lines
Diff to previous 1.10.2.3 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)

sync with head.

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

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

Revision 1.18.2.1 / (download) - annotate - [select for diffs], Sun May 18 17:46:08 2014 UTC (8 years, 8 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.18: +21 -64 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

sync with head

Revision 1.20 / (download) - annotate - [select for diffs], Thu Mar 20 03:13:18 2014 UTC (8 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, 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
Changes since 1.19: +20 -63 lines
Diff to previous 1.19 (colored)

reduce size by 1K by sharing the ls code.

Revision 1.19 / (download) - annotate - [select for diffs], Sun Oct 20 17:17:30 2013 UTC (9 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: riastradh-drm2-base3
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

XXX: gcc initializations

Revision 1.18 / (download) - annotate - [select for diffs], Sun Jun 23 07:28:36 2013 UTC (9 years, 7 months ago) by dholland
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Branch point for: rmind-smpnet
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (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.13.2.2 / (download) - annotate - [select for diffs], Sun Jun 23 06:20:23 2013 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.13.2.1: +20 -19 lines
Diff to previous 1.13.2.1 (colored) to branchpoint 1.13 (colored)

resync from head

Revision 1.17 / (download) - annotate - [select for diffs], Sun Jun 23 02:06:05 2013 UTC (9 years, 7 months ago) by dholland
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (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.16 / (download) - annotate - [select for diffs], Wed Jun 19 17:51:26 2013 UTC (9 years, 7 months ago) by dholland
Branch: MAIN
Changes since 1.15: +9 -9 lines
Diff to previous 1.15 (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.15 / (download) - annotate - [select for diffs], Fri May 10 15:22:37 2013 UTC (9 years, 8 months ago) by tsutsui
Branch: MAIN
Changes since 1.14: +18 -17 lines
Diff to previous 1.14 (colored)

Wrap >80 char lines that overflowed on NDADDR -> EXT2FS_NDADDR changes.

Revision 1.13.2.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:29:58 2013 UTC (9 years, 11 months ago) by tls
Branch: tls-maxphys
Changes since 1.13: +19 -19 lines
Diff to previous 1.13 (colored)

resync with head

Revision 1.10.2.3 / (download) - annotate - [select for diffs], Wed Jan 23 00:06:24 2013 UTC (10 years ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.10.2.2: +19 -19 lines
Diff to previous 1.10.2.2 (colored) to branchpoint 1.10 (colored)

sync with head

Revision 1.14 / (download) - annotate - [select for diffs], Tue Jan 22 09:39:14 2013 UTC (10 years ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base8, khorben-n900, agc-symver-base, agc-symver
Changes since 1.13: +19 -19 lines
Diff to previous 1.13 (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.12.2.1 / (download) - annotate - [select for diffs], Sun Jun 3 21:42:52 2012 UTC (10 years, 7 months ago) by jdc
Branch: 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
Changes since 1.12: +2 -4 lines
Diff to previous 1.12 (colored) next main 1.13 (colored)

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) - annotate - [select for diffs], Sat Jun 2 11:09:36 2012 UTC (10 years, 7 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.10.6.1: +2 -4 lines
Diff to previous 1.10.6.1 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)

sync to latest -current.

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

sync with head.

Revision 1.13 / (download) - annotate - [select for diffs], Mon May 21 21:34:16 2012 UTC (10 years, 8 months 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.12: +2 -4 lines
Diff to previous 1.12 (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.10.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:33 2012 UTC (10 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.10: +117 -1 lines
Diff to previous 1.10 (colored)

sync with head

Revision 1.10.6.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:35:35 2012 UTC (10 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.10: +117 -1 lines
Diff to previous 1.10 (colored)

merge to -current.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Jan 16 18:44:13 2012 UTC (11 years 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.11: +2 -30 lines
Diff to previous 1.11 (colored)

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

Revision 1.11 / (download) - annotate - [select for diffs], Sun Dec 25 06:09:08 2011 UTC (11 years, 1 month ago) by tsutsui
Branch: MAIN
Changes since 1.10: +145 -1 lines
Diff to previous 1.10 (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.9.6.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:20:23 2011 UTC (11 years, 7 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.9: +7 -7 lines
Diff to previous 1.9 (colored) next main 1.10 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jun 16 13:27:58 2011 UTC (11 years, 7 months 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.9: +7 -7 lines
Diff to previous 1.9 (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.8.4.1 / (download) - annotate - [select for diffs], Sat Mar 5 20:55:29 2011 UTC (11 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.8: +2 -1 lines
Diff to previous 1.8 (colored) next main 1.9 (colored)

sync with head

Revision 1.4.36.1 / (download) - annotate - [select for diffs], Sun Jan 16 12:38:27 2011 UTC (12 years ago) by bouyer
Branch: 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
Changes since 1.4: +6 -5 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

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) - annotate - [select for diffs], Sun Jan 2 21:37:01 2011 UTC (12 years ago) by jakllsch
Branch: 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
Changes since 1.8: +2 -1 lines
Diff to previous 1.8 (colored)

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) - annotate - [select for diffs], Thu Mar 11 15:04:22 2010 UTC (12 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.4.26.1: +1 -6 lines
Diff to previous 1.4.26.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

sync with head

Revision 1.8 / (download) - annotate - [select for diffs], Mon Oct 19 18:41:16 2009 UTC (13 years, 3 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, matt-premerge-20091211, matt-mips64-premerge-20101231, jym-xensuspend-nbase
Branch point for: rmind-uvmplock
Changes since 1.7: +1 -6 lines
Diff to previous 1.7 (colored)

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

Revision 1.5.4.1 / (download) - annotate - [select for diffs], Wed May 13 17:22:16 2009 UTC (13 years, 8 months ago) by jym
Branch: jym-xensuspend
Changes since 1.5: +6 -5 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

Sync with HEAD.

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

Revision 1.4.26.1 / (download) - annotate - [select for diffs], Mon May 4 08:13:51 2009 UTC (13 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.4: +10 -5 lines
Diff to previous 1.4 (colored)

sync with head.

Revision 1.4.34.2 / (download) - annotate - [select for diffs], Tue Mar 3 18:33:36 2009 UTC (13 years, 10 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.4.34.1: +6 -5 lines
Diff to previous 1.4.34.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

Sync with HEAD.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Mar 2 10:25:00 2009 UTC (13 years, 11 months ago) by tsutsui
Branch: 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
Changes since 1.6: +4 -3 lines
Diff to previous 1.6 (colored)

Use EXT2_DINODE_SIZE() to get offset of inode, not struct ext2fs_dinode array.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Mar 1 19:37:16 2009 UTC (13 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

catch up with variable inode size.

Revision 1.4.34.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:19:57 2009 UTC (14 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.4: +5 -1 lines
Diff to previous 1.4 (colored)

Sync with HEAD.

Revision 1.4.22.1 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:22 2009 UTC (14 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.4: +5 -1 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

Sync with HEAD.

Revision 1.4.32.1 / (download) - annotate - [select for diffs], Sat Dec 13 01:15:18 2008 UTC (14 years, 1 month ago) by haad
Branch: haad-dm
Changes since 1.4: +5 -1 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Nov 19 12:36:41 2008 UTC (14 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: jym-xensuspend
Changes since 1.4: +5 -1 lines
Diff to previous 1.4 (colored)

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

Revision 1.4.16.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:56:39 2008 UTC (15 years ago) by matt
Branch: matt-armv6
Changes since 1.4.16.1: +927 -0 lines
Diff to previous 1.4.16.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

sync with HEAD

Revision 1.4.8.2 / (download) - annotate - [select for diffs], Sat Dec 8 18:20:52 2007 UTC (15 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.4.8.1: +927 -0 lines
Diff to previous 1.4.8.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

Sync with HEAD.

Revision 1.4.6.2 / (download) - annotate - [select for diffs], Fri Dec 7 17:33:40 2007 UTC (15 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.4.6.1: +927 -0 lines
Diff to previous 1.4.6.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

sync with head

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Mon Dec 3 16:15:02 2007 UTC (15 years, 1 month ago) by joerg
Branch: jmcneill-pm
Changes since 1.4.2.1: +927 -0 lines
Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

Sync with HEAD.

Revision 1.4.16.1, Sun Dec 2 06:47:43 2007 UTC (15 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.4: +0 -927 lines
FILE REMOVED

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 (15 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.4: +0 -927 lines
FILE REMOVED

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 (15 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.4: +0 -927 lines
FILE REMOVED

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 (15 years, 2 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.4: +0 -927 lines
FILE REMOVED

file ext2fs.c was added on branch jmcneill-pm on 2007-12-03 16:15:02 +0000

Revision 1.4 / (download) - annotate - [select for diffs], Sun Dec 2 06:47:43 2007 UTC (15 years, 2 months ago) by tsutsui
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, 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
Changes since 1.3: +5 -2 lines
Diff to previous 1.3 (colored)

- also pass correct size on dealloc() of in-memory superblock data
- also call dealloc() for group descriptor blocks

Revision 1.3 / (download) - annotate - [select for diffs], Sun Dec 2 06:12:35 2007 UTC (15 years, 2 months ago) by tsutsui
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

Allocate correct size for in-memory data struct m_ext2fs
(which is larger than SBSIZE).

Revision 1.2 / (download) - annotate - [select for diffs], Sun Dec 2 05:23:40 2007 UTC (15 years, 2 months ago) by tsutsui
Branch: MAIN
Changes since 1.1: +13 -8 lines
Diff to previous 1.1 (colored)

- 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) - annotate - [select for diffs], Sat Dec 1 18:06:22 2007 UTC (15 years, 2 months ago) by tsutsui
Branch: 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.

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>