Commit Graph

5337 Commits

Author SHA1 Message Date
pooka 0552fc0a0c from main with return 0;
(Why did I manage to succesfully build n times, including a full
distribution build, without tripping this before ?!?)
2010-01-14 22:06:54 +00:00
pooka ce626609cc Remove puffs| from vfstype before making comparison to determine if
fs is mounted.

Fixes slightly-miscategorized kern/37626.
2010-01-14 21:46:24 +00:00
pooka 707f1f2b92 If getargs and vfs has PUFFS_TYPEPREFIX, use mount_puffs to query args. 2010-01-14 21:30:17 +00:00
pooka 335e5fc6dc Descend into mount_puffs. 2010-01-14 21:29:26 +00:00
pooka 0f16a0e5f3 Add a generic puffs kernel utility for querying mount arguments.
E.g.:
	golem> dtfs -r 'chr 15 25' dtfs /puffs
	golem> mount_puffs -o getargs dtfs /puffs
	version=26, flags=0x10, root cookie=0xbb90c0c0, root type=VCHR, root size=0, root rdev=0xf19
2010-01-14 21:25:48 +00:00
christos 808212fb9d missing errno.h 2010-01-07 04:21:28 +00:00
christos 36cd9355e9 make this compile again. 2010-01-07 01:39:56 +00:00
christos 87e82597b6 PR/42568: Pedro F. Giffuni: Better signal handling from OpenBSD, but simplified. 2010-01-06 18:12:37 +00:00
tsutsui d3724ba41f Add necessary byteswap ops for tools disklabel(8) used with -F option
(treating a target disk as a regular file and suppressing ioctl(2)s)
on reading/writing disklabel in a target file.
This allows cross build enviroment creating bootable disk images
for targets in different endian.
No functional changes to native (non-tools) disklabel(8) command.

