Commit Graph

7070 Commits

Author SHA1 Message Date
wiz 64f2452046 Bump date for new EXIT STATUS section. 2018-05-01 21:04:01 +00:00
wiz 32e2530e6d Sort sections. 2018-05-01 21:03:37 +00:00
martin 72be6dafa1 Make the "gpt header" command return EXIT_FAILURE when no GPT is present.
This helps sysinst to tell a GPT labeled disk from others.
Very lazy version of a change proposed by kre.
2018-05-01 08:17:13 +00:00
maxv b5d4b113f7 Add code 3 of paramprob, part of RFC7112: "IPv6 First Fragment has
incomplete IPv6 Header Chain". Handle this code in ping6.
2018-04-24 07:22:32 +00:00
maxv 519a11ad08 Remove annoying (void) casts. 2018-04-24 07:12:04 +00:00
maxv f025b20b34 Remove double include and unused macros. 2018-04-23 18:48:30 +00:00
maxv f4598fe58b Remove the "-R" option. It uses IPV6_REACHCONF, but we've never had
this.
2018-04-23 18:44:39 +00:00
maxv fa0be10b46 Fix usage(), A/E don't exist. 2018-04-23 18:37:19 +00:00
maxv ed8f79525d Simplify: remove #ifdefs for constants that are always defined, and
remove their #else's (some of which can't compile, since they use values
that since got removed).
2018-04-23 18:32:18 +00:00
maxv a845eccede Remove dead/broken code, we want to favor RFC3542 over RFC2292. No
functional change. traceroute6 and rtadvd did the same.
2018-04-23 10:35:20 +00:00
wiz da9f189127 Sort options. Sort option descriptions. Remove Tn.
Sync usage (more) with man page.
2018-04-23 07:25:36 +00:00
maxv 9948652569 Remove the "hops" parameter, it uses RH0, which is deprecated by RFC5095,
and doesn't work on modern networks anymore.
2018-04-23 06:51:25 +00:00
nonaka ca639f32c5 nvmectl(8): Remove some wdc subcommands from man page.
- wdc drive-log
- wdc get-crash-dump
- wdc purge
- wdc purge-monitor
2018-04-18 10:17:54 +00:00
nonaka d2ae75c29e nvmectl(8): fix subcommand usage. 2018-04-18 10:16:22 +00:00
nonaka 6ac76f5b92 nvmectl(8): Add big-endian support.
from FreeBSD nvmecontolr(8) r329824.
2018-04-18 10:11:44 +00:00
nonaka 605c860b16 nvmectl(8): fix wdc command usage. 2018-04-17 15:31:00 +00:00
nonaka 1f5086ec4f nvmectl(8): Sync with FreeBSD nvmecontrol(8) r328763. 2018-04-17 08:54:35 +00:00
maxv bc7ed98e99 typo in comment 2018-04-15 08:27:21 +00:00
kre 329132e2a8 Make timestamp reading code adapt to whatever precision (up to
nanoseconds, 9 digits) the kernel happens to send in the timestamps
in log messages.

Output (numeric) timestamps (when produced) are unchanged and always
in microseconds (for now).
2018-04-14 01:37:34 +00:00
kre 2b71f00cba Minor wording change (no date bump needed.) 2018-04-14 01:34:47 +00:00
mrg 28731ff616 if a new map entry doesn't fit, be more verbose about the sizes. 2018-04-11 07:14:23 +00:00
mrg d144e17dce add information about how to boot from gpt. mostly taken from the wiki. 2018-04-11 07:13:18 +00:00
wiz ba701a99f9 Update usage. 2018-04-11 06:41:23 +00:00
wiz a10e00a15c Sort flags in SYNOPSIS. 2018-04-11 06:40:53 +00:00
christos 2fef76cb66 match the linux dmesg flags. 2018-04-10 22:21:52 +00:00
christos 6d9827c89d eat NUL's first so that the state machine is not altered by them. 2018-04-02 01:15:31 +00:00
christos eb23b853bb handle log being before timestamp... 2018-04-01 19:36:13 +00:00
christos db02d1fb9e Handle new timestamp sequences. 2018-04-01 19:31:16 +00:00
ryo fe33aa2786 Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)
- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)
2018-04-01 04:35:01 +00:00
mlelstv 20bad51beb Handle sector sizes != 512, check partition overlaps, improve guessing
of filesystem parameters.
2018-03-30 13:14:25 +00:00
christos 373dcdfac1 PR/51418: Jose Luis Rodriguez Garcia: Fix incore src/sbin/fsck_lfs/bufcache.c
XXX: pullup-8, pullup-7
2018-03-30 12:56:46 +00:00
nakayama 6ebbd813f6 Follow the ioctl arg changes of RAIDFRAME_GET_COMPONENT_LABEL and
RAIDFRAME_CHECK_*_STATUS_EXT.

This should fix strange raidctl -s outputs reported in
current-users ML.
2018-03-24 19:41:35 +00:00
roy 68900ca448 Handle the routing socket overflowing gracefully. 2018-03-23 11:57:33 +00:00
mlelstv a23ee50408 Check device parameter to avoid segfaults. Agument synopsis for -l option. 2018-03-19 09:06:20 +00:00
jdolecek f24079bab1 use setprogname()/getprogname(), do not hardcode the prognam name in fixed
strings
2018-03-17 11:07:26 +00:00
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
kre 9d73fa5606 Fix the syntax (pointed out by David H. Gutteridge on source-changes-d).
Fix the build...
2017-09-30 18:32:52 +00:00
riastradh 84bea879cb Use int64_t for loop index so we don't iterate forever/until trap. 2017-09-30 15:25:16 +00:00
sborrill 0e0ce305cc Fix the most obvious integer overflow errors which can lead to superblock
corruption. Thanks to riastradh@

For example:

# df /data
Filesystem    1K-blocks       Used      Avail %Cap Mounted on
/dev/ccd0d   -19974939099004 -19982708701532 -737868756431824584   0% /data

