Commit Graph

6785 Commits

Author SHA1 Message Date
jakllsch fbdc91920d Revert functional changes in previous, at expense of strict KNF conformance. 2018-02-14 17:43:09 +00:00
hannken 6e4615fb0f Treat an inode with "mode == 0" and "blocks != 0" as partially allocated
and clear it as ffs_newvnode() tests for "blocks == 0".
2018-02-13 11:20:08 +00:00
sevan 9b1213ca1f Spelling 2018-02-13 00:34:11 +00:00
dholland 32cded6cc9 Typos. 2018-02-08 09:05:16 +00:00
mrg 1b8d2f5ad2 update for GCC 6:
- read_rt() has a missing {} issue.
2018-02-06 09:33:07 +00:00
mrg 845c916a36 updates for GCC 6.4:
identd has aliasing violations, use -fno-strict-aliasing.

newfs_msdos's getbpbinfo() has missing {} issues.

sysctl's kern_cp_id() has missing {} issues.
2018-02-04 09:03:23 +00:00
uwe 6a5e01dbb3 It's not literal "-options" so use .Ar 2018-01-24 12:04:47 +00:00
skrll ac34435581 Remove port-acorn26
OK core@
2018-01-24 09:04:40 +00:00
wiz 64727772b4 Fix typos.
XXX: does not compile for me because of constness issues
2018-01-23 15:02:03 +00:00
wiz 55bf1e41e9 Improve description of options. Based on comments by Tomohiro Kusumi. 2018-01-23 14:58:46 +00:00
wiz c54beb77bd Sync usage with man page. 2018-01-22 10:41:18 +00:00
wiz cf7ae89ea7 Add RCS Id, simplify wording, sort.
The option arguments need to be properly described.
2018-01-22 10:40:22 +00:00
kamil 8d6d0994ab Improve the mount_autofs(8) stub documentation
Improve DESCRIPTION and NAME.
2018-01-22 10:34:20 +00:00
kamil 0689dd382b Add mount_autofs(8) from DragonFly BSD 2018-01-22 09:45:32 +00:00
mrg f2b04ca083 implement 32-bit compat support for raidframe.
convert several raidframe ioctls to be bitsize idempotent so that
they work the same in 32 and 64 bit worlds, allowing netbsd32 to
configure and query raid properly.  remove useless 'row' in a few
places.  add COMPAT_80 and put the old ioctls there.

raidframeio.h:
  RAIDFRAME_TEST_ACC
  - remove, unused
  RAIDFRAME_GET_COMPONENT_LABEL
  - convert to label not pointer to label
  RAIDFRAME_CHECK_RECON_STATUS_EXT
  RAIDFRAME_CHECK_PARITYREWRITE_STATUS_EXT
  RAIDFRAME_CHECK_COPYBACK_STATUS_EXT
  - convert to progress info not pointer to info
  RAIDFRAME_GET_INFO
  - version entirely.
raidframevar.h:
  - rf_recon_req{} has row, flags and raidPtr removed (they're
    not a useful part of this interface.)
  - RF_Config_s{} and RF_DeviceConfig_s{} have numRow/rows removed.
  - RF_RaidDisk_s{} is re-ordered slightly to fix alignment
    padding - the actual data was already OK.
  - InstallSpareTable() loses row argument

rf_compat32.c has code for RF_Config_s{} in 32 bit mode, used
by RAIDFRAME_CONFIGURE and RAIDFRAME_GET_INFO32.

rf_compat80.c has code for rf_recon_req{}, RF_RaidDisk_s{} and
RF_DeviceConfig_s{} to handle RAIDFRAME_FAIL_DISK,
RAIDFRAME_GET_COMPONENT_LABEL, RAIDFRAME_CHECK_RECON_STATUS_EXT,
RAIDFRAME_CHECK_PARITYREWRITE_STATUS_EXT,
RAIDFRAME_CHECK_COPYBACK_STATUS_EXT, RAIDFRAME_GET_INFO.

move several of the per-ioctl code blocks into separate functions.

add rf_recon_req_internal{} to replace old usage of global
rf_recon_req{} that had unused void * in the structure, ruining
it's 32/64 bit ABI.

add missing case for RAIDFRAME_GET_INFO50.

adjust raid tests to use the new .conf format, and add a case to
test the old method as well.

raidctl:
deal with lack of 'row' members in a couple of places.
fail request no longer takes row.
handle "START array" sections with just "numCol numSpare", ie
no "numRow" specified.  for now, generate old-style configuration
but update raidctl.8 to specify the new style (keeping reference
to the old style.)

