The NetBSD Project

CVS log for src/usr.sbin/installboot/ffs.c

[BACK] Up to [cvs.NetBSD.org] / src / usr.sbin / installboot

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.33 / (download) - annotate - [select for diffs], Thu Nov 17 06:40:40 2022 UTC (15 months, 1 week ago) by chs
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, HEAD
Changes since 1.32: +4 -2 lines
Diff to previous 1.32 (colored)

Restore backward compatibility of UFS2 with previous NetBSD releases by
disabling support in UFS2 for extended attributes (including ACLs).
Add a new variant of UFS2 called "UFS2ea" that does support extended attributes.
Add new	fsck_ffs operations "-c	ea" and	"-c no-ea" to convert file systems
from UFS2 to UFS2ea and	vice-versa (both of which delete all existing extended
attributes in the process).

Revision 1.29.12.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:05:08 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.29.12.2: +8 -8 lines
Diff to previous 1.29.12.2 (colored) to branchpoint 1.29 (colored) next main 1.30 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.29.6.2 / (download) - annotate - [select for diffs], Thu May 22 11:43:04 2014 UTC (9 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.29.6.1: +14 -14 lines
Diff to previous 1.29.6.1 (colored) to branchpoint 1.29 (colored) next main 1.30 (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.29.12.2 / (download) - annotate - [select for diffs], Sun Jun 23 06:29:04 2013 UTC (10 years, 8 months ago) by tls
Branch: tls-maxphys
Changes since 1.29.12.1: +8 -8 lines
Diff to previous 1.29.12.1 (colored) to branchpoint 1.29 (colored)

resync from head

Revision 1.32 / (download) - annotate - [select for diffs], Sun Jun 23 02:06:06 2013 UTC (10 years, 8 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-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, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, 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, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, 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-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.31: +10 -10 lines
Diff to previous 1.31 (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.31 / (download) - annotate - [select for diffs], Wed Jun 19 17:51:26 2013 UTC (10 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.30: +8 -8 lines
Diff to previous 1.30 (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.29.12.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:30:43 2013 UTC (11 years ago) by tls
Branch: tls-maxphys
Changes since 1.29: +6 -6 lines
Diff to previous 1.29 (colored)

resync with head

Revision 1.29.6.1 / (download) - annotate - [select for diffs], Wed Jan 23 00:06:42 2013 UTC (11 years, 1 month ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.29: +6 -6 lines
Diff to previous 1.29 (colored)

sync with head

Revision 1.30 / (download) - annotate - [select for diffs], Tue Jan 22 09:39:19 2013 UTC (11 years, 1 month ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base8, agc-symver-base, agc-symver
Changes since 1.29: +6 -6 lines
Diff to previous 1.29 (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.29 / (download) - annotate - [select for diffs], Thu Jan 14 16:27:49 2010 UTC (14 years, 1 month ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, tls-maxphys
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored)

Remove if defined(__RCSID) around __RCSID() macro.
#include "nbtool_config.h" is enough for tools.

Revision 1.28 / (download) - annotate - [select for diffs], Thu Jan 7 13:26:00 2010 UTC (14 years, 1 month ago) by tsutsui
Branch: MAIN
Changes since 1.27: +6 -6 lines
Diff to previous 1.27 (colored)

Add a sectorsize parameter member in struct ib_params and use it
where sector size (disk block size) is required, instead of
DEV_BSIZE constant which means device I/O block size.

"Looks reasonable" from dholland@, and fixes tools installboot(8)
on Cygwin where DEV_BSIZE != 512 as mentioned in PR toolchain/42555.

Revision 1.26.4.1 / (download) - annotate - [select for diffs], Wed May 13 19:20:24 2009 UTC (14 years, 9 months ago) by jym
Branch: jym-xensuspend
Changes since 1.26: +5 -5 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.27 / (download) - annotate - [select for diffs], Sun Apr 5 12:03:48 2009 UTC (14 years, 10 months ago) by lukem
Branch: MAIN
CVS Tags: matt-premerge-20091211, jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.26: +5 -5 lines
Diff to previous 1.26 (colored)

fix sign-compare issues

Revision 1.26 / (download) - annotate - [select for diffs], Sun Oct 12 16:03:27 2008 UTC (15 years, 4 months ago) by apb
Branch: MAIN
CVS Tags: netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, 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
Branch point for: jym-xensuspend
Changes since 1.25: +6 -2 lines
Diff to previous 1.25 (colored)

Try to improve warning messages when stage2 bootstrap is not found
in the root of the file systrem in which the installation is being
performed.

Inspired by PR 39728 by der Mouse

Revision 1.24.16.1 / (download) - annotate - [select for diffs], Sun May 18 12:36:18 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-pf42
Changes since 1.24: +2 -9 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

sync with head.

Revision 1.25 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:16 2008 UTC (15 years, 10 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, hpcarm-cleanup-nbase
Changes since 1.24: +2 -9 lines
Diff to previous 1.24 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.15.2.3 / (download) - annotate - [select for diffs], Thu Nov 9 22:52:34 2006 UTC (17 years, 3 months ago) by tron
Branch: netbsd-3
Changes since 1.15.2.2: +7 -5 lines
Diff to previous 1.15.2.2 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored)

Pull up following revision(s) (requested by bad in ticket #1524):
	usr.sbin/installboot/ffs.c: revision 1.21
Apply changes to ffs_find_disk_blocks_ufs1() from revision 1.19
to ffs_find_disk_blocks_ufs2() too.  Except for data types the
code in the two functions is the same.
From the original commit message:
    Add support for finding files on RAID partitions.  This allows us to
    add the block list of the 2nd stage boot loader to the 1st stage boot
    loader when the partition is a RAID partition.
Briefly tested under 3.x/i386.

Revision 1.15.2.2 / (download) - annotate - [select for diffs], Thu Nov 9 22:51:09 2006 UTC (17 years, 3 months ago) by tron
Branch: netbsd-3
Changes since 1.15.2.1: +4 -3 lines
Diff to previous 1.15.2.1 (colored) to branchpoint 1.15 (colored)

Pull up following revision(s) (requested by bad in ticket #1524):
	usr.sbin/installboot/ffs.c: revision 1.20
Don't include <dev/raidframe/raidframevar.h> but define RF_PROTECTED_SECTORS
directly.
Including raidframevar.h needs several definitions adding to the compat
framework for the tools builds, which aren't needed here.
XXX It's probably sensible to split off the few defines from raidframevar.h
    into a separate header file.

Revision 1.15.2.1 / (download) - annotate - [select for diffs], Thu Nov 9 22:49:49 2006 UTC (17 years, 3 months ago) by tron
Branch: netbsd-3
Changes since 1.15: +32 -6 lines
Diff to previous 1.15 (colored)

Pull up following revision(s) (requested by bad in ticket #1524):
	usr.sbin/installboot/installboot.8: revision 1.54 via patch
	usr.sbin/installboot/installboot.h: revision 1.31
	usr.sbin/installboot/fstypes.c: revision 1.9
	usr.sbin/installboot/ffs.c: revision 1.19
Add support for finding files on RAID partitions.  This allows us to
add the block list of the 2nd stage boot loader to the 1st stage boot
loader when the partition is a RAID partition.  Tested on sparc.
Reviewed by gdt.

Revision 1.24 / (download) - annotate - [select for diffs], Mon Oct 30 07:03:34 2006 UTC (17 years, 4 months ago) by he
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: yamt-pf42
Changes since 1.23: +10 -2 lines
Diff to previous 1.23 (colored)

In order to avoid warnings (which is converted to error with -Werror)
about empty bodies in an if-statement, we need to make add some proprocessor
conditionals around these if statements.  FFS byte-swapping is sometimes
compiled out of install-media versions of this program.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Oct 23 19:44:32 2006 UTC (17 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.22: +4 -5 lines
Diff to previous 1.22 (colored)

buf can never be NULL (jani at xeebioneurope dot de)

Revision 1.22 / (download) - annotate - [select for diffs], Sun Oct 22 21:05:28 2006 UTC (17 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.21: +2 -3 lines
Diff to previous 1.21 (colored)

remove dead code.

Revision 1.21 / (download) - annotate - [select for diffs], Wed Sep 20 21:49:12 2006 UTC (17 years, 5 months ago) by bad
Branch: MAIN
Changes since 1.20: +7 -5 lines
Diff to previous 1.20 (colored)

Apply changes to ffs_find_disk_blocks_ufs1() from revision 1.19
to ffs_find_disk_blocks_ufs2() too.  Except for data types the
code in the two functions is the same.

From the original commit message:
    Add support for finding files on RAID partitions.  This allows us to
    add the block list of the 2nd stage boot loader to the 1st stage boot
    loader when the partition is a RAID partition.

Briefly tested under 3.x/i386.

Revision 1.20 / (download) - annotate - [select for diffs], Tue Jun 20 14:04:22 2006 UTC (17 years, 8 months ago) by jdc
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.19: +4 -3 lines
Diff to previous 1.19 (colored)

Don't include <dev/raidframe/raidframevar.h> but define RF_PROTECTED_SECTORS
directly.

Including raidframevar.h needs several definitions adding to the compat
framework for the tools builds, which aren't needed here.

XXX It's probably sensible to split off the few defines from raidframevar.h
    into a separate header file.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Jun 20 05:37:24 2006 UTC (17 years, 8 months ago) by jdc
Branch: MAIN
Changes since 1.18: +32 -6 lines
Diff to previous 1.18 (colored)

Add support for finding files on RAID partitions.  This allows us to
add the block list of the 2nd stage boot loader to the 1st stage boot
loader when the partition is a RAID partition.  Tested on sparc.

Reviewed by gdt.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Feb 18 12:39:38 2006 UTC (18 years ago) by dsl
Branch: MAIN
Changes since 1.17: +10 -2 lines
Diff to previous 1.17 (colored)

Remove support for byteswapped file systems if NO_FFS_SWAP is defined.
For SAMLLPROG builds.

Revision 1.17 / (download) - annotate - [select for diffs], Sun Oct 23 16:12:31 2005 UTC (18 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

Use the real field name (d_fileno instead of d_ino).

Revision 1.16 / (download) - annotate - [select for diffs], Fri Aug 19 02:09:50 2005 UTC (18 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.15: +6 -6 lines
Diff to previous 1.15 (colored)

64 bit inode changes

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Tue Jun 22 07:19:55 2004 UTC (19 years, 8 months ago) by tron
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-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
Changes since 1.14: +9 -2 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

Pull up revision 1.15 (requested by jmc in ticket #527):
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')
Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).
Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.
Fixes PR's: PR#17762 PR#25944

Revision 1.15 / (download) - annotate - [select for diffs], Sun Jun 20 22:20:17 2004 UTC (19 years, 8 months ago) by jmc
Branch: MAIN
CVS Tags: 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
Branch point for: netbsd-3
Changes since 1.14: +9 -2 lines
Diff to previous 1.14 (colored)

Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944

Revision 1.14 / (download) - annotate - [select for diffs], Sun Mar 21 21:18:40 2004 UTC (19 years, 11 months ago) by dsl
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.13: +7 -4 lines
Diff to previous 1.13 (colored)

When searching for the superblock, don't pick an ffsv1 superblock from the
location where we expect to find an ffsv2 superblock.
It could be the first alternate for a ffsv1 filesystem with 64k blocks.
Fixes part of PR kern/24809

Revision 1.13 / (download) - annotate - [select for diffs], Mon Oct 6 02:39:04 2003 UTC (20 years, 4 months ago) by lukem
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

spelo in comment

Revision 1.12 / (download) - annotate - [select for diffs], Fri May 30 09:22:50 2003 UTC (20 years, 9 months ago) by dsl
Branch: MAIN
Changes since 1.11: +3 -2 lines
Diff to previous 1.11 (colored)

Another mistake in the ufs2 code - a missing else.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Apr 5 11:30:53 2003 UTC (20 years, 10 months ago) by he
Branch: MAIN
Changes since 1.10: +5 -5 lines
Diff to previous 1.10 (colored)

Fix two mistakes done in the UFS2 merge:
 o Correct the order of arguments to ffs_read_disk_block; the second one
   is blocknumber to read, not the size to be read.  This would affect the
   UFS2 code, and is thus not much excercised at the moment.
 o The offsets in SBLOCKSEARCH are in bytes, but ffs_read_disk_block wants
   its location in terms of DEV_BSIZE blocks.  Fix this bug in ffs_match().
The latter together with the recent magic number fix to <ufs/ffs/fs.h>
fixes a cross build problem seen when doing a i386->sparc build.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Apr 2 23:02:29 2003 UTC (20 years, 10 months ago) by he
Branch: MAIN
Changes since 1.9: +6 -5 lines
Diff to previous 1.9 (colored)

Add cats for printf %llu arguments, for the benefit of LP64 platforms.

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

With the new UFS2 code, alternative places are searched for a super-block.
This includes block #0.  Therefore, allow read of block #0 in
ffs_read_disk_block(); change assert (blkno > 0) to (blkno >= 0).

Revision 1.8 / (download) - annotate - [select for diffs], Wed Apr 2 10:39:48 2003 UTC (20 years, 10 months ago) by fvdl
Branch: MAIN
Changes since 1.7: +198 -44 lines
Diff to previous 1.7 (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.7 / (download) - annotate - [select for diffs], Fri Jan 24 21:55:31 2003 UTC (21 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.6: +7 -5 lines
Diff to previous 1.6 (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.6 / (download) - annotate - [select for diffs], Wed May 15 09:44:55 2002 UTC (21 years, 9 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, fvdl_fs64_base
Changes since 1.5: +10 -6 lines
Diff to previous 1.5 (colored)

bootblock.h:
- unify sparc_bbinfo (1064 bytes, with 256 block entries)
  and sun68k_bbinfo (296 byte, with 64 block entries)
  into shared_bbinfo (512 bytes, with 118 block entries),
  which will be also shared by future bbinfo-using platforms
  (including macppc)
- add datestamp to *_BBINFO_MAGIC strings, to prevent installboot vs
  bootxx version skew.
- add macppc support

*/bootxx.c:
- migrate to new shared_bbinfo structure

installboot:
- add macppc support (still needs applepartmap support and testing)
- improve and add some more warnings & errors to installboot
- implement shared_bbinfo_clearboot() and shared_bbinfo_setboot(), which
  perform the majority of the work for bbinfo-using back-ends
  (rather than replicating that across multiple back-ends).

Revision 1.5 / (download) - annotate - [select for diffs], Tue May 14 06:18:50 2002 UTC (21 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.4: +36 -27 lines
Diff to previous 1.4 (colored)

user visible stuff:
- add `-B s2bno', to provide the starting block for the secondary bootstrap.
  intended for use on platforms where the blocks of the stage2 bootstrap
  are hardcoded into the stage1 bootstrap (currently: sparc, sun2)
- don't support `-b s1bno' for sparc or sun2, since the primary is always
  at a fixed location on the disk.
- if `filesystem' is a regular file, use fsync(2) instead of sync(2)

code changes:
- add hardcode_stage2(), which uses -B s2bno and the size of the
  provided secondary bootstrap (as an actual file, not as part of the
  `filesystem' argument) to provide a sequential list of blocks from s2bno,
  each block being the appropriate file system size (from
  params->fstype->blocksize)
- add blocksize and needswap run-time parameters to ib_fs
- in *_match(), set params->fstype->blocksize to the underlying block size
  (8KB for raw), and params->fstype->needswap as appropriate
- rename IB_STARTBLOCK to IB_STAGE1START, and add IB_STAGE2START
- use hardcode_stage2() to implement raw_findstage2() and IB_STAGE2BLOCK
  support for ffs_findstage2()
- improve some comments, add some prototypes, ...

Revision 1.4 / (download) - annotate - [select for diffs], Tue May 7 12:22:23 2002 UTC (21 years, 9 months ago) by pk
Branch: MAIN
Changes since 1.3: +4 -2 lines
Diff to previous 1.3 (colored)

Stop directory entry search if d_reclen == 0.

Revision 1.3 / (download) - annotate - [select for diffs], Thu May 2 13:03:32 2002 UTC (21 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.2: +4 -3 lines
Diff to previous 1.2 (colored)

tweak asserts

Revision 1.2 / (download) - annotate - [select for diffs], Tue Apr 30 14:21:17 2002 UTC (21 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.1: +21 -3 lines
Diff to previous 1.1 (colored)

add some more assert()s

Revision 1.1 / (download) - annotate - [select for diffs], Fri Apr 19 07:08:51 2002 UTC (21 years, 10 months ago) by lukem
Branch: MAIN

- Add code from Matt Fredette <fredette@theory.lcs.mit.edu> to implement
  fstype checking, and back-end "ffs" support.
- Consistently use at least uint32_t for blocknumbers (vs. int / long / ...)
- Consistently use uintXX_t instead of u_intXX_t.
- Move various duplicated prototypes into "installboot.h"

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>