# dumpfs -s /dev/rccd0d
file system: /dev/rccd0d
format  FFSv2
endian  little-endian
location 65536  (-b 128)
magic   19540119        time    Thu Sep 28 13:18:10 2017
superblock location     65536   id      [ 595fa4a5 3363fe37 ]
cylgrp  dynamic inodes  FFSv2   sblock  FFSv2   fslevel 5
nbfree  242773148       ndir    211185  nifree  650798800       nffree
215448
ncg     13933   size    2647654400      blocks  -4993734774751
bsize   32768   shift   15      mask    0xffff8000
fsize   4096    shift   12      mask    0xfffff000
frag    8       shift   3       fsbtodb 3
bpg     23754   fpg     190032  ipg     46848
minfree 5%      optim   time    maxcontig 2     maxbpg  4096
symlinklen 120  contigsumsize 2
maxfilesize 0x000800800805ffff
nindir  4096    inopb   128
avgfilesize 16384       avgfpdir 64
sblkno  24      cblkno  32      iblkno  40      dblkno  2968
sbsize  4096    cgsize  32768
csaddr  35792   cssize  225280
cgrotor 0       fmod    0       ronly   0       clean   0x01
wapbl version 0x1       location 2      flags 0x0
wapbl loc0 6354693888   loc1 131072     loc2 512        loc3 3
flags   none
fsmnt   /data
volname         swuid   0
2017-09-28 17:07:20 +00:00
christos 47a4080915 use __arraycount 2017-09-07 10:23:33 +00:00
christos d68621905c - make sure that the utf16 string is padded with 0's where needed.
- since the utf16 string is not 0 terminated, pass the size of the string.
2017-09-06 18:17:18 +00:00
christos dec6dba63c PR/52522: Piotr Meyer: Don't NUL terminate the gpt label name.
XXX: pullup-8
2017-09-05 18:30:46 +00:00
wiz ce31ac2bf0 Bump date for previous. 2017-08-28 05:58:08 +00:00
kamil a69b333e73 Remove the filesystem tracing feature
This is a legacy interface from 4.4BSD, and it was
introduced to overcome shortcomings of ptrace(2) at that time, which are
no longer relevant (performance). Today /proc/#/ctl offers a narrow
subset of ptrace(2) commands and is not applicable for modern
applications use beyond simplistic tracing scenarios.

This removal will simplify kernel internals. Users will still be able to
use all the other /proc files.

This change won't affect other procfs files neither Linux compat
features within mount_procfs(8). /proc/#/ctl isn't available on Linux.

Remove:
 - /proc/#/ctl from mount_procfs(8)
 - P_FSTRACE note from the documentation of ps(1)
 - /proc/#/ctl and filesystem tracing documentation from mount_procfs(8)
 - KAUTH_REQ_PROCESS_PROCFS_CTL documentation from kauth(9)
 - source code file miscfs/procfs/procfs_ctl.c
 - PFSctl and procfs_doctl() from sys/miscfs/procfs/procfs.h
 - KAUTH_REQ_PROCESS_PROCFS_CTL from sys/sys/kauth.h
 - PSL_FSTRACE (0x00010000) from sys/sys/proc.h
 - P_FSTRACE (0x00010000) from sys/sys/sysctl.h

Reduce code complexity after removal of this functionality.

Update TODO.ptrace accordingly: remove two entries about /proc tracing.

Do not keep legacy notes as comments in the headers about removed
PSL_FSTRACE / P_FSTRACE, as this interface had little number of users
(close or equal to zero).

Proposed on tech-kern@.

All filesystem tracing utility users are encouraged to switch to ptrace(2).

Sponsored by <The NetBSD Foundation>
2017-08-28 00:46:06 +00:00
uwe feec5ded24 Use NULL instead of 0 for null pointer. 2017-08-07 22:08:12 +00:00
wiz bcd2b17ff2 Fix punctuation markup. 2017-08-05 20:25:41 +00:00
wiz cd2cf51300 Use Fx/Nx. 2017-08-05 20:21:08 +00:00
mrg 9cb0f8bd7b add a "saveblks <file>" command that saves the data blocks of the current
inode into named file.
2017-08-04 07:19:35 +00:00
kre 7cd73c9220 Fix a typo, and make a couple of minor wording improvements.
I resisted the (very weak) impulse to Americanise some spellings ...
2017-08-04 02:43:56 +00:00
msaitoh 1848778b0b Add note about bootme flag:
The bootme flag is used to indicate which partiotion should be booted
	by UEFI boot code.
2017-08-03 14:39:31 +00:00
wiz d3d1d19dfa Fix Dt argument. 2017-07-18 19:50:54 +00:00
christos cf30cbf155 PR/52417: Edgar Pettijohn: modules.conf(5) not mentioned in related manuals 2017-07-18 13:00:00 +00:00
manu c87959dccf Fix route and netstat -r output when built with -DSMALL
A missing \n caused the routing table to be printed all in one line
if -DSMALL was used.
2017-07-13 08:26:29 +00:00
wiz 1595760100 Use Ex. 2017-07-04 06:54:20 +00:00
wiz b3f33fc531 Add EXIT STATUS section. Use Ex. Sort sections. 2017-07-04 06:53:12 +00:00
wiz 7bd68c88c1 Add EXIT STATUS section. Use Ex. 2017-07-04 06:52:20 +00:00
wiz 01869ca4d2 Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
mrg 480adae332 only do wedges if not the tools version. fixes build on netbsd-4,
and any other place that might have the same ioctl name while having
something not quite right (in this case, cpuid_t in headers not
working properly..)

XXX: pullup-8
2017-07-03 06:44:58 +00:00
ozaki-r da803ed70d Restore ARP/NDP entries to route show and netstat -r
Requested by dyoung@ some time ago
2017-06-28 04:14:53 +00:00
wiz 45a8078c32 Remove unnecessary Pp. 2017-06-19 09:46:33 +00:00
ozaki-r a49d9c85a4 Support -c <count> option for route monitor
route command exits if it receives <count> routing messages where
<count> is a value specified by -c.

