Commit Graph

6768 Commits

Author SHA1 Message Date
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