The NetBSD Project

CVS log for src/sbin/scan_ffs/scan_ffs.c

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.36.2.1: download - view: text, markup, annotated - select for diffs
Wed Feb 22 13:11:37 2023 UTC (21 months, 1 week ago) by martin
Branches: netbsd-10
CVS tags: 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
Diff to: previous 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36: +11 -2 lines
Pull up following revision(s) (requested by mlelstv in ticket #94):

	sbin/scan_ffs/Makefile: revision 1.11
	sbin/scan_ffs/scan_ffs.c: revision 1.37

Work on swapped-endian FFS.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Tue Jan 24 08:05:07 2023 UTC (22 months, 1 week ago) by mlelstv
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +11 -2 lines
Work on swapped-endian FFS.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Thu Nov 17 06:40:39 2022 UTC (2 years ago) by chs
Branches: MAIN
CVS tags: netbsd-10-base
Branch point for: netbsd-10
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +4 -2 lines
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.35: download - view: text, markup, annotated - select for diffs
Thu Jan 20 14:45:14 2022 UTC (2 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +3 -3 lines
O_CLOEXEC is not a mode :-)

Revision 1.34: download - view: text, markup, annotated - select for diffs
Thu Jan 20 14:44:19 2022 UTC (2 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +27 -7 lines
- use /dev/tty instead of stderr for SIGINFO messages
- use uintmax_t instead of ull
- print fractional percentage to show that we are making progress on large
  disks.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Wed Jan 19 01:40:05 2022 UTC (2 years, 10 months ago) by mrg
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +23 -2 lines
add SIGINFO support.  now you can know how far along the scan is.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Thu Oct 15 06:25:23 2015 UTC (9 years, 1 month ago) by dholland
Branches: MAIN
CVS tags: 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-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, 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, 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
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +34 -6 lines
Teach scan_ffs about lfs64.
(and also about byte-swapped lfs volumes, which might or might not
actually work)

Revision 1.31: download - view: text, markup, annotated - select for diffs
Sun Aug 2 18:18:09 2015 UTC (9 years, 4 months ago) by dholland
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +8 -7 lines
Add a (draft) 64-bit superblock. Make things build again.

Add pieces of support for using both superblock types where
convenient, and specifically to the superblock accessors, but don't
actually enable it anywhere.

First substantive step on PR 50000.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Sun Aug 2 18:14:16 2015 UTC (9 years, 4 months ago) by dholland
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +5 -5 lines
Use accessor functions for the version field of the lfs superblock.
I thought at first maybe the cases that test the version should be
rolled into the accessors, but on the whole I think the conclusion on
that is no.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sun Aug 2 18:08:12 2015 UTC (9 years, 4 months ago) by dholland
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +6 -6 lines
Fix assorted 64 -> 32 truncations in lfs. Also, some minor tidyups and
corrections in passing.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Tue Jul 28 05:09:35 2015 UTC (9 years, 4 months ago) by dholland
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -2 lines
Add a new lfs header file: lfs_accessors.h.

This contains all the accessor functions and macros out of lfs.h.
Add an include of lfs_accessors.h after all uses of lfs.h... except
for code that wants to define its own struct lfs-alike that the
accessors are supposed to play along with. For these, set STRUCT_LFS
and include lfs_accessors.h after the necessary structure has been
defined, so that lfs_accessors.h can emit functions in terms of it.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Fri Jul 24 06:59:32 2015 UTC (9 years, 4 months ago) by dholland
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +12 -6 lines
More lfs superblock accessors.
(This changes the rest of the code over; all the accessors were
already added.)

The difference between this commit and the previous one is arbitrary,
but the previous one passed the regression tests on its own so I'm
keeping it separate to help with any bisections that might be needed
in the future.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Fri Jul 24 06:56:42 2015 UTC (9 years, 4 months ago) by dholland
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +12 -11 lines
Switch to accessor functions for elements of the LFS on-disk
superblock. This will allow switching between 32/64 bit forms on the
fly; it will also allow handling LFS_EI reasonably tidily. (That
currently doesn't work on the superblock.)

It also gets rid of cpp abuse in the form of fake structure member
macros.

Also, instead of doing sleep/wakeup on &lfs_avail and &lfs_nextseg
inside the on-disk superblock, add extra elements to the in-memory
struct lfs for this. (XXX: these should be changed to condvars, but
not right now)

XXX: this migrates a structure needed by the lfs code in libsa (struct
salfs) into lfs.h, where it doesn't belong, but for the time being
this is necessary in order to allow the accessors (and the various
lfs macros and other goop that relies on them) to compile.

Revision 1.21.12.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:02:27 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.21.12.1: preferred, colored; branchpoint 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21.12.1: +1 -30 lines
Rebase to HEAD as of a few days ago.

Revision 1.21.6.1: download - view: text, markup, annotated - select for diffs
Thu May 22 11:37:31 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21: +3 -42 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.25: download - view: text, markup, annotated - select for diffs
Sun Jun 23 22:03:34 2013 UTC (11 years, 5 months ago) by dholland
Branches: 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, 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
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -16 lines
Stick ffs_ in front of the following macros:
   fragstoblks()
   blkstofrags()
   fragnum()
   blknum()

to finish the job of distinguishing them from the lfs versions, which
Christos renamed the other day.

I believe this is the last of the overtly ambiguous exported symbols
from ffs... or at least, the last of the ones that conflicted with lfs.
ffs still pollutes the C namespace very broadly (as does ufs) and this
needs quite a bit more cleanup.

XXX: boo on macros with lowercase names. But I'm not tackling that just yet.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sun Jun 23 07:28:36 2013 UTC (11 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -12 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.21.12.1: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:28:52 2013 UTC (11 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -12 lines
resync from head

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sun Jun 23 02:06:05 2013 UTC (11 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +2 -8 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.22: download - view: text, markup, annotated - select for diffs
Wed Jun 19 17:51:26 2013 UTC (11 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -12 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.20.12.1: download - view: text, markup, annotated - select for diffs
Wed May 13 19:19:06 2009 UTC (15 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20: +4 -4 lines
Sync with HEAD.

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

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sat Apr 11 06:52:59 2009 UTC (15 years, 7 months ago) by lukem
Branches: MAIN
CVS tags: yamt-pagecache-tag8, yamt-pagecache-base8, 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-premerge-20091211, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jym-xensuspend-base, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver
Branch point for: yamt-pagecache, tls-maxphys
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +4 -4 lines
fix sign-compare issues

Revision 1.18.4.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:38:18 2008 UTC (16 years, 11 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.18.4.1: preferred, colored; branchpoint 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18.4.1: +3 -3 lines
sync with HEAD

Revision 1.19.2.1: download - view: text, markup, annotated - select for diffs
Thu Dec 27 00:47:05 2007 UTC (16 years, 11 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19: +3 -3 lines
Sync with HEAD.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat Dec 15 19:44:47 2007 UTC (16 years, 11 months ago) by perry
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, 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, mjf-devfs2-base, mjf-devfs2, 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-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base
Branch point for: jym-xensuspend
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -3 lines
convert __attribute__s to applicable cdefs.h macros

Revision 1.18.4.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:12:38 2007 UTC (17 years, 1 month ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -38 lines
sync with HEAD

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat Oct 6 07:21:02 2007 UTC (17 years, 2 months ago) by xtraeme
Branches: MAIN
CVS tags: cube-autoconf-base, cube-autoconf
Branch point for: mjf-devfs
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -38 lines
Use a two clause license for all the code I contributed.

The envsys code will be changed later.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue May 1 21:43:37 2007 UTC (17 years, 7 months ago) by xtraeme
Branches: MAIN
CVS tags: matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: matt-armv6
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -3 lines
Add -b flag into usage().

Revision 1.17: download - view: text, markup, annotated - select for diffs
Tue May 1 21:28:50 2007 UTC (17 years, 7 months ago) by perseant
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +55 -19 lines
Add a "-b" option to search a partition for valid alternate superblocks,
rather than searching the disk for partitions.  Also, test LFS superblock
checksums before we report them.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Fri Feb 16 01:32:21 2007 UTC (17 years, 9 months ago) by xtraeme
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +37 -33 lines
* There's no need to use an int to store the returned value of
  ffs_checkver() and later use it in the switch statement, just
  use ffs_checkver.
* Remove unneded <sys/queue.h> header.
* Remove LFS from fstypes, it was never used.
* Increase SBCOUNT to 128, works faster.
* Remove unneded casts.
* (-F mode) close fd when the scan has finished or if pread() failed.
* (-F mode) print total size of file.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Oct 15 13:18:24 2006 UTC (18 years, 1 month ago) by xtraeme
Branches: MAIN
CVS tags: 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
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -3 lines
Use O_DIRECT (aka Direct I/O) when -F is used.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Oct 14 13:22:34 2006 UTC (18 years, 1 month ago) by xtraeme
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +94 -83 lines
Detect FFSv1 partitions with fragsize/blocksize greater than
2048/16384.

Revision 1.9.2.2: download - view: text, markup, annotated - select for diffs
Thu Sep 14 19:25:00 2006 UTC (18 years, 2 months ago) by riz
Branches: abandoned-netbsd-4
Diff to: previous 1.9.2.1: preferred, colored; branchpoint 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.2.1: +3 -3 lines
Pull up following revision(s) (requested by wiz in ticket #156):
	sbin/scan_ffs/scan_ffs.8: revision 1.10
	sbin/scan_ffs/scan_ffs.c: revision 1.13
Sort options in usage and SYNOPSIS.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Sep 10 20:28:52 2006 UTC (18 years, 2 months ago) by wiz
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -3 lines
Sort options in usage and SYNOPSIS.

Revision 1.9.2.1: download - view: text, markup, annotated - select for diffs
Sun Sep 10 05:07:18 2006 UTC (18 years, 2 months ago) by riz
Branches: abandoned-netbsd-4
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +44 -23 lines
Pull up following revision(s) (requested by xtraeme in ticket #146):
	sbin/scan_ffs/scan_ffs.8: revision 1.7
	sbin/scan_ffs/scan_ffs.8: revision 1.8
	sbin/scan_ffs/scan_ffs.8: revision 1.9
	sbin/scan_ffs/scan_ffs.c: revision 1.10
	sbin/scan_ffs/scan_ffs.c: revision 1.11
	sbin/scan_ffs/scan_ffs.c: revision 1.12
Add -f file support. Useful to search for partitions on disk images.
Change -f to -F, per mrg's suggestion.
- Change the cast of st_size to uint64_t to avoid future problems
  with large files.
- u_uintXX_t -> uintXX_t

Revision 1.12: download - view: text, markup, annotated - select for diffs
Fri Sep 8 12:38:32 2006 UTC (18 years, 3 months ago) by xtraeme
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +5 -5 lines
- Change the cast of st_size to uint64_t to avoid future problems
  with large files.
- u_uintXX_t -> uintXX_t

Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Sep 7 02:24:51 2006 UTC (18 years, 3 months ago) by xtraeme
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +6 -6 lines
Change -f to -F, per mrg's suggestion.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Sep 7 00:48:21 2006 UTC (18 years, 3 months ago) by xtraeme
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +41 -20 lines
Add -f file support. Useful to search for partitions on disk images.

Revision 1.9.4.2: download - view: text, markup, annotated - select for diffs
Fri Aug 11 04:41:25 2006 UTC (18 years, 3 months ago) by riz
Branches: netbsd-3
CVS tags: 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
Diff to: previous 1.9.4.1: preferred, colored; branchpoint 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.4.1: +485 -0 lines
Pull up following revision(s) via patch (requested by ghen in ticket #1460):
	distrib/sets/lists/base/mi: revision 1.556, 1.565
	distrib/sets/lists/man/mi: revision 1.792, 1.814
	sbin/Makefile: revision 1.94
	sbin/scan_ffs/Makefile: revision 1.1-1.3, 1.5-1.7
	sbin/scan_ffs/scan_ffs.c: revision 1.1-1.9
	sbin/scan_ffs/scan_ffs.8: revision 1.1-1.6 via patch
Add scan_ffs(8) from OpenBSD, modified for NetBSD to support FFSv2 and
LFS (scan_lfs(8)).  Utility to find FFSv1, FFSv2 and LFS partitions on
disks, useful to recover lost disklabels.

Revision 1.9.4.1
Fri Sep 2 17:48:40 2005 UTC (19 years, 3 months ago) by riz
Branches: netbsd-3
FILE REMOVED
Changes since revision 1.9: +0 -485 lines
file scan_ffs.c was added on branch netbsd-3 on 2006-08-11 04:41:25 +0000

Revision 1.9: download - view: text, markup, annotated - select for diffs
Fri Sep 2 17:48:40 2005 UTC (19 years, 3 months ago) by xtraeme
Branches: MAIN
CVS tags: abandoned-netbsd-4-base
Branch point for: netbsd-3, abandoned-netbsd-4
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -4 lines
Remove an extra conditional while searching for LFS superblocks,
it's not needed.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Aug 9 12:59:29 2005 UTC (19 years, 4 months ago) by he
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +42 -2 lines
Undefine the 17 macros commonly defined by <ufs/ffs/fs.h> and
<ufs/lfs/lfs.h> before including the second of them, and also after
including the second, to ensure the rest of the code doesn't depend
on their (ambigious) definition.

This fixes a build problem for vax; gcc 2.95.3's preprocessor
apparently doesn't like redefinition of macros.

Discussed with xtraeme.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Aug 9 01:49:23 2005 UTC (19 years, 4 months ago) by xtraeme
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +6 -9 lines
* Replace lseek() and read() calls with one single pread()
* Align cpg/sgs correctly.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Jul 31 20:19:40 2005 UTC (19 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +11 -17 lines
Pass lint and get/setprogname.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Jul 31 19:26:06 2005 UTC (19 years, 4 months ago) by xtraeme
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +225 -66 lines
Add scan_lfs(8), utility to find LFS partitions on disk, useful
to recover lost disklabels.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Jun 23 17:25:31 2005 UTC (19 years, 5 months ago) by xtraeme
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +3 -3 lines
Add missing '\n' into usage().

Revision 1.3: download - view: text, markup, annotated - select for diffs
Wed Jun 15 20:03:03 2005 UTC (19 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +98 -89 lines
WARNS=4, misc cleanups.
- void casts
- remove unused notreached
- use a loop instead of code duplication
- use switches and #define constants

Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Jun 15 18:42:23 2005 UTC (19 years, 5 months ago) by kleink
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +4 -4 lines
Use EXIT_{SUCCESS,FAILURE}.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Wed Jun 15 18:06:19 2005 UTC (19 years, 5 months ago) by xtraeme
Branches: MAIN
Add scan_ffs(8) from OpenBSD, it was modified to support FFSv2
for NetBSD (with different blocksizes). Utility to find
FFSv1 and FFSv2 partitions on disks, useful to recover lost
disklabels.

Reviewed by christos.

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>