Re: [PATCH] Option for mount_tmpfs to populate the volume after creation.

2014-09-19 Thread Doug Hogan
On Thu, Sep 18, 2014 at 09:28:41AM +0100, bytevolc...@safe-mail.net wrote: Revised diffbelow: You are inheriting some bugs in here by reusing newfs code. :) I agree with the comments from others. Additional comments: #include util.h +#include paths.h ... + args.ta_root_mode = modeset

Re: [PATCH] Option for mount_tmpfs to populate the volume after creation.

2014-09-19 Thread Adam
Revision 2: 1. Fixed up an issue caused by bad diffing technique. 2. Only functionality changes included here; parsing changes to follow next as per Otto's instruction. 3. Documentation changes will follow as well. 4. I have received some more feedback from Doug Hogan regarding newfs bugs,

Re: [PATCH] Option for mount_tmpfs to populate the volume after creation.

2014-09-19 Thread Adam
On Fri, 19 Sep 2014 00:14:47 -0700 Doug Hogan d...@acyclic.org wrote: On Thu, Sep 18, 2014 at 09:28:41AM +0100, bytevolc...@safe-mail.net wrote: Revised diffbelow: You are inheriting some bugs in here by reusing newfs code. :) I agree with the comments from others. Additional comments:

Re: [PATCH] Option for mount_tmpfs to populate the volume after creation.

2014-09-19 Thread Henning Brauer
* Adam bytevolc...@safe-mail.net [2014-09-19 10:37]: On Fri, 19 Sep 2014 00:14:47 -0700 Doug Hogan d...@acyclic.org wrote: On Thu, Sep 18, 2014 at 09:28:41AM +0100, bytevolc...@safe-mail.net wrote: + strlcpy(mountpoint, src, sizeof(mountpoint)); The strlcpy call should check

Missing EOVERFLOW

2014-09-19 Thread Matti Karnaattu
Hello, intro(2) manual says, also http://pubs.opengroup.org/onlinepubs/9699919799/ that EOVERFLOW should be defined. -snip- #define _XOPEN_SOURCE 700 #include sys/mman.h #include errno.h int main() { errno = EACCES; errno = EAGAIN; errno = EBADF; errno =

Re: [PATCH] Option for mount_tmpfs to populate the volume after creation.

2014-09-19 Thread Adam
Documentation update: Index: mount_tmpfs.8 === RCS file: /cvs/src/sbin/mount_tmpfs/mount_tmpfs.8,v retrieving revision 1.3 diff -u -p -r1.3 mount_tmpfs.8 --- mount_tmpfs.8 5 Feb 2014 15:32:26 - 1.3 +++

Enable cpu_idle on G5

2014-09-19 Thread Martin Pieuchot
Now that we're no longer updating the hid0 register in the idle loop, we can enable idle for G5. ok? Index: macppc/cpu.c === RCS file: /cvs/src/sys/arch/macppc/macppc/cpu.c,v retrieving revision 1.76 diff -u -p -r1.76 cpu.c ---

Re: [PATCH] Option for mount_tmpfs to populate the volume after creation.

2014-09-19 Thread Adam
On Fri, 19 Sep 2014 10:58:59 +0200 Henning Brauer hb-openbsdt...@ml.bsws.de wrote: HUH? Doug is entirely right. src is user controlled and can be larger than mountpoint. In that case, we want to bail and whine at the user instead of silently truncating and going on. Thanks for clarifying

Re: patch: acpitz: active cooling and notify 0x81

2014-09-19 Thread Sébastien Marie
Hi Mike, On Tue, Sep 16, 2014 at 12:43:11AM -0700, Mike Larkin wrote: On Mon, Sep 15, 2014 at 04:57:24PM +0200, S??bastien Marie wrote: ping ? Tihs patch is very conservative: it just allow to switch fan OFF if state is unknown. I finally read through the relevant parts of the spec.

Re: [PATCH] Option for mount_tmpfs to populate the volume after creation.

2014-09-19 Thread Adam
Revision 3: - if (template) - if (template[0] != '\0') (From Revision 2): 1. Added code to allow updating MNT_RDONLY status with M. If MNT_WANTRDWR is specified as well, MNT_RDONLY is unset. 2. Added check for strlcpy() call. 3. If getenv() is deemed unsafe to call, just use the default

Re: [PATCH] Option for mount_tmpfs to populate the volume after creation.

2014-09-19 Thread Adam
Patch for argument parsing below. Diff taken in relation to Revision 3 of the aforementioned patch. I do not understand why this should be a separate diff for this, as it is essentially part of the functionality itself. Let me know if you want it all together. --- mount_tmpfs.c Fri Sep

Nut 2.7.2p2 with APC USB UPS on OpenBSD 5.6 current woes

