Commit Graph

11140 Commits

Author SHA1 Message Date
isaki
8950e44dd3 Fix typo. display.contrast is 0-15, not 0-1. 2015-09-21 08:04:43 +00:00
wiz
c20b084d18 Add -s to getopt(3)-string.
Noted missing by Henning Petersen in PR 50255.

While here, clean up usage.
2015-09-20 17:45:25 +00:00
joerg
7d8085e8a5 Typo 2015-09-12 13:50:55 +00:00
plunky
bd4132cd78 according to C99 6.5.15 in a conditional expression, both
operands should be of compatible types.

So, use ((void)0) here to match `void dbprintf()'
2015-09-08 18:33:12 +00:00
dholland
64fc2fa3fc tidy/fix printing of paths from sockaddr_un 2015-09-05 20:19:43 +00:00
ozaki-r
3296ce621c Fix rump.ndp -I options by rump-ifying if_nametoindex(3)
From s-yamaguchi@IIJ
2015-09-01 09:54:34 +00:00
dholland
eb2560adae The ifile's inode number is constant. (it is always 1)
Therefore, storing the value in the superblock and reading it out
again is silly and offers the opportunity for it to become corrupted.
So, don't do that (most of the code already didn't) and use the
existing constant instead. Initialize new 32-bit superblocks with
the value for the sake of old userland programs, but don't keep the
value in the 64-bit superblock at all.

(approved by Margo Seltzer)
2015-09-01 06:12:04 +00:00
dholland
4b344787e1 Make the inode fields in the 64-bit superblock 64 bits wide.
Reasoning as before.

Note that I am not going through and checking for 64->32 truncations
in inode numbers; I'm sure there are quite a few, but that's a project
for later.
2015-09-01 06:11:06 +00:00
dholland
d0cadc370c Bypass the ifile's double indirect block if the ifile size in blocks
is less than or equal to NDADDR + NINDIR, the number of blocks mapped
without getting to the double indirect block.

The code here was instead using NINDIR * ifpb (ifile entries per
block); this gives the number of ifile entries the indirect block can
map, but that isn't a useful number.

Caught by mlelstv.
2015-08-29 05:33:20 +00:00
joerg
10100b028a Simplify. 2015-08-28 12:04:08 +00:00
christos
795680b973 handle blacklistd properly. 2015-08-24 07:21:14 +00:00
christos
cb8ff824c3 fix bogus %m
use EXIT_FAILURE
2015-08-21 15:41:38 +00:00
jnemeth
5923cd0eff PR/50158 - Simon Burge -- postinstall does not know about blacklistd 2015-08-21 12:02:07 +00:00
christos
df1774464d Put back a Trusted Computing Platform Alliance table pretty printer. 2015-08-19 07:37:17 +00:00
christos
7e168b655c comment out end comment printing. 2015-08-18 17:49:49 +00:00
christos
8c2dc81004 comment out tcpa printout since it has been split between server and client
struct.
2015-08-18 17:46:09 +00:00
wiz
18805f9978 Fix a typo. Sort commands. End list correctly. 2015-08-17 17:47:22 +00:00
knakahara
a1136117a8 Add intrctl(8) man. 2015-08-17 06:50:03 +00:00
knakahara
84f76c9c0f Add intrctl(8). 2015-08-17 06:42:45 +00:00
uebayasi
2d6876178b Whitespace. 2015-08-15 09:33:55 +00:00
dholland
b1828e0ba3 Hack up dinode usage to be 64 vs. 32 as needed. Part 1.
(This part changes the native lfs code; the ufs-derived code already
has 64 vs. 32 logic, but as aspects of it are unsafe, and don't
entirely interoperate cleanly with the lfs 64/32 stuff, pass 2 will be
rehashing that.)
2015-08-12 18:28:00 +00:00
dholland
e54b457c15 Provide 32-bit and 64-bit versions of FINFO.
This also entailed sorting out part of struct segment, as that
contains a pointer into the current FINFO data.
2015-08-12 18:27:01 +00:00
dholland
2e090556c4 Make 32-bit and 64-bit versions of SEGSUM.
Also fix some of the FINFO handling as it's closely entangled.
2015-08-12 18:26:26 +00:00
dholland
32577c4f1c Add IFILE32 and IFILE64 structures for the on-disk ifile entries.
Add and use accessors. There are also a bunch of places that cast and
I hope I've found them all...
2015-08-12 18:25:51 +00:00
dholland
f11e4edeba Make 32-bit and 64-bit versions of CLEANERINFO.
XXX: while this is written to disk, it seems like much of it would
XXX: be better set up as a commpage shared with the cleaner.
2015-08-12 18:25:03 +00:00
tsutsui
37c170c28e Remove unused es message files. 2015-08-12 18:22:22 +00:00
tsutsui
7ec466b181 Drop ancient AOUT2ELF option. Saves ~280 bytes. 2015-08-12 18:20:02 +00:00
jnemeth
494e3bc90d PR/50125 - Jarle Greipsland -- Incorrect PID in /var/run/mountd.pid
Move call to pidfile() after daemon() so that correct (child) pid is
written to pidfile.
2015-08-05 23:23:47 +00:00
ozaki-r
10613e2fe6 Introduce rump.ndp
ndp(8) uses RTM that requires that getpid(2) works correctly. Unfortunately
supporting getpid(2) in librumphijack will be tricky so that we rump-ify
ndp(8) as well as arp(8).
2015-08-03 09:51:40 +00:00
dholland
9e5184b86b Add a (draft) 64-bit superblock. Make things build again.
Add pieces of support for using both superblock types where
convenient, and specifically to the superblock accessors, but don't
actually enable it anywhere.

First substantive step on PR 50000.
2015-08-02 18:18:09 +00:00
dholland
992b9a23af Use accessor functions for the version field of the lfs superblock.
I thought at first maybe the cases that test the version should be
rolled into the accessors, but on the whole I think the conclusion on
that is no.
2015-08-02 18:14:16 +00:00
dholland
9263edc766 Use the lfs header file and lfs's mount args struct, not ufsmount.h
and the ffs mount args struct, for mounting lfs.

(they are the same, so this doesn't matter yet, but still...)
2015-08-02 18:11:57 +00:00
dholland
078ffcb8d8 Second batch of 64 -> 32 truncations in lfs, along with more minor
tidyups and corrections in passing.
2015-08-02 18:10:07 +00:00
dholland
95a8d28c27 Fix assorted 64 -> 32 truncations in lfs. Also, some minor tidyups and
corrections in passing.
2015-08-02 18:08:12 +00:00
ozaki-r
14e1104e9a Reduce abuse of global variables 2015-07-31 04:02:40 +00:00
ozaki-r
fe28962804 Introduce rump.arp
arp(8) uses RTM that requires that getpid(2) works correctly. Unfortunately
supporting getpid(2) in librumphijack will be tricky so that we rump-ify
arp(8) as well as ifconfig and route commands.

Suggested by pooka@.
2015-07-29 06:07:35 +00:00
dholland
34f0d74c9e Add a new lfs header file: lfs_accessors.h.
This contains all the accessor functions and macros out of lfs.h.
Add an include of lfs_accessors.h after all uses of lfs.h... except
for code that wants to define its own struct lfs-alike that the
accessors are supposed to play along with. For these, set STRUCT_LFS
and include lfs_accessors.h after the necessary structure has been
defined, so that lfs_accessors.h can emit functions in terms of it.
2015-07-28 05:09:34 +00:00
mlelstv
1cd8415fdc Handle getfsspecname errors. 2015-07-25 10:37:22 +00:00
isaki
bbeaff6281 indent and some KNF. 2015-07-25 07:12:30 +00:00
dholland
adca8af59e More lfs superblock accessors.
(This changes the rest of the code over; all the accessors were
already added.)

The difference between this commit and the previous one is arbitrary,
but the previous one passed the regression tests on its own so I'm
keeping it separate to help with any bisections that might be needed
in the future.
2015-07-24 06:59:31 +00:00
dholland
f59b8f4b3a Switch to accessor functions for elements of the LFS on-disk
superblock. This will allow switching between 32/64 bit forms on the
fly; it will also allow handling LFS_EI reasonably tidily. (That
currently doesn't work on the superblock.)

It also gets rid of cpp abuse in the form of fake structure member
macros.

Also, instead of doing sleep/wakeup on &lfs_avail and &lfs_nextseg
inside the on-disk superblock, add extra elements to the in-memory
struct lfs for this. (XXX: these should be changed to condvars, but
not right now)

XXX: this migrates a structure needed by the lfs code in libsa (struct
salfs) into lfs.h, where it doesn't belong, but for the time being
this is necessary in order to allow the accessors (and the various
lfs macros and other goop that relies on them) to compile.
2015-07-24 06:56:41 +00:00
christos
cb4eacf0ac PR/50057: Wolfgang Stukenbrock: yp-map transfer removes SECURE-flag 2015-07-17 15:58:01 +00:00
rmind
87af5b04d3 - npfvar_get_type1: check for NULL first.
- Minor fix for the npf(7) man page.
2015-07-12 23:54:43 +00:00
dholland
887da82a3d Comma of result is (though increasingly common) not formally recognized
grammar[,;] use a semicolon.
2015-07-11 06:40:37 +00:00
mrg
bdd303d7a7 support fnmatch(3) patterns for disknames. eg, "iostat wd*" works now.
update the default disk number selection to note that it uses the current
terminal size to fit disks, not hard coded 4.
2015-07-09 13:26:52 +00:00
jnemeth
3480dbd463 Check for an out of date /etc/fonts/fonts.conf and if so, forcibly
update it (it is not intended to be user editable).  This is
primarily intended so that pkgsrc fonts installed in the new location
can be found.
2015-07-08 05:00:15 +00:00
matt
36b15a92c0 Stub out enough so this builds for evbarm64 2015-07-08 01:12:48 +00:00
martin
6fb47df388 PR install/50020: postinstall does not check for mandoc in /etc/man.conf.
Add a check, but ask the user to fix manually (the file could have local
modifications).
2015-07-02 09:53:12 +00:00
martin
64fd3ef0cf Simplify previous, pass awk as TOOL_AWK (that is what the makefile uses),
create an obj dir for make and force it to use that.
This version now works with read-only source again.
2015-07-02 09:31:56 +00:00
msaitoh
a62e5a29f2 Add Xeon E5-4600 v3, Xeon E3-1200 v4 etc. from the latest Intel SDM. 2015-07-01 15:46:26 +00:00