The option is useful to get only particular message(s) in a test script.
2017-06-16 04:40:16 +00:00
pgoyette 94d854a4fc Update inode member i_flag --> i_state to keep up with kernel changes 2017-06-10 08:13:15 +00:00
chs 8903716be3 this file uses the <sys/queue.h> macros so it should include
that header itself, rather than relying on getting it indirectly
by including some other header.
2017-06-09 00:13:08 +00:00
chs 71997035dc use a minimal "struct disk" in userland rather than the full kernel structure.
needed due to upcoming sys/disk.h changes needed for ZFS.
2017-06-08 22:24:29 +00:00
abhinav d482d5b4c5 s/filesystem/file system/ 2017-06-07 15:24:50 +00:00
abhinav 4f5a1ab658 Fix typo 2017-06-04 08:34:34 +00:00
wiz 53988e4234 New sentence, new line. Fix typos. More consistent grammar.
Comment out empty EXAMPLES section. Remove unnecessary macros.
2017-05-29 08:46:23 +00:00
bouyer 6e4cb2b9ab merge the bouyer-socketcan branch to HEAD.
CAN stands for Controller Area Network, a broadcast network used
in automation and automotive fields. For example, the NMEA2000 standard
developped for marine devices uses a CAN network as the link layer.

This is an implementation of the linux socketcan API:
https://www.kernel.org/doc/Documentation/networking/can.txt
you can also see can(4).

This adds a new socket family (AF_CAN) and protocol (PF_CAN),
as well as the canconfig(8) utility, used to set timing parameter of
CAN hardware. Also inclued is a driver for the CAN controller
found in the allwinner A20 SoC (I tested it with an Olimex lime2 board,
connected with PIC18-based CAN devices).

There is also the canloop(4) pseudo-device, which allows to use
the socketcan API without CAN hardware.

At this time the CANFD part of the linux socketcan API is not implemented.
Error frames are not implemented either. But I could get the cansend and
canreceive utilities from the canutils package to build and run with minimal
changes. tcpudmp(8) can also be used to record frames, which can be
decoded with etherreal.
2017-05-27 21:02:54 +00:00
christos f82096efe2 We need to provide a size for getattr for the cp example to work, so cheat
and use fstat() to do it instead of libpuffs.
2017-05-10 16:35:18 +00:00
christos cc50bb7aa6 set only the effective user id to the user id of the requesting user so that
we can go back to the original uid later.
2017-05-10 13:58:25 +00:00
kamil 33078560c6 Minor and non-functional enhancements in mount_portal(8)
Since day0 pt_exec.c shipped with a dummy stub for "exec" operation, stop
waiting longer and eliminate it now. This functionality can be achieved
with filters.

Drop FreeBSD CVS repos references. There are certainly still some mirrors
or old mirrors available, but since the project moved to SVN+GIT entirely
drop it.

Add CVS Id - where missing - to the documentation files. This helps users
to determine how recent are the files.
2017-05-09 23:26:49 +00:00
kamil 53e8e965f1 Sync example portal.conf with reality
Since day0 nobody implemented pipe, tcplisten, exec modes - eliminate them.
2017-05-09 21:42:35 +00:00
christos ab25bee7cd prevent hang on vnode EOF. 2017-05-09 21:17:54 +00:00
christos 4a2bfb113e sprinkle static and death 2017-05-03 01:37:16 +00:00
christos fec7750749 We don't need agr or l2tp when we are small. 2017-05-02 20:12:27 +00:00
wiz 93cd6a62e6 Remove unnecessary Pp. Add missing plural-s. More markup. 2017-04-30 15:59:18 +00:00
nonaka addbc19a7a Added missing file...
> nvmectl(8): sync with FreeBSD HEAD r316105.
>
>  - Expand the SMART / Health Information Log Page (Page 02) printout based on
>    NVM Express 1.2.1 Standard.
>  - Implement Intel-specific log pages.
>  - Implement HGST-specific log pages.
>  - Implement wdc-specific nvme control options.
>  - Add the ability to dump log pages directly in binary to stdout.
2017-04-29 00:08:46 +00:00
nonaka d003492f75 nvmectl(8): sync with FreeBSD HEAD r316105.
- Expand the SMART / Health Information Log Page (Page 02) printout based on
   NVM Express 1.2.1 Standard.
 - Implement Intel-specific log pages.
 - Implement HGST-specific log pages.
 - Implement wdc-specific nvme control options.
 - Add the ability to dump log pages directly in binary to stdout.
