1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00
freebsd/sbin
Ralf S. Engelschall ccdd2fce3a Fix the derivation of the GEOM name from the specified device name by
complementing the existing special case of a not existing /dev prefix
with the recognition of an already existing /dev prefix.

This implicitly solves the following two issues related to working on
GEOM devices /dev/foo/bar (which have the GEOM provider name "foo/bar")
with the expected commands like "bsdlabel /dev/foo/bar":

1. the error "Geom not found" when trying to write or edit the BSD
   label (because previously the incorrect GEOM name "bar" instead of
   "foo/bar" was derived from "/dev/foo/bar").

2. the multiple times reported "magically introduced" partition offset
   of 63 blocks and the resulting errors like "partition extends past
   end of unit" and "partition c doesn't start at 0!".

   This implicitly resulted because bsdlabel(8) determines the "MBR
   offset" via GEOM and (intentionally) silently falls back to an offset
   of 0 if it could not be queried (which is the case if the name was
   incorrectly derived).

   Usually (at least on PCs) the offset for the first slice is 63 blocks
   and bsdlabel(8) automatically subtracts them from the absolute
   offsets in the read on-disk BSD label, resulting in the display of an
   effective offset of 0. If the GEOM query fails, the assumed offset of
   0 is subtracted and an incorrect effective offset of 63 is displayed
   and tried to be worked upon.

Reviewed by: pjd
MFC after: 1 week
2005-01-07 12:19:57 +00:00
..
adjkerntz
atacontrol Distinguish between TCQ and NCQ type of tagged queing. 2004-09-15 11:22:05 +00:00
atm Back the warnings down from 9 to 6, since that is the highest we have. If 2004-12-13 15:42:46 +00:00
badsect The badsect(8) utility uses atol(), which doesn't allow very good error 2005-01-03 19:03:40 +00:00
bsdlabel Fix the derivation of the GEOM name from the specified device name by 2005-01-07 12:19:57 +00:00
camcontrol
ccdconfig Replace link to nonexistent raid(4) with one to geom(8). I don't like 2004-10-31 05:28:15 +00:00
clri
comcontrol Reflect the cuaa->cuad namechange in documentation. 2004-11-13 00:09:19 +00:00
conscontrol
devd NOSHARED -> NO_SHARED 2004-12-21 09:59:45 +00:00
devfs Remove a useless use of cat, strip overzealous punctuation, and 2004-11-06 11:16:56 +00:00
dhclient Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00
dmesg Print a usage message if a non-option is specified. 2004-10-13 20:33:18 +00:00
dump Clearer va-args usage. 2004-12-30 00:53:56 +00:00
dumpfs
dumpon Promote mediasize and physmem to uintmax_t when comparing them. 2004-10-04 06:54:19 +00:00
fdisk Add 0xbf as new partition id for Solaris. 2004-11-10 07:48:29 +00:00
fdisk_pc98 Merged from src/sbin/fdisk/fdisk.c revision 1.75. 2004-10-24 12:05:10 +00:00
ffsinfo The ffsinfo utility uses atol() to parse numeric values out of optarg 2005-01-03 18:59:04 +00:00
fsck
fsck_ffs Do not pass random bits as mount arguments. 2004-12-12 11:04:52 +00:00
fsck_msdosfs
fsdb Make fsck WARNS=2 clean. 2004-10-09 15:56:34 +00:00
fsirand
gbde Fix a type bug which sometimes wrote unusable lock sectors on the disk. 2004-09-10 12:16:54 +00:00
geom Detect if class name is '-h' or 'help' and if it is, show general help 2004-12-28 17:07:18 +00:00
ggate Fix a deadlock in ggatel(8) simlar to one which was fixed some time 2004-10-02 16:58:33 +00:00
gpt For create and migrate, remove the `.Op Fl f' introduced in the 2004-11-13 08:01:48 +00:00
growfs Cross-reference ffsinfo(8). 2004-12-26 07:00:10 +00:00
gvinum Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00
idmapd
ifconfig Fix special status reporting. Prior to the reorg there was 2004-12-31 19:46:27 +00:00
init NOSHARED -> NO_SHARED 2004-12-21 09:59:45 +00:00
ip6fw
ipf Link a couple of missing manpages 2005-01-07 09:22:02 +00:00
ipfs
ipfstat
ipfw Write some bit mask limits in hex rather than decimal so they look less 2005-01-07 01:21:23 +00:00
ipmon
ipnat
kldconfig
kldload
kldstat
kldunload
ldconfig Avoid using void pointers in additive expressions. 2004-08-14 17:46:10 +00:00
mca Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00
md5
mdconfig Rewrite piece of code which I committed some time ago that allows to 2004-12-27 17:20:06 +00:00
mdmfs
mknod Mark mknod(8) as deprecated. Add text in the 'COMPATIBILITY' section 2004-12-17 14:36:02 +00:00
mksnap_ffs Make sure we don't pass garbage to the kernel. 2004-12-08 11:54:50 +00:00
mount Fix typo. 2004-12-26 18:06:05 +00:00
mount_autofs WARNS=4 safe. 2004-09-12 07:06:48 +00:00
mount_cd9660 NOSHARED -> NO_SHARED 2004-12-21 09:59:45 +00:00
mount_ext2fs
mount_hpfs
mount_msdosfs NOSHARED -> NO_SHARED 2004-12-21 09:59:45 +00:00
mount_nfs
mount_nfs4
mount_ntfs NOSHARED -> NO_SHARED 2004-12-21 09:59:45 +00:00
mount_nullfs
mount_std Fix the mount(8) status reporting, now that MNT_NODEV is a no-op (zero). 2004-11-29 09:35:01 +00:00
mount_udf NOSHARED -> NO_SHARED 2004-12-21 09:59:45 +00:00
mount_ufs NOSHARED -> NO_SHARED 2004-12-21 09:59:45 +00:00
mount_umapfs
mount_unionfs
natd
newfs Fix '-s' option for large disks and fix printing maximum file system size. 2004-09-19 10:01:51 +00:00
newfs_msdos
nfsiod
nos-tun
pfctl Remove -I from CFLAGS. This splipped in with the 3.5 import (as I was 2004-10-03 06:19:22 +00:00
pflogd Fixed misspelling of DPADD. 2004-10-24 14:25:53 +00:00
ping o Store timestamp in network byte order. 2004-09-30 07:35:56 +00:00
ping6
quotacheck
rcorder
reboot Fixed desctiptions of some options: 2004-09-30 09:59:44 +00:00
recoverdisk Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00
restore
route Fix markup: .Dv -> .Va 2004-11-04 08:29:28 +00:00
routed
rtsol Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00
savecore Use a local "compress" symbol corresponding to a variable in BSS, 2004-08-16 07:02:14 +00:00
sconfig Fix typos. 2004-12-30 01:48:12 +00:00
setkey
shutdown
slattach Remove cross reference to uustat(1), which is no longer in the base 2005-01-02 12:40:40 +00:00
spppcontrol
startslip
sunlabel
swapon Don't include sys/user.h merely for its side-effect of recursively 2004-11-27 06:51:39 +00:00
sysctl Code for automatic name completion in a tcsh(1) environment. 2004-12-05 23:44:52 +00:00
tunefs
umount
Makefile NOINET6 -> NO_INET6 2004-12-21 10:49:29 +00:00
Makefile.inc NOSHARED -> NO_SHARED 2004-12-21 09:59:45 +00:00