Commit Graph

5942 Commits

Author SHA1 Message Date
christos
c673655ecf one less kvm groveller. Use sysctl to get ccd info. 2013-04-27 17:12:36 +00:00
jakllsch
3106f2915c Improve support for logical sector sizes greater than 512. 2013-04-14 22:48:22 +00:00
jakllsch
aff82b369b Make getdiskinfo() always return correct dkwedge_info for the raw partition.
A real disk's raw partition does not implement DIOCGWEDGEINFO, but does
implement DIOCGDINFO.  This was resulting in the returned wedge information
containing 32-bit-clamped values for size of the raw partition, with no
indication thereof.
2013-04-13 22:08:57 +00:00
jakllsch
0c2fc5cb54 Make pre-initialized partition type uuid_t symbols 'static const'.
This conserves a few hundred bytes of total program size by
allowing the linker to merge duplicates.
2013-04-13 18:32:01 +00:00
jakllsch
774af6a912 drop trailing whitespace 2013-04-13 18:25:56 +00:00
jakllsch
287267eb57 Clean up gpt(8) a bit more
uuid_create_nil(3) and uuid_is_nil(3) take a uuid_t*, not a pointer to
an array of bytes merely casted to compatible type.

Additonally, there no need for extra casts and address-of operations when
using le_uuid_*() functions.

Furthermore, le_uuid_*() are identical to uuid_*_le functions in
libc/libuuid, so use those instead on NetBSD.
2013-04-13 18:04:33 +00:00
jakllsch
fe89322e15 Use correct spelling of "secondary" in comments. 2013-04-13 16:48:03 +00:00
rodent
6212f5ad46 s/user code/user mode/1 2013-03-30 11:07:40 +00:00
christos
f27e0a25cc Document debug 2013-03-29 21:46:32 +00:00
christos
7e8a523e59 pdisk has moved 2013-03-23 15:43:37 +00:00
mlelstv
9e59300471 For MFS, no longer use heuristic based on rlimit to determine mmap size.
This is no longer functional with current memory allocation routines.
2013-03-17 12:25:36 +00:00
yamt
4398e962ce more precision for F_TIMING64 2013-03-06 11:33:08 +00:00
joerg
e240adbd0b Retire OSI network stack. OK core@ 2013-03-01 18:25:13 +00:00
wiz
cd5f9eed2e Remove trailing whitespace. 2013-02-27 21:21:47 +00:00
is
959a998bde Fix terminology issue brought up by Bug Hunting in PR 47314.
The boot records in extended partitions are called "Extended Boot Record"
(EBR); use that in the documentation where appropriate.
2013-02-27 20:43:00 +00:00
christos
c1fffff4c4 Don't produce spurious errors when creating labels on files. 2013-02-13 00:40:28 +00:00
christos
26a38a4618 CID/979997: missing va_end() 2013-02-09 01:50:04 +00:00
jakllsch
8c9dbb49b1 Decode 6Gbps signaling SATA capability in IDENTIFY DEVICE data. 2013-02-08 03:58:36 +00:00
apb
819da78f2e Abort on error from prop_dictionary_augment. 2013-02-07 13:21:34 +00:00
apb
acc2342d2c Avoid dereferencing NULL. Coverity CID 275201.
Also fix a typo in previous: !== should be !=
2013-02-07 13:20:51 +00:00
apb
2f2c48e223 Don't pass NULL to prop_dictionary_set.
Coverity CID 275196.
2013-02-07 12:04:01 +00:00
apb
beb9ef8fe5 Don't call prop_distionary_make_immutable on a NULL pointer.
Coverity CID 275179.
2013-02-07 11:24:15 +00:00
apb
bf5fabe51d free(bbp) in error paths. Coverity CID 274748. 2013-02-07 11:00:59 +00:00
apb
392ef41021 getrawpartition(3) may fail, so call it only once and test for failure.
Coverity CID 274527.
2013-02-07 10:44:45 +00:00
matt
2f0a3a2017 There are other little endian arm machine_arches other than "arm" 2013-02-05 07:22:59 +00:00
christos
2d1d9d47bc don't truncate the file if an offset is given. 2013-02-03 03:21:42 +00:00
christos
9eab57ada8 nbtool_config.h undefines _NETBSD_SOURCE, and that makes <sys/types.h> not
define cpuid_t, which makes <sys/mount.h> unincludable. Although this is a
bug in the build system, it is simpler to fix it here.
2013-01-27 21:56:26 +00:00
christos
3060c42593 toolify 2013-01-24 19:24:56 +00:00
christos
0a4e19dfb8 use return instead of exit. 2013-01-24 17:53:49 +00:00
christos
9c80670845 don't do the partition dance for makefs; we have no real disk 2013-01-24 00:10:09 +00:00
christos
c613c761ab We don't need getdiskinfo() for makefs() since we always deal with an image. 2013-01-23 22:48:18 +00:00
christos
30441591f7 fix regressions after split. 2013-01-23 15:29:15 +00:00
dholland
dcd34a91c5 Stuff UFS_ in front of a few of ufs's symbols to reduce namespace
pollution. Specifically:
   ROOTINO -> UFS_ROOTINO
   WINO -> UFS_WINO
   NXADDR -> UFS_NXADDR
   NDADDR -> UFS_NDADDR
   NIADDR -> UFS_NIADDR
   MAXSYMLINKLEN -> UFS_MAXSYMLINKLEN
   MAXSYMLINKLEN_UFS[12] -> UFS[12]_MAXSYMLINKLEN (for consistency)