2014-09-19 Thread Stan Gammons
I have an apc usb ups that was working with OpenBSD 5.5 stable, but when I installed 5.6 current nut no longer recognizes the status change when the UPS goes on battery. When you do upsc apcusb@localhost with AC power removed from the unit, it indicates the UPS is still online rather than being

Re: Nut 2.7.2p2 with APC USB UPS on OpenBSD 5.6 current woes

2014-09-19 Thread Stuart Henderson
On 2014/09/19 07:37, Stan Gammons wrote: I have an apc usb ups that was working with OpenBSD 5.5 stable, but when I installed 5.6 current nut no longer recognizes the status change when the UPS goes on battery. When you do upsc apcusb@localhost with AC power removed from the unit, it

Re: Nut 2.7.2p2 with APC USB UPS on OpenBSD 5.6 current woes

2014-09-19 Thread Stan Gammons
On Sep 19, 2014 8:06 AM, Stuart Henderson st...@openbsd.org wrote: On 2014/09/19 07:37, Stan Gammons wrote: I have an apc usb ups that was working with OpenBSD 5.5 stable, but when I installed 5.6 current nut no longer recognizes the status change when the UPS goes on battery. When you do

Re: Nut 2.7.2p2 with APC USB UPS on OpenBSD 5.6 current woes

2014-09-19 Thread Stuart Henderson
On 2014/09/19 08:21, Stan Gammons wrote: On Sep 19, 2014 8:06 AM, Stuart Henderson st...@openbsd.org wrote: On 2014/09/19 07:37, Stan Gammons wrote: I have an apc usb ups that was working with OpenBSD 5.5 stable, but when I installed 5.6 current nut no longer recognizes the status

Re: Nut 2.7.2p2 with APC USB UPS on OpenBSD 5.6 current woes

2014-09-19 Thread Stuart Henderson
On 2014/09/19 14:26, Stuart Henderson wrote: On 2014/09/19 08:21, Stan Gammons wrote: On Sep 19, 2014 8:06 AM, Stuart Henderson st...@openbsd.org wrote: On 2014/09/19 07:37, Stan Gammons wrote: I have an apc usb ups that was working with OpenBSD 5.5 stable, but when I installed

Re: [PATCH] Option for mount_tmpfs to populate the volume after creation.

2014-09-19 Thread Otto Moerbeek
On Fri, Sep 19, 2014 at 10:21:13PM +1000, Adam wrote: Patch for argument parsing below. Diff taken in relation to Revision 3 of the aforementioned patch. I do not understand why this should be a separate diff for this, as it is essentially part of the functionality itself. Let me know

Re: Nut 2.7.2p2 with APC USB UPS on OpenBSD 5.6 current woes

2014-09-19 Thread Kirill Bychkov
On Fri, September 19, 2014 16:37, Stan Gammons wrote: I have an apc usb ups that was working with OpenBSD 5.5 stable, but when I installed 5.6 current nut no longer recognizes the status change when the UPS goes on battery. When you do upsc apcusb@localhost with AC power removed from the

Re: Missing EOVERFLOW

2014-09-19 Thread Todd C. Miller
EHOSTUNREACH, EOVERFLOW and ECANCELED are now part of POSIX so we should adjust sys/errno.h accordingly. - todd Index: /sys/sys/errno.h === RCS file: /home/cvs/openbsd/src/sys/sys/errno.h,v retrieving revision 1.22 diff -u -r1.22

Re: Nut 2.7.2p2 with APC USB UPS on OpenBSD 5.6 current woes

2014-09-19 Thread Stan Gammons
On 09/19/14 08:33, Stuart Henderson wrote: On 2014/09/19 14:26, Stuart Henderson wrote: On 2014/09/19 08:21, Stan Gammons wrote: On Sep 19, 2014 8:06 AM, Stuart Henderson st...@openbsd.org wrote: On 2014/09/19 07:37, Stan Gammons wrote: I have an apc usb ups that was working with OpenBSD

Re: [PATCH] Option for mount_tmpfs to populate the volume after creation.

2014-09-19 Thread Adam
On Fri, 19 Sep 2014 16:08:33 +0200 Otto Moerbeek o...@drijf.net wrote: On Fri, Sep 19, 2014 at 10:21:13PM +1000, Adam wrote: Patch for argument parsing below. Diff taken in relation to Revision 3 of the aforementioned patch. I do not understand why this should be a separate diff

swap affinity?

2014-09-19 Thread patrick keshishian
Hi, Just ran into something strange. I was running 'sudo cdio cdrip' and in another shell running a memory-hungry perl script, this caused a bunch of processes to swap out (namely Xorg). Once the cdrip was done, and I killed the perl script, and let the system calm down, I still noticed lag in