Commit Graph

208037 Commits

Author SHA1 Message Date
dholland
b5dd1f89ec More work on repquota.
- open quotahandles, pass them around, use them for metadata
   - split up some of the proplib code
2012-01-09 15:38:59 +00:00
dholland
62c8373cdf Begin cleaning up repquota. 2012-01-09 15:38:20 +00:00
dholland
24118eee5e Update rquotad to use the new libquota API. 2012-01-09 15:37:34 +00:00
dholland
c64bfb1c4d Clean up usr.bin/quota to use the new libquota API.
(with one relatively minor exception remaining)
2012-01-09 15:35:44 +00:00
dholland
22363307c5 Implement the schema-related functions, using proplib code from
/usr/bin/quota.
2012-01-09 15:34:34 +00:00
dholland
fa6b6291ec Handle default ID case in quota_get(), based on logic found in
/usr/bin/quota.
2012-01-09 15:32:38 +00:00
dholland
9f8b8c04bd Redo getfsquota() and getnfsquota() using the new API.
Change the previous getufsquota() to __quota_getquota() and call it
from all three functions: getfsquota(), getufsquota(), and getnfsquota().
2012-01-09 15:31:11 +00:00
dholland
2957f1ccb8 Add quota_nfs.c and implement quota_get() for nfs, using
code from getnfsquota().

Also implement quota_getmountdevice().
2012-01-09 15:29:55 +00:00
dholland
2ff48b73e6 Rework getufsquota() in terms of the new quota API. 2012-01-09 15:28:31 +00:00
dholland
8d8965ace0 Add initial versions of quota_open(), quota_close(), quota_get(),
calling proplib code mostly taken from getufsquota().

Correct the proplib refcount handling in the code from getufsquota(),
where it was (as far as I can tell) wrong.

Avoid doing illegal and unsafe casts from (struct quotaval *)
to (uint64_t *).
2012-01-09 15:27:04 +00:00
christos
6a6c8f616b PR/45805: Borodin Oleg: telnet/telnetd with -DAUTHENTICATION -DENCRYPTION
(rfc2941)
- minimal fixes to compile with WARNS=4
- separate kerberos (USE_KERBEROS) from encryption (MKCRYPTO)
2012-01-09 15:25:33 +00:00
drochner
4fa381bcb2 allow setkey(8) set and display the ESP fragment size in the NAT-T case,
userland part of PR kern/44952 by Wolfgang Stukenbrock, just changed
the "frag" option name to "esp_frag", for consistency to the existing
option of similar effect in racoon(8)
2012-01-09 15:25:13 +00:00
dholland
e15d192c7f Bump minor version of libquota.so. 2012-01-09 15:24:37 +00:00
dholland
bb96a16625 Add stub entry points of the entire new quota interface. These fail or
do nothing for the time being; however, putting them all in up front
avoids the need to do multiple bumps of the libquota.so version.
2012-01-09 15:22:38 +00:00
dholland
0d7dfe62fa Add <quota.h> with the new libquota API.
This is the user/application API and does not include the kernel
interface. Definitions shared with the kernel are found in
<sys/quota.h>.

Since I've been working on a local branch I have taken the liberty of
moving the latest-so-far version of <quota.h> to the front of the
patch queue. This loses (a small amount of) history but has the
advantage of avoiding unnecessary version bumps of libquota.so.
2012-01-09 15:19:44 +00:00
drochner
d107562abc Make FAST_IPSEC the default IPSEC implementation which is built
into the kernel if the "IPSEC" kernel option is given.
The old implementation is still available as KAME_IPSEC.
Do some minimal manpage adjustment -- kame_ipsec(4) is a copy
of the old ipsec(4) and the latter is now a copy of fast_ipsec(4).
2012-01-09 15:16:30 +00:00
martin
0474452cbc Avoid a warning in kernels w/o LCD support 2012-01-09 15:15:40 +00:00
reinoud
c31558fc48 As ppn is a uintptr_t, it can never be negative so the check is invalid. 2012-01-09 14:58:15 +00:00
reinoud
453f61bbf1 sizeof_t is allways >=0 and the check for >=0 thus allways is true and amd64
complains about this. This might explain the odd write errors that could
sometimes be reported. Those are/were probably a side effect of this.
2012-01-09 14:56:35 +00:00
liamjfoy
24612de5fe check against NULL 2012-01-09 14:31:21 +00:00
phx
62c0bf5b60 Changed description for sandpoint to reflect the focus on consumer NAS. 2012-01-09 13:51:54 +00:00
cherry
92e3d6b9c9 Remove redundant use of curcpu(). 2012-01-09 13:35:42 +00:00
cherry
c6e7b43873 Remove obsolete comment. 2012-01-09 13:33:38 +00:00
cherry
66e35f7978 Make cross-cpu pte access MP safe.
XXX: review cases of use of pmap_set_pte() vs direct use of xpq_queue_pte_update()
2012-01-09 13:04:13 +00:00
cherry
0e1fd236aa Harden cross-cpu L3 sync - avoid optimisations that may race.
Update ci->ci_kpm_pdir from user pmap, not global pmap_kernel() entry which may get clobbered by other CPUs.
XXX: Look into why we use pmap_kernel() userspace entries at all.
2012-01-09 12:58:49 +00:00
sborrill
513c5af341 Add /sbin/dkctl. This allows you to drop to a command prompt and enable
writecaches before installing, if necessary.
2012-01-09 11:52:43 +00:00
skrll
ccf87b9e24 Error if the root partition exceeds the PDC 2GB limit. The check now
catches invalid "existing" partitions. PR/45742