Closes PR toolchain/42357.
2010-01-05 15:45:26 +00:00
elad 34edb026e5 Keep an internal variable indicating whether securelevel is present, and
don't blindly try to get/set it. Prevents error messages that don't make
sense if securelevel isn't supported by the kernel.
2009-12-29 17:07:17 +00:00
dsl 5281921f56 Add info for -A ptn_alignment[/ptn_0_offset] 2009-12-23 20:56:18 +00:00
dsl 4d8b353d15 Put #endif in correct place - fixes PR/42500
Update usage() for -A, and rename one of the variables for clarity.
2009-12-23 18:50:40 +00:00
mbalmer c84c875a15 Bump date. 2009-12-23 09:18:48 +00:00
mbalmer 8a65aabe5b Fix typo in command output. 2009-12-23 09:13:21 +00:00
dsl 9193c05dda Add support for partition being aligned on non-cylinder boundaries.
Info can be specified with -A parameter.
Default is based on how the first partition is defined.
For empty disks larger than 128GB (arbitrary figure) use 1MB alignment.
2009-12-22 21:55:12 +00:00
dsl 5cb32d7a27 Editing partitions larger than 1TB works better if 'decimal' returns
64 bit integer values!
2009-12-22 21:04:37 +00:00
pooka c23e4f05d3 Don't -I from $S/sys. 2009-12-22 17:50:22 +00:00
dsl 795733c59e Add a large comment about disk geometries.
Rename (with #defines) the variables use for aligning partitions to
separate them from the bios geometry.
All in advance of allowing other partition alignments (eg 2048 sectors).
2009-12-20 17:32:09 +00:00
dsl e9c65c5007 Push the mount path for mount_mfs through realpath().
This matches what other fs do.
Fixes PR/20362
2009-12-20 15:21:13 +00:00
pooka 0f5249be8d Use CMSG_SPACE() for buffer when receiving file descriptors.
Doesn't break i386 and might be better for sparc64.
2009-12-19 16:01:25 +00:00
pooka eb2ef0c632 Use RUMP_ACTION to avoid having to specify the same information
in the Makefiles of all the consumers.
2009-12-19 15:03:34 +00:00
pooka 3d1523b600 Use implicit -F for regular files, much like disklabel(8). 2009-12-17 14:27:49 +00:00
nakayama 1c54a66d99 System utilities, boot programs and kernel modules are machine
(port) specific not CPU, so use MACHINE not MACHINE_ARCH.
2009-12-13 05:01:32 +00:00
jld 9bd6e2661a Slight change to the wording of the parity map info: the parity is
"marked clean" after however much inactivity; it is *actually* clean
as soon as the component disks all do their thing (on the order of ms,
usually), just the same as before.

The bikeshed is now less of a taupe and more of an ecru.
2009-12-10 20:20:59 +00:00
pooka a9b5fcccfc Note conversion to puffs for the kernel driver. 2009-12-05 20:34:28 +00:00
pooka 3b4bfde519 use puffs_cookie_t. no functional change. 2009-12-05 20:29:19 +00:00
pooka 8dec10527a Remove the portalfs kernel file system driver. Replace mount_portal(8)
with a version based on puffs.  User functionality remains the same.
(missed new file in change batch)
2009-12-05 20:25:32 +00:00
pooka 70d4493c77 Remove the portalfs kernel file system driver. Replace mount_portal(8)
with a version based on puffs.  User functionality remains the same.
2009-12-05 20:11:01 +00:00
pooka d6224f4507 Remove support for NetBSD/playstation2. 2009-12-05 16:29:10 +00:00
pooka bc6c058985 Add note saying that special must be a raw device.
PR bin/42391
2009-12-01 10:56:33 +00:00
pooka 3cf07ff872 Remove vinum-removal sentence fragment, similarly to newfs(8). 2009-12-01 08:47:25 +00:00
pooka 56a6edc13a Use getprogname() instead of hardcoding "mount_nfs" to get the
right info in rump_nfs.
2009-11-30 17:17:55 +00:00
tsutsui 1baf5ea42e Add a bunch of useful typical examples. Also use appropriate markup there. 2009-11-29 04:19:55 +00:00
tsutsui 1735ad7d34 Update -u usage to follow changes in fdisk.c rev 1.125:
>> Allow MB, GB and CYL (not just M, G and C) and lower case.
>> Don't output a splurious 'd' before "cyl".
>> Fixes PR/37414.

XXX "NNcy" is also allowed?
2009-11-28 17:25:45 +00:00
tsutsui d5fb21858d Clarify description of -f and -u options.
(-u means updating partition data, not interactive mode)
2009-11-28 16:45:20 +00:00
tsutsui e7730664e0 Don't use #ifdef __${MACHINE_ARCH}__ to enable machine dependent features.
Instead, use proper macro defined in Makefile per ${MACHINE_ARCH}.

__${MACHINE_ARCH}__ doesn't represent an architecture of tool's target
but an architecture of binaries being compiled, so required features
are not prolery enabled or unintentionally enabled on certain host
and target combinations during src/tools build.
2009-11-28 12:14:53 +00:00
tsutsui 93f39165ae Make dreamcast, evbsh3, and mmeye use -DUSE_MBR.
All of these ports use src/sys/arch/sh3/sh3/disksubr.c
which is MBR aware.
2009-11-28 11:26:36 +00:00
abs b861177ec4 - Display "Enter '?' for help" when starting interactive mode
- Use %.40g rather than %g when printing sectors and MB for existing
  partition size/offset.
  Changes [1.93802e+06c, 1953525105s, 953870M]:
  to:     [1938021c, 1953525105s, 953869.6875M]:
2009-11-28 10:52:10 +00:00
abs e115d85122 Shuffle the order of examples to put the interactive option (-i) ahead
of $EDITOR and "disklabel -w -r /dev/rsd0c sd2212 foo"
2009-11-28 10:28:22 +00:00
tsutsui fcf4b7e0c1 Remove fdisk/mbr for macppc which was blindly pulled from OpenBSD.
It just fakes MBR partition map which contains 1MB FAT16B partition
and ~1GB OpenBSD partition, and we can always create necessary
MBR partitions for OpenFirmware by the fdisk(8) command itself.
2009-11-27 15:37:32 +00:00
mbalmer 124961627e s/the the/the/ 2009-11-22 18:40:26 +00:00
wiz feb9cdd5a3 Remove trailing whitespace. 2009-11-17 19:35:48 +00:00
jld 9e2ba7b416 Bump date; also fix typo pointed out by snj@. 2009-11-17 19:09:38 +00:00
jld f1a1ad338d Finally commit the RAIDframe parity map Summer Of Code project.
Drastically reduces the amount of time spent rewriting parity after an
unclean shutdown by keeping better track of which regions might have had
outstanding writes.  Enabled by default; can be disabled on a per-set
basis, or tuned, with the new raidctl(8) commands.

Discussed on tech-kern@ to a general air of approval; exhortations to
commit from mrg@, christos@, and others.

Thanks to Google for their sponsorship, oster@ for mentoring the
project, assorted developers for trying very hard to break it, and
probably more I'm forgetting.
2009-11-17 18:54:26 +00:00
dsl fb64c309b2 Allow MB, GB and CYL (not just M, G and C) and lower case.
Don't output a splurious 'd' before "cyl".
Fixes PR/37414.
Patch in PR is wrong!
2009-11-04 22:25:56 +00:00
christos 4d3e7c5df2 remove ancient ifdefs (Aleksej Saushev) 2009-11-02 00:47:09 +00:00
dsl 3b8f95158f Make absence of /usr/mdec/mbr only a warning.
Fixes PR/26510
2009-10-31 20:41:00 +00:00
christos 2853bbf4b7 use %option instead of #define YY_NO_... 2009-10-29 14:49:02 +00:00
christos 05a0c94cec no need for noinput 2009-10-29 14:34:06 +00:00
christos cd2a002a7a no unput 2009-10-28 20:59:46 +00:00