Commit Graph

3368 Commits

Author SHA1 Message Date
fvdl
efbda96887 Don't compare argc to NULL. 2003-10-21 02:31:43 +00:00
fvdl
d9495c6d9a Don't compare an integer to NULL. 2003-10-21 02:31:08 +00:00
fvdl
a8930c059a Fix various uses of NULL that should have been 0. 2003-10-21 02:30:03 +00:00
pooka
bb95bd5936 Handle partition offset and size as unsigned entities. 2003-10-20 13:20:20 +00:00
pooka
84a1b52c43 Partition size and offset inside the disklabel are unsigned. Print
them as unsigned so that we don't print negative values when we're
halfway through.
2003-10-20 13:10:48 +00:00
dsl
e69ce3e4bf Add a -q (quiet) option to print nothing for clean filesystems.
Support in fsck_ffs and stub in fsck_xxx.
Push a few more messages through pwarn() instead of printf() to ensure
disk name is shown.
2003-10-20 12:04:38 +00:00
lukem
ddff99b7f4 rework to use the newer _MKMSGCREATE (et al) macros 2003-10-19 04:45:01 +00:00
lukem
8564ba3934 support MAKEVERBOSE and use ${HOST_SH} 2003-10-19 01:23:27 +00:00
lukem
3f580214e5 Support CCDF_NOLABEL. Document what CCDF_UNIFORM actually does. 2003-10-17 05:23:56 +00:00
wiz
33261e069b Slight option ordering change. 2003-10-15 19:58:24 +00:00
dsl
02b24a287f The 'struct partition *pp' is only used to save the block and fragment
sizes (so they can be written back into the disklabel).
Allow pp to be NULL
2003-10-15 13:07:34 +00:00
dbj
28fc00d72a initialize llsize and llsizemult to 0
fixes bug noticed by Christopher SEKIYA on tech-kern@
2003-10-15 00:25:28 +00:00
agc
b2b49933f4 Move Matt Green's code from a 4-clause to a 3-clause licence by removing
the advertising clause. Diffs provided in PR 22396 by Joel Baker, the changes
were confirmed to the board by Matt Green.
2003-10-13 14:22:20 +00:00
dyoung
abda32ca8b Add 'mode' option to change PHY media for 802.11 devices. Also,
display PHY mode. E.g., run an 802.11a (5GHz, 54Mbps max) access
point:

> ifconfig ath0 nwid my_access_point mode 11a mediaopt hostap
> ifconfig -m ath0
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        nwid my_access_point
        powersave off
        bssid 00:05:5d:84:cc:6e chan 3
        address: 00:05:5d:84:cc:6e
        media: IEEE802.11 autoselect mode 11a hostap
        status: active
        supported IEEE802.11 media:
                media autoselect
                media autoselect mediaopt adhoc
                media autoselect mediaopt hostap
                media autoselect mediaopt monitor
                media autoselect mode 11a
                media autoselect mode 11a mediaopt adhoc
                media autoselect mode 11a mediaopt hostap
                media autoselect mode 11a mediaopt monitor
*snip snip*
2003-10-13 08:27:35 +00:00
wiz
e347fde976 Bump date for previous; new sentence, new line; use more macros; fix a typo. 2003-10-12 07:21:57 +00:00
tls
e333b0fc0e Add an explanation of the fundamental purpose of the "security level"
mechanism and attempt to explain how to use it effectively.
2003-10-12 04:14:56 +00:00
jdolecek
32d4fce65a add RCS Ids 2003-10-11 09:55:58 +00:00
jdolecek
2ced7f69cb fix DPADD 2003-10-11 09:51:49 +00:00
wiz
5ffe40db93 Sort sections; bump date to commit date; add NetBSD RCS Id; mention
when it appeared in NetBSD in HISTORY section; rename section
"GOTCHAS" to "CAVEATS" since that's our standard name.
2003-10-11 09:12:18 +00:00
lukem
7a699e2bed unconditionally #define DEFAULT_BOOTDIR. should fix non-x86 builds 2003-10-11 04:50:49 +00:00
matt
4669b2abcb Compensate for 64bit (use %p for pointers). 2003-10-10 21:59:09 +00:00
wiz
5a3b01bb60 All single letter options are usually combined; add -V to the others. 2003-10-10 09:03:23 +00:00
wiz
e5db3159a8 Sync look of -V description in usage with other option descriptions. 2003-10-10 09:00:24 +00:00
grog
5cfcdccff1 Hook Vinum into build. 2003-10-10 06:10:53 +00:00
grant
d2b25aff9c bump date for last 2003-10-10 04:14:00 +00:00
grog
c52d09a328 Decribe the V flag. 2003-10-10 03:27:10 +00:00
grog
51b6966ad7 Add -V flag for use with Vinum to indicate that the last character of
the device name should not be interpreted as a partition identifier.
2003-10-10 03:23:28 +00:00
grog
d5119a1e37 Initial import of Vinum userland.
Ported by:  Ramsubramanyam <Ramsubramanyam@infosys.com>,
	    Atul Kabra <Atul_Kabra@infosys.com>,
	    Maneesh Jhinger <maneesh_jhinger@infosys.com>

