Home | History | Annotate | Download | only in ffs
History log of /src/usr.sbin/makefs/ffs/buf.c
RevisionDateAuthorComments
 1.28  14-Mar-2023  kre In bwrite() if the write() returned -1, the associated errno was
being used after a (possible) call to printf (only happens when
debugging) and a certain call to free() (via brelse()).
Make a copy, and use that instead.
 1.27  14-Mar-2023  kre Use %zd to print ssize_t (%z[uxo] for size_t), rather than %jd
(just like the other adjacent printfs do)

Should fix i386 build.
 1.26  13-Mar-2023  christos modernize; release bpp and set it to NULL as the kernel does even if we
never return here.
 1.25  09-Apr-2022  riastradh makefs(8): Nix trailing whitespace.

Computed by machine, eyeballed by hand, so to speak.
 1.24  24-Jun-2016  christos tidy up error messages
 1.23  24-Dec-2015  christos little size_t/ssize_t...
 1.22  29-Mar-2015  agc Make the userland signature and uses of bread() match the kernel ones,
after the removal of the cred argument.
 1.21  03-Feb-2013  christos - more changes to make -O work
- fix err* calls.
 1.20  02-Feb-2013  christos add and document offset.
 1.19  30-Jan-2013  christos - 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.
 1.18  30-Jan-2013  christos buf is generic; it has nothing to do with ffs and will eventually be moved.
gc sectorize.
 1.17  28-Jan-2013  christos - 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
 1.16  28-Jan-2013  mlelstv Do not use *bp after freeing it in brelse.
 1.15  27-Jan-2013  christos This works well enough to populate plain files in the root dir. creating
directories fails.
 1.14  27-Jan-2013  christos Don't print the pointers in debugging, it is not useful.
zero all memory
 1.13  26-Jan-2013  christos make the buffer functions look exactly like the kernel ones and add other
cruft to make the kernel files compile.
 1.12  20-Jun-2004  jmc branches: 1.12.48; 1.12.54;
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
 1.11  16-Oct-2003  itojun branches: 1.11.2;
safer use of realloc
 1.10  24-Jan-2003  fvdl 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.
 1.9  31-Jan-2002  tv 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.
 1.8  08-Jan-2002  lukem need ufs/ufs/dinode.h for ufs/ffs/fs.h
 1.7  07-Jan-2002  lukem 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.
 1.6  07-Jan-2002  lukem - 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.
 1.5  07-Jan-2002  lukem 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
 1.4  22-Nov-2001  lukem 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
 1.3  02-Nov-2001  lukem tweak copyright
 1.2  28-Oct-2001  lukem add __RCSID()
 1.1  26-Oct-2001  lukem branches: 1.1.1;
Initial revision
 1.1.1.1  26-Oct-2001  lukem 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.
 1.11.2.1  22-Jun-2004  tron 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
 1.12.54.1  25-Feb-2013  tls resync with head
 1.12.48.1  22-May-2014  yamt 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")

RSS XML Feed