NetBSD/sbin
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
..
amrctl Spelling mistake. 2016-09-11 00:52:39 +00:00
apmlabel
atactl add SMART 249: Total Raw NAND Writes (1GiB units), sourced from 2016-10-04 21:37:46 +00:00
badsect Drop main() prototype. 2016-09-05 01:00:07 +00:00
bioctl Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
brconfig Use the new BRDGGIFS and BRDGRTS cmds which just use ifdrv directly. 2015-06-01 06:15:18 +00:00
canconfig New sentence, new line. Fix typos. More consistent grammar. 2017-05-29 08:46:23 +00:00
ccdconfig
cgdconfig Need <sys/stat.h> for S_IFBLK. 2017-01-10 20:45:19 +00:00
chkconfig
chown Add EXIT STATUS section. Use Ex. Sort sections. 2017-07-04 06:53:12 +00:00
clri Actually, V6 included clri before 3BSD. 2016-09-12 23:11:50 +00:00
devpubd Document the version devpubd first appeared. 2016-09-11 01:38:00 +00:00
disklabel Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
dkctl Bump date for previous. 2018-01-07 18:11:35 +00:00
dkscan_bsdlabel use a minimal "struct disk" in userland rather than the full kernel structure. 2017-06-08 22:24:29 +00:00
dmctl Fix typo 2017-06-04 08:34:34 +00:00
dmesg dmesg first appeared in 3BSD 2016-09-11 02:24:00 +00:00
drvctl KNF. 2018-01-07 15:26:43 +00:00
dump dump was there from v4. 2016-08-15 00:03:14 +00:00
dump_lfs s/filesystem/file system/ 2017-06-07 15:24:50 +00:00
fastboot
fdisk Really don't include ioctl code for tools build. 2017-10-02 22:02:05 +00:00
fsck file system police. 2016-09-11 09:09:54 +00:00
fsck_ext2fs Fix previous properly (wrong variable was tested) thanks riastradh@ 2017-04-21 19:33:56 +00:00
fsck_ffs __empty -> __nothing 2017-02-08 18:05:25 +00:00
fsck_lfs Update inode member i_flag --> i_state to keep up with kernel changes 2017-06-10 08:13:15 +00:00
fsck_msdos Prevent SEGV on corrupted msdos directories (Veo Zhang) 2017-04-28 11:33:00 +00:00
fsck_v7fs need <sys/stat.h> 2017-01-10 20:53:09 +00:00
fsdb Fix punctuation markup. 2017-08-05 20:25:41 +00:00
fsirand Document author and the version fsirand appeared. 2016-09-11 21:22:18 +00:00
gpt Explain what suffixes are accepted when specifying a size. 2018-01-15 12:20:47 +00:00
ifconfig user librumpres 2017-10-10 19:30:06 +00:00
init init first appeared in V1 UNIX 2016-09-11 22:22:57 +00:00
iscsictl update client OS version as well 2015-08-30 10:49:57 +00:00
iscsid Add printf-like annotation. 2016-05-30 22:02:41 +00:00
ldconfig
luactl Direct reader to intro(9lua), lua(9) does not exist. 2017-04-10 19:49:39 +00:00
mbrlabel
mknod Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
modload Fix Dt argument. 2017-07-18 19:50:54 +00:00
modstat Add a description for the new MODULE_CLASS_BUFQ class. 2016-11-16 10:43:37 +00:00
modunload Use standard section header. 2016-09-12 06:55:10 +00:00
mount Sort SEE ALSO. 2018-01-09 09:15:57 +00:00
mount_ados
mount_autofs Add mount_autofs 2018-01-14 22:44:04 +00:00
mount_cd9660 s/filesystem/file system/ 2017-06-07 15:24:50 +00:00
mount_chfs Document the version mount_chfs appeared. 2016-09-12 00:38:42 +00:00
mount_efs
mount_ext2fs Add MOPT_{REL,NO}ATIME as supported by the underlying filesystems. 2016-02-21 22:51:29 +00:00
mount_fdesc
mount_ffs
mount_filecore
mount_hfs Drop main() prototype. 2016-09-05 01:00:07 +00:00
mount_kernfs
mount_lfs Add MOPT_{REL,NO}ATIME as supported by the underlying filesystems. 2016-02-21 22:51:29 +00:00
mount_msdos Whilst mount_pcfs originated as a patch in 386BSD, NetBSD 0.8 actually was the first release of an OS to ship with it. 2016-10-11 16:10:03 +00:00
mount_nfs Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
mount_nilfs Sort SEE ALSO. New sentence, new line. Punctuation nits. Use Nx. 2016-06-01 12:01:21 +00:00
mount_ntfs Use Xr instead of Fn to refer readdir(3) 2017-04-15 10:30:55 +00:00
mount_null Eliminate the distinct path check, since the paths don't actually need to be 2016-07-25 04:40:51 +00:00
mount_overlay
mount_portal Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
mount_procfs Bump date for previous. 2017-08-28 05:58:08 +00:00
mount_ptyfs Drop main() prototype. 2016-09-05 01:00:07 +00:00
mount_puffs New sentence, new line. Sort SEE ALSO. Fix typo. 2016-11-24 12:38:32 +00:00
mount_qemufwcfg Sync (dead) usage with man page. 2017-11-30 15:42:18 +00:00
mount_sysvbfs Add AUTHORS section. 2016-09-12 02:38:31 +00:00
mount_tmpfs Add MOPT_{REL,NO}ATIME as supported by the underlying filesystems. 2016-02-21 22:51:29 +00:00
mount_udf Add HISTORY & AUTHORS section. 2016-09-12 02:45:07 +00:00
mount_umap
mount_union s/filesystem/file system/ 2017-06-07 15:24:50 +00:00
mount_v7fs Add HISTORY & AUTHORS section. 2016-09-12 02:57:09 +00:00
newbtconf Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
newfs Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
newfs_ext2fs Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
newfs_lfs Enable the creation of lfs64 volumes. 2015-10-15 06:24:33 +00:00
newfs_msdos Use the create_size if given to compute the real size instead of stat'ing 2017-04-14 15:39:29 +00:00
newfs_sysvbfs fix includes, addr __RCSID 2017-01-10 20:49:20 +00:00
newfs_udf Disable a couple of warnings until further investigation. 2017-01-11 12:19:43 +00:00
newfs_v7fs need <sys/stat.h> 2017-01-10 20:53:09 +00:00
nologin Mention author in AUTHORS section. 2016-09-12 05:23:32 +00:00
nvmectl sprinkle static and death 2017-05-03 01:37:16 +00:00
ping un-ifdef sgi. NFC 2017-10-02 10:08:11 +00:00
ping6 user librumpres 2017-10-10 19:30:06 +00:00
pppoectl pppoectl first appeared in NetBSD 1.6. 2016-09-12 05:35:20 +00:00
raidctl implement 32-bit compat support for raidframe. 2018-01-18 00:32:48 +00:00
rcorder Drop main() prototype. 2016-09-05 01:00:07 +00:00
reboot A standalone reboot utility showed up in 4.0BSD. 2016-09-12 05:43:15 +00:00
resize_ffs Fix computation of left-over fragments also for ufs2. 2017-10-09 05:24:26 +00:00
resize_lfs Add a (draft) 64-bit superblock. Make things build again. 2015-08-02 18:18:09 +00:00
restore Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
rndctl Use <sys/rndio.h> instead of <sys/rnd.h>. 2015-04-13 22:18:50 +00:00
route Use the definitions from the standard header files and replace homebrew 2017-12-13 17:42:44 +00:00
routed unifdef sgi. NFCI 2017-10-02 11:02:19 +00:00
savecore Adapt funopen(3) call after switch to new zlib(3) 2017-01-10 04:42:20 +00:00
scan_ffs Teach scan_ffs about lfs64. 2015-10-15 06:25:23 +00:00
scsictl Fix format. 2017-03-08 11:45:14 +00:00
setkey
shutdown Use NULL instead of 0 for null pointer. 2017-08-07 22:08:12 +00:00
slattach
svhlabel
swapctl Minor formatting change in swapctl -l as noted in my PR bin/51155 2016-05-31 09:34:25 +00:00
sysctl say ipsec stats are viewable with netstat. 2017-04-13 14:46:32 +00:00
ttyflags
tunefs Use getfsspecname also when not found in /etc/fstab. 2015-08-26 05:41:20 +00:00
umount s/filesystem/file system/ 2017-06-07 15:24:50 +00:00
veriexecctl Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
wdogctl Use _PATH_WATCHDOG from <paths.h> instead of locally-defined value. 2015-05-06 23:08:30 +00:00
wsconsctl
Makefile Add mount_autofs 2018-01-14 22:44:04 +00:00
Makefile.inc