note that: RF_ComponentLabel_s::{row,num_rows} and
RF_SingleComponent_s::row are obsolete but not removed yet.
2018-01-18 00:32:48 +00:00
sborrill 3610eeec38 Explain what suffixes are accepted when specifying a size. 2018-01-15 12:20:47 +00:00
christos 5e79a1598d Add mount_autofs 2018-01-14 22:44:04 +00:00
wiz 5d07b5f046 Sort SEE ALSO. 2018-01-09 09:15:57 +00:00
christos b985414b8f Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet
2018-01-09 03:31:12 +00:00
wiz dd5857855f Bump date for previous. 2018-01-07 18:11:35 +00:00
christos 0cc54e49cb KNF. 2018-01-07 15:26:43 +00:00
kre b36637ee94 PR bin/52905
Document, and properly implement, the -q and -e options to dkctl xxN listwedges.
(implementation fix supplied by Petar Bogdanovic.)
2018-01-07 12:29:25 +00:00
christos 97576db071 Use the definitions from the standard header files and replace homebrew
snprintb with the libutil one.
2017-12-13 17:42:44 +00:00
uwe 034a499654 Fix typo in flag name. We should probably just use IFFBITS string
that <net/if.h> defines.

PR bin/52815
2017-12-13 11:31:42 +00:00
wiz 7f40156188 Sync (dead) usage with man page. 2017-11-30 15:42:18 +00:00
christos 9362976817 clang does not like dead unused functions. 2017-11-30 03:31:08 +00:00
wiz c969bed60e Install qemufwcfg(4) and mount_qemufwcfg(8). 2017-11-28 11:59:16 +00:00
wiz 89fac405e7 Fix typo found by jmcneill. 2017-11-28 11:55:30 +00:00
wiz 44464768a4 Add mount_qemufwcfg man page for review. 2017-11-28 11:10:31 +00:00
christos bf50363c57 don't error on unknown options. 2017-11-26 15:03:15 +00:00
christos 301f930221 more cleanups, const 2017-11-26 03:51:45 +00:00
christos 1fc9073d30 cleanup, knf, remove debugging printf, homebrew alloc macros, types. 2017-11-26 03:06:24 +00:00
jmcneill a06265e3d0 Build and install mount_qemufwcfg on i386 and amd64 2017-11-25 23:29:43 +00:00
jmcneill c91601382a Add virtual filesystem for QEMU Firmware Configuration interface. 2017-11-25 23:23:39 +00:00
kre 70c1fd98e2 Several more cleanups:
1. Don't force use of "for" when "while" works better.
2. No need to check c != '\0' when we also check (c == ' ' || c == '\t')
3. Use the size of the buffer we're using, rather than a different one
   (not really a concern, they're the same size)
4. Don't use fscanf() to read file data, use fgets() & sscanf().
5. After using a pointer as a char *, validate alignment before switching
   to int * (can only fail if kernel #define gets set stupidly)   Or #6...
6. Validate sparemap file name isn't too long for assigned space.
7. recognise that strlen() returns size_t - don't shove it into an int.
8. On out of mem, be more clear which allocation failed in warning msg.

ATF tests all pass.   But I don't think they use sparemap files.
2017-11-22 00:31:31 +00:00
christos dbab137455 Avoid needless pointer calisthenics: &foo[0] -> foo 2017-11-21 16:31:37 +00:00
kre e8f6b3ae2f With char bug[SIZE] using sizeof(bug[0]) is kind of boring, use
sizeof(bug) instead...
2017-11-21 16:19:31 +00:00
kre 24b75d09bd White space and comment formatting. NFC. 2017-11-20 22:16:23 +00:00
wiz a1ebe6684c Remove Tn. Remove undefined .Sp. Use tagged list instead of hanging one
with .brs.
2017-11-20 21:59:30 +00:00
christos 6937a5d56d stop using magic constants
wrap long lines
use warn{,x}
make static
knf
2017-11-20 19:10:45 +00:00
kardel cb7aeb8243 support NAME=<wedge name> syntax for disks and spares 2017-11-20 18:37:56 +00:00
christos 1fd6f11802 Clarify the program naming convention, and use consistently <fstype> instead
of XXX.
2017-11-20 16:41:55 +00:00
christos 030580eaff user librumpres 2017-10-10 19:30:06 +00:00
mlelstv 9ffedbd04f Fix computation of left-over fragments also for ufs2.
Fixes PR 52600.
2017-10-09 05:24:26 +00:00
mlelstv ff454992cd clarify that alignment is the number of bytes to align to. 2017-10-03 06:55:04 +00:00
joerg d8b81801d6 Really don't include ioctl code for tools build. 2017-10-02 22:02:05 +00:00
maya 79d830d6a0 unifdef sgi. NFCI 2017-10-02 11:02:19 +00:00
maya ff0b390a62 un-ifdef sgi. NFC 2017-10-02 10:08:11 +00:00
christos 7ebfc10b9a PR/52590: David H. Gutteridge: Minor documentation improvements 2017-10-01 22:59:19 +00:00
mlelstv fa4874d540 - More fixes to use 64bit offsets.
- Compute left-over fragments also for FFS2.
2017-10-01 07:18:39 +00:00