Commit Graph

22 Commits

Author SHA1 Message Date
rumble 6b11ab8f44 Add -m to usage and do not simply use strcmp to compare names as the volhdr
name is not necessarily nul-terminated.
2008-08-03 17:42:34 +00:00
rumble f048ceb62a Add -m to move (rename) files in the volume header. While here, remove
some magic constants and fix some space-limited printfs.
2008-08-03 16:09:20 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
rumble 9f443e25a4 Remove braces from non-optional arguments in usage. 2006-12-30 18:25:30 +00:00
rumble fd144d2f8a Add -p command to usage. 2006-12-30 06:10:38 +00:00
mrg ba1331d1b0 don't pass unsigned char * to functions wanting char *. 2006-07-03 01:21:50 +00:00
thorpej 948898912b Don't include <sys/endian.h> if building as a host tool. 2006-05-05 17:59:41 +00:00
ginsbach d357be2474 Fix the build of sgivol as a host tool on a platform without libutil,
e.g. MacOS X.  Identical to method used in the disklabel(8) Makefile.
2005-12-23 03:28:10 +00:00
christos 95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
sekiya b9e63b2210 0 is a success code for ioctl(). Fixes install problem introduced by
revision 1.9 last November.
2005-02-28 06:44:55 +00:00
jmc 417e73cb35 Retool sgivol into a proper hostool that doesn't depend on disklabel.h.
Assume defaults for file images that match what a vnd would have used.
Native use will still use the standard NetBSD label to get this data.
Fixes PR#25996
2004-11-24 22:01:21 +00:00
sekiya 0a6f939a3d Avoid namespace collision when sgivol is compiled as a native application. 2003-11-08 04:59:00 +00:00
sekiya 4f800421dd Use be*toh() and htobe*() to permit use in cross-build environments. Add -h flag to override default volume header size. 2003-11-01 06:30:44 +00:00
sekiya 6daa011b5a NULL -> 0 2003-10-26 03:30:26 +00:00
lukem 7f7f9da211 minor delint 2002-12-13 02:36:37 +00:00
rafal 695a5c114c Cleanup and enhancements to sgivol, mostly from Scott G. Taylor, with some
tweaking by me.  Specifically, this gives sgivol an "unattended" mode that
can be used from eg. sysinst to install the bootblocks.
2002-07-18 16:02:42 +00:00
simonb 707b8da2e8 Replace lots of 8x<space> with <tabs> and other miscellaneous indentation
fixes.
Wrap a couple of long lines.
Use <return-type>\n<function name> as per KNF in a few places.
2002-03-13 13:12:25 +00:00
tv 8e6f7afb5b MKfoo=no -> NOfoo 2001-12-12 01:48:43 +00:00
soren 482d429ddc Install loader in /usr/mdec. 2001-11-21 22:14:51 +00:00
thorpej bcc50e9703 Use strncmp() when looking up volume files. 2001-11-20 23:09:45 +00:00
thorpej c8f26da0bd - General code cleanup (and enable warnings).
- It's perfectly legal to have an 8 byte volume filename; the trailing
  NUL is not required in this case.
- Default the partition type to "4.2BSD", not "EFS".
2001-11-20 23:07:16 +00:00
soren 1e6da897d3 Michael Hitch's volume header tool. 2001-11-20 18:35:22 +00:00