2017-04-29 00:06:40 +00:00
christos 255de32a23 Prevent SEGV on corrupted msdos directories (Veo Zhang) 2017-04-28 11:33:00 +00:00
christos 0185392700 Fix previous properly (wrong variable was tested) thanks riastradh@ 2017-04-21 19:33:56 +00:00
christos a110095d6d e2di_block is an array; can't be NULL, (clang) 2017-04-21 17:33:04 +00:00
abhinav c6e09f6896 Use Xr instead of Fn to refer readdir(3) 2017-04-15 10:30:55 +00:00
christos 64f54f261d Use the create_size if given to compute the real size instead of stat'ing
the file again, which might have been larger to start with.
2017-04-14 15:39:29 +00:00
christos a22e7bc981 say ipsec stats are viewable with netstat. 2017-04-13 14:46:32 +00:00
sevan 88e7faeafa Direct reader to intro(9lua), lua(9) does not exist. 2017-04-10 19:49:39 +00:00
jdolecek db79755da6 write info about DKCACHE_FUA, DKCACHE_DPO in disk_getcache() 2017-04-05 20:27:09 +00:00
jdolecek 8e90ad672f expand a little the explanation about discard
describe behaviour of combination of log+async (i.e. same as just log)
2017-03-22 21:14:11 +00:00
martin 945b6d1754 Add missing endianes swap to make the "recover" command work on big endian
machines.
2017-03-22 19:59:16 +00:00
roy d8c60740ae Report the PID for the process changing the address. 2017-03-17 16:13:44 +00:00
ryo 2f4136203c Fix cksum calculation for clearing the cached route.
In ping.c:r1.104, the size of echoreply packet was changed to ICMP_MINLEN,
Therefore also calculation size must be ICMP_MINLEN.
2017-03-17 06:52:59 +00:00
chs 037063a2ac use warnx() rather than warn() in a case where errno is not relevant. 2017-03-09 00:18:23 +00:00
tsutsui 0ba0846790 Fix format. 2017-03-08 11:45:14 +00:00
wiz 2a5a03e6e8 file system police. 2017-02-17 09:29:35 +00:00
christos 285cf56905 Allow 0 timestamp 2017-02-16 22:42:25 +00:00
christos f8bc8f05cf allow 0 timestamp 2017-02-16 22:40:19 +00:00
christos 297234680c add -T for reproducible builds (used in makefs) 2017-02-16 18:49:31 +00:00
wiz d0da83b571 New sentence, new line.
Remove superfluous Oc and merge line to make it less likely to happen again.
Fix typo.
2017-02-16 13:51:08 +00:00
knakahara f8f075dfc2 add man for l2tp(4). 2017-02-16 08:32:21 +00:00
knakahara 03c4401a4e add l2tp(4) subcomands to ifconfig(8).
originally implemented by IIJ SEIL team.
2017-02-16 08:28:03 +00:00
christos ef9cffab3f Add -T timestamp for reproducible builds. 2017-02-16 03:32:17 +00:00
nonaka 7f9c3b1be0 128 bit integers are displayed in decimal.
bn.h and bignum.c from netgpg.
2017-02-13 11:16:46 +00:00
aymeric eadf25e08c Make gpt(8) work when compiled on a glibc-based OS.
This restores the ability to build amd64 install-image's under Linux.
2017-02-12 16:54:06 +00:00
rin 879e53004e Cosmetic changes. No functional changes. 2017-02-08 23:26:24 +00:00
rin d394916260 Factor out a common part in Makefile's of ifconfig and x_ifconfig. 2017-02-08 23:22:43 +00:00
rin 6323d1adb5 Rename sbin/ifconfig/Makefile.inc to Makefile.common; the former can
potentially conflict with bsd.subdir.mk.
2017-02-08 23:16:41 +00:00
rin 9766216654 Remove ifconfig hack on m68000. I've confirmed that the problem has already
gone with TME.
2017-02-08 23:13:59 +00:00
rin ce7fa6f1d3 __empty -> __nothing 2017-02-08 18:05:25 +00:00
rin 47e6c13bb2 switch to __empty 2017-02-08 16:56:56 +00:00
christos 58acfeb884 use __empty 2017-02-08 16:23:24 +00:00
rin ccc9d98e52 Add smaller versions of fsck_ffs(8) and newfs(8) for install media, where
support for Endian-Independent FFS and Apple UFS is disabled unless FFS_EI=1
and APPLE_UFS=1 are added to CRUNCHENV, respectively.

This reduces the size of ramdisk image for atari by over 15KB.

Thanks tsutsui and christos for their useful comments.
2017-02-08 16:11:39 +00:00
rin 872902e1dd Do not compile in progress.c when SMALLPROG is defined. 2017-02-07 16:14:47 +00:00
christos ec5c127714 remove debugging printf. 2017-02-05 00:24:24 +00:00
christos e18b8724f0 use the netid value because it could be udp6... 2017-02-03 21:56:01 +00:00
abhinav d468dc41e1 Fix spelling of partition. 2017-01-27 10:21:16 +00:00
abhinav f1b8958974 Fix spelling of simultaneous. 2017-01-27 10:12:05 +00:00
abhinav fc37131283 Fix typo: s/forwared/forwarded
Also remove full stop from the date.
2017-01-18 22:07:25 +00:00
joerg f9c2736326 Disable a couple of warnings until further investigation. 2017-01-11 12:19:43 +00:00
joerg 2c0cac8e7f Use an explicitly aligned buffer for ip. 2017-01-11 12:13:52 +00:00
christos 9878dfd06c need <sys/stat.h> 2017-01-10 20:53:09 +00:00
christos ec09bb40fd fix includes, addr __RCSID 2017-01-10 20:49:20 +00:00
christos ce0cfa0c1e need <sys/stat.h> ... for stat() 2017-01-10 20:48:12 +00:00
christos cc8b3fb098 need <sys/stat.h> for fstat() 2017-01-10 20:47:05 +00:00
christos 4ffcc39190 missing <sys/stat.h> 2017-01-10 20:45:53 +00:00
christos 8cdbd53a62 Need <sys/stat.h> for S_IFBLK. 2017-01-10 20:45:19 +00:00
kamil 52678ac6a4 Adapt funopen(3) call after switch to new zlib(3)
In the prototype of the gzclose() function of changed from:

  typedef struct gzFile_s *gzFile;    /* semi-opaque gzip file descriptor */

to:

  typedef voidp gzFile;

This caused type mismatch when calling funopen(3) as:
   'int (*)(void *)' != 'int (*)(struct gzFile_s *)'

Cast gzclose to (int (*)(void *)) when used in funopen(3).
2017-01-10 04:42:20 +00:00
mrg 0537635d0c for 64 bit mips platforms where we built userland largely as n32 by
default, build a handful of tools as n64 so they work properly.

unfortunately, they're also static as dynamic n64 has a problem.

of these tools pstat is probably the lowest hanging fruit to convert
to sysctl.  systat would be close were it not for the netstat screen,
which includes netstat itself.

the rest are difficult to perhaps foolish.


the upside is that netstat, pmap and fstat all work properly now.
2016-12-23 10:19:57 +00:00
ozaki-r e3db1a05a1 Fix that routed deletes local routes
routed previousely ignored local routes, which have RTF_LOCAL flag, because
such routes have RTF_LLINFO and routed ignored routes having the flag. When
we obsoleted RTF_LLINFO, we removed the ignoring logic from routed, then
routed started removing local routes unexpectedly.

Fix this behavior by teaching local routes to routed to ignore them.

kardel@ reported the issue and helped testing, thanks!
2016-12-20 03:35:12 +00:00
dholland 885f1ddec5 Merge the PR 36997 fixes into ping6. It already didn't accept too
small or wildly too large intervals, but it did allow intervals that
failed at poll(). Since that's signed integer overflow and thus UB,
better not to.
2016-12-18 01:30:54 +00:00
dholland 9275630b0c PR bin/36997 Zafer Aydogan: ping doesn't validate numeric inputs enough.
Reject packet intervals < 1 ns as they lead to infinite loops adding
zero timespecs.