Thanks to martin for the German translation. The others are all my fault.

Thanks to mrg for comments
2012-01-09 11:51:41 +00:00
skrll
008d551992 Make it an error for the partition to exceed the PDC limit.
Inspired by PR/45742
2012-01-09 11:44:53 +00:00
martin
853c5aadac When aggregate-allocating an index structure make sure to provide at least
natural alignement for pointers.
This makes firefox 3.6 work again on sparc64.
2012-01-09 11:20:20 +00:00
jmcneill
e4d4169543 make sure kernel lock is held when calling into usb stack 2012-01-09 10:57:34 +00:00
kiyohara
0624d9b350 Move spl from ppc4xx_tlb_enter() to pmap_enter(). Don't call splx() on
I/DTLBMISS.
2012-01-09 06:49:25 +00:00
kiyohara
82862d915a Reenable interrupt before was call pic_do_pending_int() by splx(), or KASSERT(). 2012-01-09 06:25:55 +00:00
cherry
36295c300b While freeing ptps, remove stale L3 frame entries on all CPUS the pmap is loaded on, not just the current one. 2012-01-09 04:55:35 +00:00
cherry
d515295709 revert previous commit. DIAGNOSTIC should only do strict checks, not muffle current ones 2012-01-09 04:39:14 +00:00
riz
9dc21a478b Copy resolv.conf into target even if it was created by DHCP, since in
that case, it will be replaced on next boot anyway.
2012-01-09 02:52:50 +00:00
riz
a457d440cf Use the "doingwhat" message for the multiple disks case, not just the
single-disk case.

XXX Native speakers of .fr, .es, .de, and .pl please make sure the
replacement makes sense.  Thanks!
2012-01-09 01:51:47 +00:00
rmind
ee48c623f2 npfctl_ncgen_putptr: use correct format for size_t. 2012-01-09 01:47:09 +00:00
jakllsch
abc09c9d3d Instead of assume that 'features' is 0 in wdccommandext(),
pass it as an argument, as is done for wdccommand().
2012-01-09 01:01:48 +00:00
christos
058e423965 update. 2012-01-08 22:14:55 +00:00
rmind
d3c56566f0 Full rewrite of npfctl(8) parser and rework of n-code generation part.
Fixes most of the known bugs and issues with the utility.  Note: rule
procedures are not yet (as we want to make them fully modular).

Huge thanks to Martin Husemann who wrote the parser and Christos Zoulas
who wrote intermediate structures and helped to complete the work.
2012-01-08 21:34:21 +00:00
riz
1bfc197123 Add defs.h to DPSRCS. 2012-01-08 21:20:40 +00:00
agc
44733b269e enable nullfs in usermode configs 2012-01-08 19:23:37 +00:00
dholland
8879f685e9 grumble. 2012-01-08 18:17:41 +00:00
dholland
158b740733 Oops, I forgot to actually implement the checksumming code for the new
savefile format, so any savefiles generated yesterday can be tampered
with. Oh well. While here, tidy up the crc code.
2012-01-08 18:16:00 +00:00
jmcneill
cdbdbc76a5 define __HAVE_OLD_DISKLABEL on i386 2012-01-08 18:06:00 +00:00
jmcneill
4623508cab regen 2012-01-08 18:05:43 +00:00
jmcneill
9e1caf3a2d disklabel.h: handle __HAVE_OLD_DISKLABEL. while here, I noticed someone changed param.h without updating genheaders.h, so catch up. 2012-01-08 18:05:02 +00:00
phx
f66849eb53 Set the extclk for NH230 to 33000000Hz.
Prepare a synosetup() function which should set a different extclk for
the 400MHz models, as soon as we find a method to check for them.
2012-01-08 14:53:54 +00:00
tron
f834547595 Revert last change. The extra while loop intruced by the macro changes
causes an end-less loop in ci(1) which uses "break" inside one of the
macros.

"/etc/security" will now no longer fill up "/" (or "/var" depending on
file-system layout).
2012-01-08 13:57:31 +00:00
dholland
eb3306a822 Sentences should verbs. From Snader_LB 2012-01-08 04:01:12 +00:00