Reviewed by:  lukem
2003-10-10 03:13:12 +00:00
dbj
4d76d724b9 calculate "-s size" values after sectorsize has been fully determined
extend "-s size" argument to allow negative sizes to represent value to
subtract from diskalbel partition size
2003-10-09 16:23:29 +00:00
yamt
d59161d069 - don't try to write alt super blocks beyond the end of the partition.
- flush stdout when printing each super block addresses.
2003-10-09 14:28:34 +00:00
itojun
8612aa8b30 use asprintf David Hill 2003-10-08 20:39:07 +00:00
itojun
eb48d1d3cb plug memory leak. David Hill 2003-10-08 20:36:25 +00:00
lukem
1c33b4e6a4 Overhaul MBR handling (part 1):
<sys/bootblock.h>:
    *	Added definitions for the Master Boot Record (MBR) used by
	a variety of systems (primarily i386), including the format
	of the BIOS Parameter Block (BPB).
	This information was cribbed from a variety of sources
	including <sys/disklabel_mbr.h> which this is a superset of.

	As part of this, some data structure elements and #defines
	were renamed to be more "namespace friendly" and consistent
	with other bootblocks and MBR documentation.
	Update all uses of the old names to the new names.

<sys/disklabel_mbr.h>:
    *	Deprecated in favor of <sys/bootblock.h> (the latter is more
	"host tool" friendly).

amd64 & i386:
    *	Renamed /usr/mdec/bootxx_dosfs to /usr/mdec/bootxx_msdos, to
	be consistent with the naming convention of the msdosfs tools.

    *	Removed /usr/mdec/bootxx_ufs, as it's equivalent to bootxx_ffsv1
	and it's confusing to have two functionally equivalent bootblocks,
	especially given that "ufs" has multiple meanings (it could be
	a synonym for "ffs", or the group of ffs/lfs/ext2fs file systems).

    *	Rework pbr.S (the first sector of bootxx_*):
	    +	Ensure that BPB (bytes 11..89) and the partition table
		(bytes 446..509) do not contain code.
	    +	Add support for booting from FAT partitions if BOOT_FROM_FAT
		is defined.  (Only set for bootxx_msdos).
	    +	Remove "dummy" partition 3; if people want to installboot(8)
		these to the start of the disk they can use fdisk(8) to
		create a real MBR partition table...
	    +	Compile with TERSE_ERROR so it fits because of the above.
		Whilst this is less user friendly, I feel it's important
		to have a valid partition table and BPB in the MBR/PBR.

    *	Renamed /usr/mdec/biosboot to /usr/mdec/boot, to be consistent
	with other platforms.

    *	Enable SUPPORT_DOSFS in /usr/mdec/boot (stage2), so that
    	we can boot off FAT partitions.

    *	Crank version of /usr/mdec/boot to 3.1, and fix some of the other
	entries in the version file.

installboot(8) (i386):
    *	Read the existing MBR of the filesystem and retain the BIOS
    	Parameter Block (BPB) in bytes 11..89 and the MBR partition
	table in bytes 446..509.  (Previously installboot(8) would
	trash those two sections of the MBR.)

mbrlabel(8):
    *	Use sys/lib/libkern/xlat_mbr_fstype.c instead of homegrown code
	to map the MBR partition type to the NetBSD disklabel type.


Test built "make release" for i386, and new bootblocks verified to work
(even off FAT!).
2003-10-08 04:25:43 +00:00
lukem
04a16dcc66 add some more detail to an error message 2003-10-08 03:56:21 +00:00
lukem
f41de51799 be consistent about "MS-DOS" 2003-10-06 12:02:52 +00:00
bouyer
85050e8b77 More licence fixes, pointed out by Thomas Klausner. 2003-10-05 20:54:45 +00:00
bouyer
7b066791c8 Remove references to University of California from my copyright notices. 2003-10-05 17:48:49 +00:00
jdolecek
91b453f2db fix NULL pointer pointer dereference in fileerror() when ino is NULL
problem reported and fix provided in PR kern/23065 by Gary Duzan, only
slightly adjusted to only do the VTOI() when needed
2003-10-05 17:11:23 +00:00
dsl
920dff4b7c If /dev/constty exists, use it instead of /dev/console for single user shell.
I'm not 100% certain it should call login_tty() for anything else.
2003-10-03 13:31:32 +00:00
yamt
f271a34ced write out modified directory entries to the correct place. 2003-10-03 12:23:22 +00:00
yamt
6e547a61f9 make this work for big (ie. with indirect blocks) directories
without spurious 'EXTRA ..' errors.
2003-10-03 12:22:15 +00:00
wiz
b6c5244ce8 Bump date for previous. 2003-10-02 07:07:48 +00:00
itojun
2c96e1a283 use netmask of /32. as discusssed on tech-userlevel 2003-10-02 06:25:28 +00:00
itojun
d3e55680aa correct typo. PR misc/22944 2003-10-02 00:09:06 +00:00
itojun
83ddaf1cbf print prefixlen on -show 2003-10-01 06:24:19 +00:00
dsl
4cb1ff990c Forgot the date.... 2003-09-27 19:07:12 +00:00
dsl
0188e8d8ce Add kern.drivers and kern.root_partition to match recent kern_sysctl.c
Add kern.root_device which was absent.
2003-09-27 18:57:05 +00:00
cb
88823a8138 back out revision 1.3. this should not have been committed yet,
since it breaks backward compatibility.

noticed by recht@
2003-09-25 01:43:12 +00:00
wiz
72b77eb9e9 Add article. 2003-09-23 21:25:20 +00:00
cb
7543b55c56 add a new verification method that prompts for the pkcs#5 pbkdf2
passphrase again and checks the generated key against the original.
2003-09-23 17:24:45 +00:00