The NetBSD Project

CVS log for src/usr.sbin/makefs/ffs/buf.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.25 / (download) - annotate - [select for diffs], Sat Apr 9 10:05:35 2022 UTC (9 months, 3 weeks ago) by riastradh
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, HEAD
Changes since 1.24: +4 -4 lines
Diff to previous 1.24 (colored)

makefs(8): Nix trailing whitespace.

Computed by machine, eyeballed by hand, so to speak.

Revision 1.24 / (download) - annotate - [select for diffs], Fri Jun 24 19:24:11 2016 UTC (6 years, 7 months ago) by christos
Branch: 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-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, 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.23: +5 -5 lines
Diff to previous 1.23 (colored)

tidy up error messages

Revision 1.23 / (download) - annotate - [select for diffs], Thu Dec 24 15:52:37 2015 UTC (7 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.22: +9 -9 lines
Diff to previous 1.22 (colored)

little size_t/ssize_t...

Revision 1.22 / (download) - annotate - [select for diffs], Sun Mar 29 05:52:59 2015 UTC (7 years, 10 months ago) by agc
Branch: MAIN
Changes since 1.21: +4 -4 lines
Diff to previous 1.21 (colored)

Make the userland signature and uses of bread() match the kernel ones,
after the removal of the cred argument.

Revision 1.12.48.1 / (download) - annotate - [select for diffs], Thu May 22 11:43:05 2014 UTC (8 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.12: +39 -47 lines
Diff to previous 1.12 (colored) next main 1.13 (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.12.54.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:30:45 2013 UTC (9 years, 11 months ago) by tls
Branch: tls-maxphys
Changes since 1.12: +39 -47 lines
Diff to previous 1.12 (colored) next main 1.13 (colored)

resync with head

Revision 1.21 / (download) - annotate - [select for diffs], Sun Feb 3 03:21:21 2013 UTC (10 years ago) by christos
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, 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, agc-symver-base, agc-symver
Changes since 1.20: +9 -9 lines
Diff to previous 1.20 (colored)

- more changes to make -O work
- fix err* calls.

Revision 1.20 / (download) - annotate - [select for diffs], Sat Feb 2 20:42:02 2013 UTC (10 years ago) by christos
Branch: MAIN
Changes since 1.19: +4 -4 lines
Diff to previous 1.19 (colored)

add and document offset.

Revision 1.19 / (download) - annotate - [select for diffs], Wed Jan 30 19:19:19 2013 UTC (10 years ago) by christos
Branch: MAIN
Changes since 1.18: +6 -7 lines
Diff to previous 1.18 (colored)

- don't abuse vp->fs to mean struct fs for ffs and struct msdos_opts;
  make it always fsinfo_t and change void * to that.
- kill unused structure members.

Revision 1.18 / (download) - annotate - [select for diffs], Wed Jan 30 17:29:05 2013 UTC (10 years ago) by christos
Branch: MAIN
Changes since 1.17: +9 -19 lines
Diff to previous 1.17 (colored)

buf is generic; it has nothing to do with ffs and will eventually be moved.
gc sectorize.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Jan 28 21:03:29 2013 UTC (10 years ago) by christos
Branch: MAIN
Changes since 1.16: +5 -8 lines
Diff to previous 1.16 (colored)

- use emalloc and friends
- kill a bunch of global variables, more work to be done here
- homogenize option parsing. more work for cd9660
- use the new options parsing code to print an fs-specific usage

Revision 1.16 / (download) - annotate - [select for diffs], Mon Jan 28 10:16:35 2013 UTC (10 years ago) by mlelstv
Branch: MAIN
Changes since 1.15: +8 -6 lines
Diff to previous 1.15 (colored)

Do not use *bp after freeing it in brelse.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Jan 27 20:05:46 2013 UTC (10 years ago) by christos
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

This works well enough to populate plain files in the root dir. creating
directories fails.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Jan 27 14:10:03 2013 UTC (10 years ago) by christos
Branch: MAIN
Changes since 1.13: +10 -12 lines
Diff to previous 1.13 (colored)

Don't print the pointers in debugging, it is not useful.
zero all memory

Revision 1.13 / (download) - annotate - [select for diffs], Sat Jan 26 00:19:39 2013 UTC (10 years ago) by christos
Branch: MAIN
Changes since 1.12: +12 -6 lines
Diff to previous 1.12 (colored)

make the buffer functions look exactly like the kernel ones and add other
cruft to make the kernel files compile.

Revision 1.11.2.1 / (download) - annotate - [select for diffs], Tue Jun 22 07:16:55 2004 UTC (18 years, 7 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.11: +6 -2 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

Pull up revision 1.12 (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.12 / (download) - annotate - [select for diffs], Sun Jun 20 22:20:18 2004 UTC (18 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, 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, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, 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, 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, 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, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, mjf-devfs2-base, mjf-devfs2, matt-premerge-20091211, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, 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-premerge-20101231, matt-mips64-base2, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-pagecache, tls-maxphys
Changes since 1.11: +6 -2 lines
Diff to previous 1.11 (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.11 / (download) - annotate - [select for diffs], Thu Oct 16 06:31:38 2003 UTC (19 years, 3 months ago) by itojun
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.10: +7 -4 lines
Diff to previous 1.10 (colored)

safer use of realloc

Revision 1.10 / (download) - annotate - [select for diffs], Fri Jan 24 21:55:32 2003 UTC (20 years ago) by fvdl
Branch: MAIN
Changes since 1.9: +14 -11 lines
Diff to previous 1.9 (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.9 / (download) - annotate - [select for diffs], Thu Jan 31 22:44:03 2002 UTC (21 years ago) by tv
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.8: +3 -4 lines
Diff to previous 1.8 (colored)

Roll in fixes to permit cross-compiling from non-NetBSD hosts.  This
round has been tested on Solaris/x86 and Linux hosts.

* Add host tools cap_mkdb, ctags, m4, uudecode.
* Protect __RCSID() and __COPYRIGHT() better.
* Reduce the number of places that need to include "config.h", to keep
  sources closer to their "vanilla" versions.
* Add more compat #defines and autoconf-checked functions.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jan 8 06:00:14 2002 UTC (21 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.7: +3 -2 lines
Diff to previous 1.7 (colored)

need ufs/ufs/dinode.h for ufs/ffs/fs.h

Revision 1.7 / (download) - annotate - [select for diffs], Mon Jan 7 16:56:27 2002 UTC (21 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

add "ffs/ufs_inode.h" with a minimal struct inode, to replace
<ufs/ufs/inode.h>, since the latter has a lot of cruft we don't need
and it #include's way more stuff in <sys/*> (etc) than is needed here.
yet another nail in the "let's make makefs a proper host tool" coffin.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Jan 7 16:27:23 2002 UTC (21 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.5: +4 -4 lines
Diff to previous 1.5 (colored)

- pull in <ufs/ufs/dinode.h> before <ufs/ffs/fs.h>
- #include <ufs/[uf]fs/*.h> instead of "ufs/[uf]fs/*.h", and don't bother
  with -I../../sys; we'll solve the hostprog problem another way and
  unconditionally pulling in NetBSD-current's usr/src/sys on a host system
  could be a Bad Thing.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Jan 7 05:07:51 2002 UTC (21 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.4: +4 -4 lines
Diff to previous 1.4 (colored)

fix bugs reported by matt green:
- when calculating file size, round up to frag size not block size
- #define FFS_EI in makefs.h, and include that before [uf]fs/*.h

other stuff:
- round up final size to next block (instead of next sector)
- protect makefs.h from multiple inclusion

Revision 1.4 / (download) - annotate - [select for diffs], Thu Nov 22 02:47:26 2001 UTC (21 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored)

reference the ufs/[uf]fs headers in ../../sys rather than using those
in /usr/include. this should make it easier to make this a host tool

Revision 1.3 / (download) - annotate - [select for diffs], Fri Nov 2 03:12:49 2001 UTC (21 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

tweak copyright

Revision 1.2 / (download) - annotate - [select for diffs], Sun Oct 28 13:14:06 2001 UTC (21 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.1: +6 -1 lines
Diff to previous 1.1 (colored)

add __RCSID()

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Fri Oct 26 06:20:18 2001 UTC (21 years, 3 months ago) by lukem
Branch: WASABI
CVS Tags: makefs-20011026
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

makefs - create a file system image from a directory tree.
It doesn't need any special privileges or kernel devices.

Only ffs image creation is supported at this time, although makefs has been
designed to allow the addition of other file system formats by writing new
back-ends.

This program was designed & implemented by Luke Mewburn of Wasabi Systems.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Oct 26 06:20:18 2001 UTC (21 years, 3 months ago) by lukem
Branch: MAIN

Initial revision

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>