Sort out ext2fs's misuse of NDADDR and NIADDR; fortunately, these have
the same values in ext2fs and ffs.

No functional change intended.
2013-01-22 09:39:11 +00:00
christos
aed35c482d Split the make fs portion into a function; do argument tests inside the
function.
2013-01-21 20:28:38 +00:00
jakllsch
6959a7ad63 Now that GPT_ENT_TYPE_LINUX_DATA is diffrent from the Windows one, use it. 2013-01-18 17:58:15 +00:00
christos
772a10450c move dk_ioctl to a header file for the benefit of x-building. 2013-01-17 18:33:58 +00:00
jakllsch
ec5e5d471b An uninitialized next-free-cluster value in the file system information
block is valid; do not consider it for correction.
2013-01-17 16:45:48 +00:00
christos
b7825cc95f - simplify getinput.
- add adjust command.
2013-01-15 23:52:48 +00:00
dholland
1df724eeb6 Use __printflike. 2013-01-13 23:45:35 +00:00
dholland
0f01602e5e Use void * for I/O functions and remove no-longer-needed casts. 2013-01-13 23:17:18 +00:00
dholland
aaa9827ea1 Use more static. 2013-01-13 23:07:16 +00:00
dholland
a010b743a6 Use static; remove unused global var this uncovered. 2013-01-13 22:59:31 +00:00
dholland
895e26fb92 Use <ctype.h> functions correctly. 2013-01-13 22:54:24 +00:00
dholland
9c53e91b7d Add some const. 2013-01-13 22:53:01 +00:00
mlelstv
9fc3186941 Support symlinks to a block device to resolve the name of the
corresponding raw device.
2013-01-13 19:53:16 +00:00
wiz
0ce5dbc6e9 Bump date for previous. 2013-01-12 10:19:01 +00:00
jakllsch
7528c09b60 We supply data with the FORMAT UNIT command, so tell the kernel which
direction it is to go (write).
2013-01-12 02:52:59 +00:00
jakllsch
8c34b2a378 take sizeof actual symbol we are memsetting 2013-01-12 02:50:09 +00:00
mlelstv
a11271cda5 Provide a script for devpubd(8) that creates symlinks for each dk(4)
device under /dev/wedges so that you can access them by name.
2013-01-11 23:49:23 +00:00
riastradh
50ce00ea5e Add some ATA SECURITY commands to atactl(8). 2013-01-09 21:58:23 +00:00