Fix the behind-schedule behavior so it doesn't spend all its time in
that loop adding very small timespecs. Try ping -c 500 -i 0.000000001
to see this in action with the old ping.
2016-12-18 01:19:34 +00:00
dholland e0d8c787c6 PR bin/36997 Zafer Aydogan: ping doesn't validate numeric inputs enough.
Check for values between INT_MAX and LONG_MAX (if they're different)
when using strtol to get an int. This applies to the -c and -l options;
the other uses were already checked.

Also limit the inter-packet interval given with -i to values that
don't cause integer overflow calling poll() with milliseconds.

Really large intervals (the number is read as floating point) can
produce positive poll() values but negative integers when converted to
struct timespec; this produces behavior akin to using -l at first and
could be construed as a local DoS vulnerability.
2016-12-18 00:21:33 +00:00
alnsn 11d74f071c Add aes-xts to cgdconfig(8). 2016-12-11 00:34:39 +00:00
wiz 97151ea665 New sentence, new line. Sort SEE ALSO. Fix typo. 2016-11-24 12:38:32 +00:00
pho 4853973201 Major rework on mount_puffs(8) so that it can actually start file servers
Now you can do
  # mount_puffs -o rdonly rot13fs#/home/foo /mnt/rot13

or in fstab
  rot13fs#/home/foo  /mnt/rot13  puffs  rdonly

to start rot13fs with arguments identical to
  # rot13fs -o rdonly /home/foo /mnt/rot13
2016-11-23 14:33:29 +00:00
wiz 34aff94565 Whitespace, sort. 2016-11-20 09:38:11 +00:00
dholland 24da7c40a9 Add crossreference to scsi(4) per note in PR 9627. 2016-11-20 07:04:14 +00:00
wiz 39a1754c2e Bump date for previous.
Use more and more appropriate markup while here.
2016-11-19 23:37:33 +00:00
flxd b0be1b67cd Add "getrealloc" and "setrealloc" commands to get/set automatic reallocation
parameters/enables for error recovery, similar to {get,set}cache.
Many old SCSI disks shipped with reallocation disabled, albeit supporting it.
Minor (cosmetic) fixup of scsi_disk_pages while there.
Based upon code in PR bin/29165 by Greg A. Woods.
OK christos@
2016-11-19 08:43:40 +00:00
pgoyette fce2486282 Add a description for the new MODULE_CLASS_BUFQ class. 2016-11-16 10:43:37 +00:00
jdolecek ad7bde6ea4 stress more that discard is experimental, and explain why; also note that
it's not compatible with log
2016-11-10 22:28:00 +00:00
jdolecek 8ed63d94b4 remove dup line 2016-11-01 16:15:51 +00:00
snj b14abce7b5 revert part of revision 1.28. "e.g." is correct. bad igor! 2016-10-15 06:23:28 +00:00
sevan cb327570eb Whilst mount_pcfs originated as a patch in 386BSD, NetBSD 0.8 actually was the first release of an OS to ship with it.
Heads up by Ingo Schwarze.
2016-10-11 16:10:03 +00:00
christos 7699c5562f try to be more clear about what is not found. 2016-10-09 21:03:43 +00:00
maya fae5be1b07 change warning message
previously attempting to use mount -t ext2 like myself would result in
the warning "mount: mount_ext2 not found for /mnt", which (if you're me)
can be misunderstood as "/mnt is not an ext2 filesystem"...

change it to "mount: mount_ext2 not found"
2016-10-08 06:47:59 +00:00
joerg 14c0cd3532 Shuffle pointer magic to not depend on temporary overaligned pointers
into a packed structure.
2016-10-07 22:32:50 +00:00
joerg 7ee1d0f8e6 Make optspace an array of uint8_t, since some of the bytes written into
it are outside the signed char range.
2016-10-07 22:31:05 +00:00
kre eb67406f45 Avoiding having parameter name shadow its own function's name.
Strictly this shouldnt be (and hasn't been for almost a year) a problem,
but there are compilers that warn about locals shadowing globals (which
this is/was) and it is easy to avoid, so ...    No functinal difference.
2016-10-05 03:06:24 +00:00
mrg e6efae7434 add SMART 249: Total Raw NAND Writes (1GiB units), sourced from
intel spec sheets.
2016-10-04 21:37:46 +00:00
kre 902f3d8946 Return to printing explicit "netmask 0x...." in the case that the
mask set is non-contiguous.   We don't prohibit setting such things
(even if they are basically useless) so they can be set by accident.
	ifconfig ifN 10.0.0.1 netmask 225.0.0.0
produced
	ifN .. inet 10.0.0.1/8
with the previous form (since 225 is 0xE1), now it produces
	ifN ... inet 10.0.0.1 netmask 0xe1000000

If the "netmask" form ever appears in ifconfig output, it (now)
means that the netmask is non-contig, which should make that case
obvious (whther intended, or set by accident)
2016-10-01 20:59:49 +00:00
roy 5174f725c2 Modernise the output for the address to address/prefix instead
of differring outputs for INET and INET6.
The hex string of the INET netmask was particulary hard to read.
2016-10-01 15:10:58 +00:00
roy b5123ad110 Remove the alias keyword from ifconfig output as it serves no purpose. 2016-09-30 16:52:17 +00:00
roy d55c25711c ifaddrs has more data than just the address.
Use it instead of making pointless ioctl calls.
2016-09-30 16:47:56 +00:00
christos f3439cf7fb say that you need to destroy it first. 2016-09-24 13:40:55 +00:00
christos e1a93a1b84 PR/51497: Clare: Allow gpt -p <n> create to work. 2016-09-23 19:36:50 +00:00
christos e8e025ac01 fix bugs in ssid printing 2016-09-22 18:22:51 +00:00
christos a8664d176f PR/51478: Jose Luis Rodriguez Garcia: Fix leak mem fsck_lfs/lfs.c 2016-09-16 11:13:47 +00:00
roy c8fe052e74 Don't bail if SIOGIFMEDIA doesn't return any media lists because we
can still report link status.
2016-09-14 11:46:43 +00:00
kre 0b2d8dad17 Update the history, shutdown was first in 4.1 BSD (and existed earlier).
Ride date bump for previous update.
2016-09-14 00:16:31 +00:00
christos 448df9d70c print address flag bits using snprintb 2016-09-13 00:20:51 +00:00
sevan acacc6feb3 Actually, V6 included clri before 3BSD.
http://minnie.tuhs.org/cgi-bin/utree.pl?file=V6/usr/man/man8/clri.8
Amend HISTORY once more.
Bump date.
2016-09-12 23:11:50 +00:00
wiz cb7bef0a8b Use standard section header. 2016-09-12 06:55:10 +00:00
wiz 31ba559526 Add .An -nosplit. 2016-09-12 06:52:59 +00:00
sevan 38077dbda0 umount appeared in V1
http://minnie.tuhs.org/cgi-bin/utree.pl?file=V1/man/man1/umount.1

Amend HISTORY.
Bump date.
2016-09-12 06:34:08 +00:00
sevan d11b992e7c shutdown appeared as a standalone utility in 4.2BSD release, in 4BSD its a
target in init.
http://www.tuhs.org/cgi-bin/utree.pl?file=4BSD/usr/src/cmd/init.c
http://www.tuhs.org/cgi-bin/utree.pl?file=4.2BSD/usr/src/etc/shutdown.c

Amend HISTORY.
Bump date.
2016-09-12 06:22:35 +00:00
sevan 08e27e9733 Replace contractions. 2016-09-12 05:47:21 +00:00
sevan 1bfbbe603d A standalone reboot utility showed up in 4.0BSD.
In AT&T UNIX init has a case for reboot and is present in the version shipped
with V5.
http://minnie.tuhs.org/cgi-bin/utree.pl?file=V5/usr/source/s1/init.c

Amend HISTORY section.
Bump date.
2016-09-12 05:43:15 +00:00
sevan 9edbcb7169 pppoectl first appeared in NetBSD 1.6.
Bump date.
2016-09-12 05:35:20 +00:00
sevan d9f234e208 Mention author in AUTHORS section.
Bump date.
2016-09-12 05:23:32 +00:00
sevan d298703f11 Document newfs_v7fs appeared in NetBSD 6.0.
Add AUTHORS secton.
Bump date.
2016-09-12 05:16:04 +00:00
sevan 6933519a81 Add AUTHORS section.
Bump date.
2016-09-12 05:11:53 +00:00
sevan 1137c8dc70 Note the origin of the newfs_msdos command from FreeBSD 3.0.
Replace contraction.
s/filesystem/file system/
Bump date.
2016-09-12 05:09:39 +00:00
sevan 65286eb532 Memory File System support appeared in 4.4BSD, implemented as an extension to
newfs(8). So while newfs may have appeared in 4.2BSD, MFS support was later.
https://svnweb.freebsd.org/csrg/sbin/newfs/Makefile?r1=39047&r2=39051
Adjust HISTORY.
Bump date.
2016-09-12 04:50:48 +00:00
sevan 4a946ec4b7 modstat initially lived in src/usr.bin/modstat before being moved to src/modstat.
Note the history of the initial implementation and amend AUTHORS section to
credit Terrence R. Lambert.
Heads up by Matthew Green.
2016-09-12 04:00:27 +00:00
sevan dbcb8388b0 Add HISTORY & AUTHORS section.
Bump date.
2016-09-12 02:57:09 +00:00
sevan 013f37ee9c Add HISTORY & AUTHORS section.
Bump date.
2016-09-12 02:45:07 +00:00
sevan aa2167a3c8 Add AUTHORS section.
Bump date.
2016-09-12 02:38:31 +00:00
sevan f61b6f043e Add HISTORY section.
Bump date.
Not sure where mount_nfs first showed up but the version in the moder BSDs originates
from 4.4BSD according to CSRG archive
http://minnie.tuhs.org/cgi-bin/utree.pl?file=4.4BSD/usr/src/sbin/mount_nfs
Commercial offerings from Sun and others covers older systems, eg
https://groups.google.com/forum/#!topic/net.unix-wizards/lMe7aQikqJI
2016-09-12 02:06:16 +00:00
sevan 20d2cbcc33 - mount_pcfs appeared in 386BSD
https://groups.google.com/forum/#!search/mount_pcfs.c/comp.unix.bsd/9qhH0v1tZm0/inlPnXZj_2sJ
- Edit history to note name change version & rewrite.
- Add authors section.
- s/filesystem/file systems
- Bump date.
2016-09-12 01:44:52 +00:00
sevan 72f6bd0c05 Document the version mount_chfs appeared.
Add An macro to AUTHORS section.
Bump date.
2016-09-12 00:38:42 +00:00
sevan 7ebf29657a mount appeared in V1
http://minnie.tuhs.org/cgi-bin/utree.pl?file=V1/man/man1/mount.1
Replace contraction.
Bump date.
2016-09-12 00:25:23 +00:00
sevan 441c8e3032 Document author and the version modunload appeared.
Bump date.
2016-09-12 00:19:29 +00:00
sevan b341d851d2 Document author and the version modstat appeared.
Bump date.
2016-09-12 00:15:14 +00:00
sevan ed434347cc Document the version modload appeared and authors.
Correct spelling mistakes.
Bump date.
2016-09-12 00:03:01 +00:00
sevan 5b2ff4948c Revert previous change, textproc/igor is not around from these parts here.
Heads up by maya@
2016-09-11 23:07:50 +00:00
sevan 0b16d51ea6 mknod appeared in V4
http://minnie.tuhs.org/cgi-bin/utree.pl?file=V4/man/man8/mknod.8
Bump date.
2016-09-11 23:02:54 +00:00
sevan cc299105e5 no comma after "i.e.", raised by textproc/igor 2016-09-11 22:39:54 +00:00
sevan 480937e0df init first appeared in V1 UNIX
http://minnie.tuhs.org/cgi-bin/utree.pl?file=V1/init.s
Replace contraction.
Bump date.
2016-09-11 22:22:57 +00:00
sevan 3ef31cfb4a Replace contractions & abbreviation. 2016-09-11 22:10:47 +00:00
sevan 994edde5c7 Document the version gpt first appeared.
Replace contractions.
Bump date.
2016-09-11 21:38:16 +00:00
sevan b778e96398 Document author and the version fsirand appeared.
Bump date.
2016-09-11 21:22:18 +00:00
wiz 7ca7a31b02 file system police. 2016-09-11 09:09:54 +00:00
sevan 9dd4fb3ad2 Document author and the version fsck_v7fs appeared.
Replace contraction.
Bump date.
2016-09-11 04:19:52 +00:00
sevan c6b9fd9601 Document the version fsck_msdos first appeared.
Bump date.
2016-09-11 04:12:08 +00:00
sevan 645829aa66 Document the version fsck_ffs first appeared.
Bump date.
2016-09-11 04:07:38 +00:00
sevan a7a41f50d0 Document the author and the version fsck_ext2fs first appeared.
Bump date.
2016-09-11 03:56:00 +00:00
sevan 2817e8b69c Document the version fsck first appeared.
Bump date.
2016-09-11 03:48:11 +00:00
sevan ef7ad9dc67 - Document the HISTORY of fdisk based on the original post to comp.unix.bsd by
Julian Elischer [1] and the Mach 2.5 Installation notes [2].
I was unable to pin point the exact version of Mach the fdisk utility appeared
as I didn't find documentation older than version 2.5 & no source code or repo
history. fdisk utility appears as a separate utility[3] in v2.5. Due to this,
I've avoided stating the exact version fdisk first appeared in Mach.
- Make correction pointed by textproc/igor
- Bump date

[1] https://groups.google.com/forum/#!searchin/comp.unix.bsd/14-Dec-89$20Robert$20Baron$20(rvb)$20at$20Carnegie-Mellon$20University%7Csort:relevance/comp.unix.bsd/Hhi45vAHxDg

[2] ftp://ftp.mcs.vuw.ac.nz/doc/misc/mach-i386-doc/i386_install.ps
[3] ftp://ftp.mcs.vuw.ac.nz/doc/misc/mach-i386-doc/i386_manpages.ps
2016-09-11 03:35:08 +00:00
sevan 260a67f942 Document the version drvctl appeard.
Reword bad sentence.
Remove space in License.
Bump date.
2016-09-11 02:59:11 +00:00
sevan 7f58cf589a dmesg first appeared in 3BSD
http://minnie.tuhs.org/cgi-bin/utree.pl?file=3BSD/usr/src/cmd/dmesg.c
Bump date.
2016-09-11 02:24:00 +00:00
sevan 386fba73ad Mention author in AUTHORS section.
Bump date.
2016-09-11 02:18:52 +00:00
sevan e2e783ad92 Remove ignored Pp macro, highlighted by mandoc -Tlint. 2016-09-11 02:10:31 +00:00
sevan a3477eb231 Grammar fix suggested by textproc/igor.
Syntax fix highlighted by mandoc -Tlint.
Bump date.
2016-09-11 01:59:10 +00:00
sevan a11e4d8d20 Document the version disklabel first appeared.
Fix spelling mistakes.
Replace contraction.
Bump date.
2016-09-11 01:48:00 +00:00
sevan 9eaf2a2b2a Document the version devpubd first appeared.
Bump date.
2016-09-11 01:38:00 +00:00
sevan 85d401802e Document the version clri first appeared.
Bump date.
2016-09-11 01:31:39 +00:00
sevan a6b62e7892 Document the version chown first appeared.
Replace contractions highlighted by textproc/igor.
Bump date.
2016-09-11 01:23:26 +00:00
sevan d2528dc7eb Spelling mistake.
Bump date.
2016-09-11 01:09:34 +00:00
sevan 38721343cf Note which version it appeared in before the rewrite.
Bump date.
2016-09-11 01:03:15 +00:00
sevan fb5a698902 Spelling mistake.
Bump date.
2016-09-11 00:52:39 +00:00
martin 9286e800c1 Add a bit of swapping for values in CG descriptors (used to be done
wholesale in e2fs_cgsave, but now common code keeps them in FS byte
order). Seems to fix newfs_ext2fs on big endian hosts.
2016-09-05 10:44:36 +00:00
sevan 51fe790c4c Drop main() prototype. 2016-09-05 01:00:07 +00:00
christos 99accdc793 PR/51440: Jose Luis Rodriguez Garcia: Use the standard queue.h macro instead
of playing with the TAILQ's entrails.
2016-08-25 07:43:18 +00:00
dholland fbf3696950 Fix handling of ffsv2 inode initialization. Retires PR 51116. 2016-08-24 07:44:05 +00:00
jdolecek 76043b45b1 report also gmtoff in the output of mount options 2016-08-21 22:27:20 +00:00
christos 4d4594470b PR/51422: Jose Luis Rodriguez Garcia: completely remove B_NEEDCOMMIT 2016-08-18 08:08:02 +00:00
christos e9843116de PR/51422: Jose Luis Rodriguez Garcia: Remove unnecessary assignment. 2016-08-18 08:04:28 +00:00
jdolecek a5764f7139 more informative debug output for unsupported features 2016-08-15 19:13:24 +00:00
jdolecek b720c3e2bb adjust inode size check to compare against EXT2_REV0_DINODE_SIZE, rather then sizeof(struct ext2fs_dinode), as the structure definition was expanded with the optional fields 2016-08-15 18:57:06 +00:00
jdolecek d2d8cddee2 divorce list of features supported by fsck_ext2fs from the kernel;
while kernel might support e.g. extents, extra_isize or dir_nlink,
fsck could actually have no idea about the features
2016-08-15 18:42:15 +00:00
mlelstv 43aac176e6 Avoid error message when /dev/wedges doesn't exist yet. 2016-08-15 12:54:40 +00:00
sevan 06495a3a2e dump was there from v4.
Confirmed from the TUHS hosted copies of man pages.
Bump date.
2016-08-15 00:03:14 +00:00
jdolecek 249e8f5f7e rename struct ext2fs_dinode attribute e2di_dacl to correct
e2di_size_high; even Linux ext2 filesystem code actually uses it
unconditionally this way and ext4 code finally also calls it that way
in their struct definition too; if there was any trace of this for other
purpose it's long gone
2016-08-04 17:43:47 +00:00
nonaka 95ec03a0f0 pass EXT2_DINODE_SIZE(&sblock) as isize to e2fs_isave(). 2016-08-04 03:01:38 +00:00
pgoyette 177830b6d7 Right-align numeric columns REFS and SIZE for easier viewing 2016-08-03 23:55:47 +00:00
dholland 05ce5c4223 Apply patch from PR 43587, mostly from martin and kre. When writing a
sysctl variable using ?= fails with EPERM, don't print an error
message.

Ideally setting a sysctl to the same value it already has should also
not fail regardless of permissions, but this would need to be done in
the kernel.
2016-07-31 23:30:28 +00:00
dholland ed2ef35eef PR 51264 Jose Luis Rodriguez Garcia: lfs userland bufcache rehash is broken 2016-07-31 18:27:26 +00:00
dholland fc8d0c1c35 Manipulate the signal masks so signals only arrive while we're waiting,
so they can't illegally reenter libc.

Fixes the problem Greg A. Woods describes in PR 51267, which might or
might not be the original submitter's problem.
2016-07-31 18:14:36 +00:00
dholland 52b3d9565c Don't call variables that are used "dummy". 2016-07-31 17:59:08 +00:00
martin f0b8f9c13b From Michael Plass:
The superblock field that distinguishes between 4.2BSD and 4.4BSD
inodes is really only relevant on a UFS1 file system. Make sure that
it is a UFS1 fs before using fs_old_inodefmt.

Note that the NetBSD newfs and mkfs utilities initialize fs_old_inodefmt
even for UFS2, so problems were apparent only on file systems created
by other operating systems, for example, FreeBSD.
2016-07-28 08:24:58 +00:00
erh 2b151ae574 Eliminate the distinct path check, since the paths don't actually need to be
distinct and allowing this makes certain useful tasks possible, such as
 fixing an unpopulated /dev while a tmpfs is mounted over it.
However, require the paths to be different, as mounting a path directly over
 itself has the side effect of causing any other mount points within that path
 to no longer be accessible, and is difficult to unmount when done on /.
2016-07-25 04:40:51 +00:00
nonaka 1c1d2c157d Fix RCS Id. 2016-07-14 10:02:43 +00:00
wiz 8c6f2a8da1 Bump date for previous. 2016-07-12 10:56:01 +00:00
zafer 4158ea49d0 improve description regarding symbolic links. ok @wiz. 2016-07-12 09:59:42 +00:00
christos 3a39bad1de cgdconfig does not need crypto. 2016-07-01 22:50:50 +00:00
christos 55b06df259 replace openssl HMAC(3) with our hmac(3). 2016-07-01 22:50:09 +00:00
dholland ece47fa390 Don't assume that getaddrinfo sets the result pointer to null when it
fails. (In fact it probably doesn't...)
2016-06-26 04:01:30 +00:00
dholland a4b908377f Document external unmount programs. PR 698. Bump date. 2016-06-26 03:59:11 +00:00
dholland 383d022f18 Fix previous to avoid using an uninitialized pointer when using -R (raw). 2016-06-26 03:51:28 +00:00
dholland 4cc121caa5 If an external unmount program of the form "umount_TYPE" exists
(e.g. umount_ffs, umount_nfs, etc.) exec it instead of calling
unmount(2).

Closes PR 698.

Note that the original plan for the PR also involved adding a generic
facility to store an alternate FS type name in the kernel to use when
unmounting. This was intended to support filesystems implemented as
loopback nfs servers, where the visible mount would be of type "nfs"
pointing at localhost; in that case one would want to be able to
provide an additional string in order to run an unmount program that
would both remove that mount and also shut down the loopback nfs
server daemon.

However, in the 21+ years since the PR was filed, loopback nfs servers
have gone out of favor (for good reasons) so I don't see any need to
worry about this case at present, especially since the PR has been
hanging around this long anyway. (If anyone still has a loopback nfs
server that they want to use a custom unmount program with, file a new
PR and assign it to me and I'll deal with it specifically in the nfs
mount args structure, which unmount already knows how to retrieve and
examine.)

It is my understanding that filesystems implemented with fuse (which
has displaced the loopback nfs server model) can already set the FS
type field so no further work is needed to allow them to use a custom
unmount program. If this is not the case, please let me know and I'll
attend to it.

There is no longer any need that I see to provide a general facility
for storing an alternate filesystem type name.

(One might also ask whether there's any real need for this
functionality at all any more; this is a fair question, but (a) the
change is small and (b) there are certainly cases when doing FS
research where you want a custom unmount program; been there & done
that.)
2016-06-26 03:40:39 +00:00
dholland 75cbf5e12c When SMALL, if realpath() fails, warn() using the failing path instead
of the buffer realpath has declined to write anything into.
2016-06-26 03:05:52 +00:00
jnemeth 93fd3c01ef - fix setting of hdr_lba_alt which was broken in revision 1.10 on 2015/12/2
- switch to using gpt_last
- PR/51230 -- recreate the PMBR if it was lost
2016-06-12 12:48:32 +00:00
christos b7b34325a9 Rename 'a' to set the active PMBR flag to 'A' 2016-06-09 19:04:43 +00:00
kre c2246a3f2c Make "gpt show" add an "(active)" annotation to the PMBR output line
when it has been marked active for legacy (non UEFI) booting.
This was (kind of obviously) intended by the previous commit, but...
2016-06-09 17:43:36 +00:00
kre 89194609b9 Fix rendering of biosboot command synopsis. 2016-06-09 16:48:14 +00:00
christos 3017a7a39f PR/51230: Add the ability to set the active flag in the PMBR. 2016-06-09 15:12:54 +00:00
wiz a6daee9b24 Try improving SYNOPSIS per my understanding of how this works.
Use more markup. Fix some markup.
2016-06-05 09:13:08 +00:00
joerg 0eed2a9437 Mark dead functions. 2016-06-04 20:59:49 +00:00
nonaka cae3c2f471 nvmectl(8): Added NVM Express control utility.
Ported from FreeBSD nvmecontrol(8).
2016-06-04 16:29:35 +00:00
wiz 6975094331 Sort SEE ALSO. New sentence, new line. Punctuation nits. Use Nx. 2016-06-01 12:01:21 +00:00
pgoyette 46d007f408 Improved documentation of mount_nilfs, from PR bin/46730 2016-06-01 11:56:49 +00:00
pgoyette 596954117f Minor formatting change in swapctl -l as noted in my PR bin/51155 2016-05-31 09:34:25 +00:00