CVS commit: src/doc

2021-07-27 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Tue Jul 27 12:40:07 UTC 2021 Modified Files: src/doc: CHANGES Log Message: Tie the maximum file lock per unprivilegied uid to kern.maxfiles To generate a diff of this commit: cvs rdiff -u -r1.2815 -r1.2816 src/doc/CHANGES Please

CVS commit: src

2021-07-27 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Tue Jul 27 09:32:55 UTC 2021 Modified Files: src/lib/libc/sys: fcntl.2 flock.2 src/share/man/man7: sysctl.7 src/sys/kern: vfs_lockf.c Log Message: Tie the maximum file lock per unprivilegied uid to kern.maxfiles Thi

CVS commit: src/external/mpl/dhcp/dist/common

2020-05-15 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Fri May 15 12:31:04 UTC 2020 Modified Files: src/external/mpl/dhcp/dist/common: bpf.c discover.c lpf.c packet.c raw.c socket.c Log Message: crunchgen fix Make sure local_port is not shared within a crunchgen binary. The

CVS commit: src/sys/dev/usb

2020-02-14 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Sat Feb 15 02:14:02 UTC 2020 Modified Files: src/sys/dev/usb: u3g.c umodeswitch.c Log Message: Add support for D-Link DWM-157 3G USB modem To generate a diff of this commit: cvs rdiff -u -r1.39 -r1.40 src/sys/dev/usb/u3g.c cvs rdi

CVS commit: src/sys/dev/usb

2020-02-14 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Sat Feb 15 02:10:45 UTC 2020 Modified Files: src/sys/dev/usb: usbdevs.h usbdevs_data.h Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.765 -r1.766 src/sys/dev/usb/usbdevs.h \ src/sys/dev/usb/usbdevs_data

CVS commit: src/sys/dev/usb

2020-02-14 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Sat Feb 15 02:08:54 UTC 2020 Modified Files: src/sys/dev/usb: usbdevs Log Message: Add UE version of D-Link DWM-157 To generate a diff of this commit: cvs rdiff -u -r1.775 -r1.776 src/sys/dev/usb/usbdevs Please note that diffs ar

CVS commit: src/sys/arch/x86/x86

2020-01-29 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Thu Jan 30 01:49:44 UTC 2020 Modified Files: src/sys/arch/x86/x86: multiboot2.c Log Message: Insert memory map with its real size, not the maximum possible. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/arch/

CVS commit: src/sys/arch/x86/x86

2020-01-28 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Wed Jan 29 01:54:34 UTC 2020 Modified Files: src/sys/arch/x86/x86: x86_machdep.c Log Message: Fix startup crashes caused by wrong memory map handling init_x86_vm() takes the memory map from BIOS and EFI and selects regions suitable

CVS commit: src/sys/arch/amd64

2020-01-08 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Thu Jan 9 00:42:24 UTC 2020 Modified Files: src/sys/arch/amd64/amd64: locore.S machdep.c src/sys/arch/amd64/conf: GENERIC files.amd64 kern.ldscript Log Message: Rollback multiboot2 for amd64, as requested by core To gener

CVS commit: src/sys/arch/i386/stand

2019-12-16 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Tue Dec 17 01:37:53 UTC 2019 Modified Files: src/sys/arch/i386/stand/efiboot: efidisk.c src/sys/arch/i386/stand/lib: biosdisk.c Log Message: Do not use NAME=label syntax when label are empty When booting sysinst from UEFI,

CVS commit: src/sys/arch/amd64/amd64

2019-12-14 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Sun Dec 15 02:58:22 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: locore.S Log Message: Fix typo that caused two instructions to be commented out Oddly, that did not break booting. To generate a diff of this commit: cvs rdi

CVS commit: src/sys/arch/amd64

2019-12-14 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Sun Dec 15 02:56:40 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: locore.S src/sys/arch/amd64/conf: kern.ldscript Log Message: Restore multiboot 2 header in amd64 kernel The header must appear below 32k offset in the k

CVS commit: src/sys/arch/amd64/conf

2019-12-10 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Wed Dec 11 02:31:45 UTC 2019 Modified Files: src/sys/arch/amd64/conf: kern.ldscript Log Message: Rollback kernel link scrpt change for multiboot The multiboot section breaks BIOS boot. Rolling back the link script removes the secti

CVS commit: src/sys/arch

2019-12-09 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Tue Dec 10 02:06:07 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: locore.S machdep.c src/sys/arch/amd64/conf: GENERIC files.amd64 kern.ldscript src/sys/arch/x86/x86: efi.c multiboot2.c Log Message: Add multiboot

CVS commit: src/sys/arch/i386/stand

2019-12-09 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Tue Dec 10 02:02:48 UTC 2019 Modified Files: src/sys/arch/i386/stand/boot: devopen.c src/sys/arch/i386/stand/efiboot: devopen.c src/sys/arch/i386/stand/lib: biosdisk.c Log Message: In-RAID partitions with no name can

CVS commit: src/sbin

2019-03-24 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Mon Mar 25 02:13:01 UTC 2019 Modified Files: src/sbin/dump: dump.8 dump.h itime.c main.c src/sbin/dump_lfs: dump_lfs.8 Log Message: Add -U flag to dump(8) and dump_lfs(8) to specify dumpdates entry This address situations w

CVS commit: src/lib/libperfuse

2019-02-08 Thread Emmanuel Dreyfus
/lib/libperfuse/ops.c Sat Feb 9 02:22:45 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: ops.c,v 1.85 2018/11/16 02:39:02 manu Exp $ */ +/* $NetBSD: ops.c,v 1.86 2019/02/09 02:22:45 manu Exp $ */ /*- * Copyright (c) 2010-2011 Emmanuel Dreyfus. All rights reserved. @@ -105,6 +105,9 @@ const int vttoif_tab

CVS commit: src/sys/kern

2019-01-30 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Thu Jan 31 02:27:06 UTC 2019 Modified Files: src/sys/kern: vfs_syscalls.c Log Message: Do not resolve fdat for openat(2) if path is absolute Opengroup says "The openat() function shall be equivalent to the open() function except i

CVS commit: src/lib/libperfuse

2018-11-15 Thread Emmanuel Dreyfus
/lib/libperfuse/debug.c Fri Nov 16 02:39:02 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: debug.c,v 1.12 2012/07/21 05:49:42 manu Exp $ */ +/* $NetBSD: debug.c,v 1.13 2018/11/16 02:39:02 manu Exp $ */ /*- * Copyright (c) 2010 Emmanuel Dreyfus. All rights reserved. @@ -270,7 +270,6 @@ perfuse_trace_dump

CVS commit: src/sys/dev/usb

2018-11-15 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Fri Nov 16 00:34:51 UTC 2018 Modified Files: src/sys/dev/usb: usbdi.c Log Message: Build fix >From David H. Gutteridge To generate a diff of this commit: cvs rdiff -u -r1.179 -r1.180 src/sys/dev/usb/usbdi.c Please note that diff

CVS commit: src/sys/dev/usb

2018-11-14 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Thu Nov 15 02:35:23 UTC 2018 Modified Files: src/sys/dev/usb: usb_quirks.c usb_quirks.h usbdi.c Log Message: Workaround NBP PN533 USB toggle bit bugs The PN533 is known to mishandle the USB toggle bit, causing replies to be filtere

CVS commit: src/sys/dev/usb

2018-11-07 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Thu Nov 8 02:11:54 UTC 2018 Modified Files: src/sys/dev/usb: usb_quirks.c usb_quirks.h usbdi_util.c usbdi_util.h Log Message: Workaround PN533 USB descriptor corruption During normal operation, the PN533 chip may corrupt its USB c

CVS commit: src/sys/dev/usb

2018-11-07 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Thu Nov 8 02:03:37 UTC 2018 Modified Files: src/sys/dev/usb: usbdevs.h usbdevs_data.h Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.752 -r1.753 src/sys/dev/usb/usbdevs.h \ src/sys/dev/usb/usbdevs_data

CVS commit: src/sys/dev/usb

2018-11-07 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Thu Nov 8 02:01:28 UTC 2018 Modified Files: src/sys/dev/usb: usbdevs Log Message: Add PN533 based NFC devices To generate a diff of this commit: cvs rdiff -u -r1.759 -r1.760 src/sys/dev/usb/usbdevs Please note that diffs are not

CVS commit: src/sys/dev/usb

2018-11-07 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Thu Nov 8 01:59:53 UTC 2018 Modified Files: src/sys/dev/usb: ugen.c Log Message: Enfore USB timeout on ugen(4) write operations To generate a diff of this commit: cvs rdiff -u -r1.140 -r1.141 src/sys/dev/usb/ugen.c Please note t

CVS commit: src/sys/fs/puffs

2018-11-05 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Tue Nov 6 02:39:49 UTC 2018 Modified Files: src/sys/fs/puffs: puffs_vnops.c Log Message: Fix use after RECLAIM in PUFFS filesystems >From hannken@ When puffs_cookie2vnode() misses an entry and vrele() it operations puffs_vnop_rec

CVS commit: src/sys/fs/puffs

2018-11-04 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Mon Nov 5 02:28:32 UTC 2018 Modified Files: src/sys/fs/puffs: puffs_vnops.c Log Message: Add missing mutex pn->pn_sizemtx lock in puffs_vnop_open() puffs_vnop_open() calls flushvncache(), which calls dosetattr() if pn->pn_stat has

CVS commit: src/sys/dev/usb

2018-10-22 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Tue Oct 23 01:49:37 UTC 2018 Modified Files: src/sys/dev/usb: uhub.c usb_subr.c Log Message: Make USB port iteration code consistent, always startint at port #1 This complements change in revision 1.140 To generate a diff of this

CVS commit: src/sys/dev/usb

2018-10-18 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Fri Oct 19 00:33:27 UTC 2018 Modified Files: src/sys/dev/usb: uhub.c Log Message: Make USB port numbers display consistent Make sure USB ports numbers are displayed with the first one as number one and not number zero when rescanni

CVS commit: src/sys/kern

2018-10-04 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Fri Oct 5 01:25:38 UTC 2018 Modified Files: src/sys/kern: vfs_trans.c Log Message: Back out sftchg/fstcnt deadlock workaround The change did prevent some system freeze, but caused spurious unmount failures reporter by bouyer@. ha

CVS commit: src/sys/dev/hdaudio

2018-09-26 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Thu Sep 27 01:18:11 UTC 2018 Modified Files: src/sys/dev/hdaudio: hdafg.c Log Message: Fix hdaudio device configuration When disabling unassociated devices, we have a special handling for pins of type COP_AWCAP_TYPE_PIN_COMPLEX, bu

CVS commit: src/sys/kern

2018-09-26 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Thu Sep 27 01:03:40 UTC 2018 Modified Files: src/sys/kern: vfs_trans.c Log Message: Work around deadlock between fstchg and fstcnt When suspending a filesystem in fstrans_setstate(), we wait on fstcnt for threads to finish transact

CVS commit: src/sys/kern

2018-02-07 Thread Emmanuel Dreyfus
$ */ +/* $NetBSD: subr_tftproot.c,v 1.20 2018/02/07 15:51:35 manu Exp $ */ /*- * Copyright (c) 2007 Emmanuel Dreyfus, all rights reserved. @@ -39,7 +39,7 @@ #include "opt_md.h" #include -__KERNEL_RCSID(0, "$NetBSD: subr_tftproot.c,v 1.19 2016/10/31 15:27:24 maxv Exp $"

CVS commit: src/sbin/route

2017-07-13 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Thu Jul 13 08:26:29 UTC 2017 Modified Files: src/sbin/route: rtutil.c Log Message: 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. T

CVS commit: src/external/bsd/dhcp/dist

2017-06-27 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Wed Jun 28 02:46:31 UTC 2017 Modified Files: src/external/bsd/dhcp/dist/client: dhclient.c src/external/bsd/dhcp/dist/common: bpf.c comapi.c discover.c dispatch.c dlpi.c execute.c lpf.c nit.c options.c packet.c pa

CVS commit: src/lib/libc/net

2017-06-17 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Sun Jun 18 04:03:44 UTC 2017 Modified Files: src/lib/libc/net: Makefile.inc Log Message: Include IPv6 global variable in USE_INET6=no libc This ensures a binary built with USE_INET6=yes libc can still link at runtime with a USE_INE

CVS commit: src

2017-06-17 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Sun Jun 18 03:56:39 UTC 2017 Modified Files: src/distrib/utils/libhack: Makefile Makefile.inc src/lib/libc/gen: getcap.c Log Message: Make shared -DSMALL libc buildable without breaking libhack We used -DSMALL to exclude co

CVS commit: src/sys/dev/hpc

2017-06-12 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Mon Jun 12 09:23:39 UTC 2017 Modified Files: src/sys/dev/hpc: hpckbd.c Log Message: Restore wscons keymaps feature on hpcarm hpc ports need to alter keydesc data at runtime in order to load alternate keymaps. But since keydesc is c

CVS commit: src/external/bsd/dhcp/dist/relay

2017-06-05 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Mon Jun 5 07:35:23 UTC 2017 Modified Files: src/external/bsd/dhcp/dist/relay: dhcrelay.c Log Message: Fix buggy dhcrelay(8) requirement to stay in foreground This version of dhcrelay(8) needed to stay inforeground with -d flag in

CVS commit: src/external/bsd/bind/lib/libdns

2017-05-15 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Mon May 15 13:38:34 UTC 2017 Modified Files: src/external/bsd/bind/lib/libdns: Makefile Log Message: Allow building with MKKERBEROS=no To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/external/bsd/bind/lib/libdns/

CVS commit: src/sys/compat/linux

2017-01-02 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Mon Jan 2 16:32:10 UTC 2017 Modified Files: src/sys/compat/linux/arch/alpha: syscalls.master src/sys/compat/linux/arch/amd64: syscalls.master src/sys/compat/linux/arch/arm: syscalls.master src/sys/compat/linu

CVS commit: src

2016-10-18 Thread Emmanuel Dreyfus
/libperfuse/libperfuse.3 Tue Oct 18 15:06:17 2016 @@ -1,4 +1,4 @@ -.\" $NetBSD: libperfuse.3,v 1.3 2011/05/10 12:14:37 njoly Exp $ +.\" $NetBSD: libperfuse.3,v 1.4 2016/10/18 15:06:17 manu Exp $ .\" .\" Copyright (c) 2010 Emmanuel Dreyfus. All rights reserved. .\" @@ -100,

CVS commit: src/sys/kern

2015-08-01 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Sun Aug 2 03:29:22 UTC 2015 Modified Files: src/sys/kern: vfs_mount.c Log Message: Do not VFS_SYNC before VFS_UNMOUNT on force unmount VFS_SYNC does not consider whether we are performing a force unmount or not, and therefore it c

CVS commit: src/sys/nfs

2015-07-14 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Wed Jul 15 03:28:55 UTC 2015 Modified Files: src/sys/nfs: nfs_bio.c nfs_clntsocket.c nfs_iod.c nfs_socket.c nfs_var.h nfs_vfsops.c nfsmount.h Log Message: Fix soft NFS force unmount For many reasons, forcibly unmounting

CVS commit: src/sbin/umount

2015-06-27 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Sat Jun 27 08:29:56 UTC 2015 Modified Files: src/sbin/umount: umount.c Log Message: Remove useless and harmful sync(2) call in umount(8) Remove sync(2) call before unmount(2) in umount(8). This sync(2) is useless since unmount(2) w

CVS commit: src/lib/libperfuse

2015-06-03 Thread Emmanuel Dreyfus
$ */ +/* $NetBSD: ops.c,v 1.84 2015/06/03 14:07:05 manu Exp $ */ /*- * Copyright (c) 2010-2011 Emmanuel Dreyfus. All rights reserved. @@ -651,13 +651,17 @@ fuse_to_dirent(struct puffs_usermount *p struct puffs_node *pn; struct perfuse_node_data *pnd = PERFUSE_NODE_DATA(opc

CVS commit: src

2015-05-29 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Fri May 29 07:37:32 UTC 2015 Modified Files: src/include: limits.h src/lib/libpthread: pthread.c pthread_int.h pthread_key_create.3 pthread_tsd.c src/lib/libpthread_dbg: pthread_dbg.c Log Message: Make PT

CVS commit: src/sbin/raidctl

2015-05-27 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Wed May 27 15:31:15 UTC 2015 Modified Files: src/sbin/raidctl: raidctl.c Log Message: Better sanity check numbers given to raidctl(8) Replace atoi(3) by strtol(3), and check that numbers are valid, positive, and in int32_t range. T

CVS commit: src/usr.bin/make

2015-05-25 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Mon May 25 09:01:06 UTC 2015 Modified Files: src/usr.bin/make: targ.c Log Message: Fix warning about uninitialized variable This warning gets fatal when including make(1) as a crunchgen(1) binary. To generate a diff of this commi

CVS commit: src/usr.bin/netstat

2015-05-24 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Mon May 25 03:56:20 UTC 2015 Modified Files: src/usr.bin/netstat: route.c Log Message: Make sure netstat builds with -DSMALL src/usr.bin/netstat relies on code from src/sbin/route. WHen building with -DSMALL, some functions such as

CVS commit: src/bin/dd

2015-03-18 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Wed Mar 18 13:23:49 UTC 2015 Modified Files: src/bin/dd: Makefile args.c dd.1 dd.c dd.h extern.h Log Message: Add iflag and oflag operands to dd(1) Like GNU dd(1) similar operands, iflag and oflag allow specifying the O_* flags giv

CVS commit: src/sys/fs/puffs

2015-02-25 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Wed Feb 25 14:08:45 UTC 2015 Modified Files: src/sys/fs/puffs: puffs_vnops.c Log Message: Update file size after write without metadata flush If we do not use metadata flush, we must make sure the size is updated in the filesystem

CVS commit: src

2015-02-15 Thread Emmanuel Dreyfus
:1.82 Tue Jan 13 16:51:30 2015 +++ src/lib/libperfuse/ops.c Sun Feb 15 20:21:29 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: ops.c,v 1.82 2015/01/13 16:51:30 manu Exp $ */ +/* $NetBSD: ops.c,v 1.83 2015/02/15 20:21:29 manu Exp $ */ /*- * Copyright (c) 2010-2011 Emmanuel Dreyfus. All rights reserved

CVS commit: src/lib/libc/gen

2015-01-29 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Thu Jan 29 15:55:22 UTC 2015 Modified Files: src/lib/libc/gen: fts.c Log Message: Fix double free in fts_read()/fts_close() When fts_read() gets an error on fchdir(), it exited with sp->fts_cur set to a freed structure. fts_close()

CVS commit: src/lib/libperfuse

2015-01-13 Thread Emmanuel Dreyfus
/12 05:08:43 manu Exp $ */ +/* $NetBSD: ops.c,v 1.82 2015/01/13 16:51:30 manu Exp $ */ /*- * Copyright (c) 2010-2011 Emmanuel Dreyfus. All rights reserved. @@ -1785,30 +1785,27 @@ perfuse_node_setattr_ttl(struct puffs_us } /* - * Setting mtime without atime or vice versa leads to

CVS commit: src/sys/fs/puffs

2015-01-13 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Tue Jan 13 16:39:51 UTC 2015 Modified Files: src/sys/fs/puffs: puffs_vnops.c Log Message: Make sure reads on empty files reach PUFFS filesystems Sending a read through the page cache will get the operation short-circuited. This is

CVS commit: src/lib/libpuffs

2014-12-22 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Mon Dec 22 08:16:21 UTC 2014 Modified Files: src/lib/libpuffs: puffs.c Log Message: Do not warn about relative path because of trailing slash libpuffs calls realpath() to obtain an absolute path to use for mounting. If the obtained

CVS commit: src/sys/ufs/ufs

2014-12-19 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Fri Dec 19 10:59:21 UTC 2014 Modified Files: src/sys/ufs/ufs: extattr.h Log Message: Bump UFS1 extended attribute max name length to 256 For extended attribute name max length, kernel filesystem-independant code use either EXTATTR_

CVS commit: src/usr.sbin/perfused

2014-12-12 Thread Emmanuel Dreyfus
05:49:42 2012 +++ src/usr.sbin/perfused/perfused.c Fri Dec 12 09:58:39 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: perfused.c,v 1.24 2012/07/21 05:49:42 manu Exp $ */ +/* $NetBSD: perfused.c,v 1.25 2014/12/12 09:58:39 manu Exp $ */ /*- * Copyright (c) 2010 Emmanuel Dreyfus. All rights reserved

CVS commit: src/sys/kern

2014-11-26 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Wed Nov 26 10:50:36 UTC 2014 Modified Files: src/sys/kern: vfs_syscalls.c Log Message: Do not follow symlinks in sys_unmount() There are situations where the underlying filesystem is unreachable (e.g: NFS) causing symlink resolutio

CVS commit: src/sys/ufs/ufs

2014-11-19 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Wed Nov 19 16:26:47 UTC 2014 Modified Files: src/sys/ufs/ufs: ufs_extattr.c Log Message: Fix uninitialized mutex usage We use extended attribute mount mutex before testing if it had been initialized, and as reported by Christos, t

CVS commit: src/sys

2014-11-16 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Sun Nov 16 16:01:43 UTC 2014 Modified Files: src/sys/arch/acorn26/conf: GENERIC src/sys/arch/acorn32/conf: GENERIC src/sys/arch/alpha/conf: GENERIC src/sys/arch/amd64/conf: ALL GENERIC XEN3_DOM0 XEN3_DOMU

CVS commit: src/sys/ufs/ufs

2014-11-14 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Sat Nov 15 05:03:55 UTC 2014 Modified Files: src/sys/ufs/ufs: ufs_extattr.c Log Message: Fix UFS1 extended attribute backend autocreation deadlock UFS1 extended attribute backend autocration goes through a vn_open() to create the b

CVS commit: src/sys

2014-11-14 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Fri Nov 14 10:09:50 UTC 2014 Modified Files: src/sys/kern: vfs_mount.c src/sys/ufs/ffs: ffs_vfsops.c src/sys/ufs/ufs: ufs_extattr.c Log Message: Fix use-after-free on failed unmount with extended attribute enabled W

CVS commit: src/sys/arch

2014-11-12 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Wed Nov 12 10:47:24 UTC 2014 Modified Files: src/sys/arch/acorn26/conf: GENERIC src/sys/arch/acorn32/conf: GENERIC src/sys/arch/alpha/conf: GENERIC src/sys/arch/amd64/conf: GENERIC XEN3_DOM0 XEN3_DOMU

CVS commit: src/lib/libperfuse

2014-11-11 Thread Emmanuel Dreyfus
+++ src/lib/libperfuse/ops.c Wed Nov 12 05:08:43 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: ops.c,v 1.80 2014/11/04 09:17:31 manu Exp $ */ +/* $NetBSD: ops.c,v 1.81 2014/11/12 05:08:43 manu Exp $ */ /*- * Copyright (c) 2010-2011 Emmanuel Dreyfus. All rights reserved. @@ -3460,6 +3460,7

CVS commit: src/lib/libperfuse

2014-11-04 Thread Emmanuel Dreyfus
:20:08 2014 +++ src/lib/libperfuse/ops.c Tue Nov 4 09:17:31 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: ops.c,v 1.79 2014/10/31 15:20:08 manu Exp $ */ +/* $NetBSD: ops.c,v 1.80 2014/11/04 09:17:31 manu Exp $ */ /*- * Copyright (c) 2010-2011 Emmanuel Dreyfus. All rights reserved. @@ -813,11 +813,6

CVS commit: src/sys/fs/puffs

2014-11-04 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Tue Nov 4 09:14:42 UTC 2014 Modified Files: src/sys/fs/puffs: puffs_vnops.c Log Message: PUFFS direct I/O cache fix There are a few situations where we must take care of the cache if direct I/O was enabled: - if we do direct I/O f

CVS commit: src/sys/fs/puffs

2014-11-04 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Tue Nov 4 09:10:37 UTC 2014 Modified Files: src/sys/fs/puffs: puffs_node.c puffs_vnops.c Log Message: Fix PUFFS node use-after-reclaim When puffs_cookie2vnode() misses an entry, vcache_get() creates a new node (puffs_vfsop_loadvno

CVS commit: src/lib/libperfuse

2014-10-31 Thread Emmanuel Dreyfus
--- src/lib/libperfuse/ops.c:1.78 Fri Oct 31 15:12:15 2014 +++ src/lib/libperfuse/ops.c Fri Oct 31 15:20:08 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: ops.c,v 1.78 2014/10/31 15:12:15 manu Exp $ */ +/* $NetBSD: ops.c,v 1.79 2014/10/31 15:20:08 manu Exp $ */ /*- * Copyright (c) 2010-2011 Emmanuel

CVS commit: src/lib/libperfuse

2014-10-31 Thread Emmanuel Dreyfus
@@ -1,4 +1,4 @@ -/* $NetBSD: fuse.h,v 1.5 2011/12/28 17:33:53 manu Exp $ */ +/* $NetBSD: fuse.h,v 1.6 2014/10/31 15:12:15 manu Exp $ */ /*- * Copyright (c) 2010 Emmanuel Dreyfus. All rights reserved. @@ -169,6 +169,9 @@ enum fuse_opcode { FUSE_DESTROY = 38, FUSE_IOCTL = 39

CVS commit: src/sys/fs/puffs

2014-10-31 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Fri Oct 31 14:20:54 UTC 2014 Modified Files: src/sys/fs/puffs: puffs_msgif.h Log Message: Add PUFFS_HAVE_FALLOCATE in puffs_msgif.h so that filesystem can decide at build time wether fallocate is usable To generate a diff of this

CVS commit: src/lib/libpuffs

2014-10-31 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Fri Oct 31 13:56:04 UTC 2014 Modified Files: src/lib/libpuffs: dispatcher.c opdump.c puffs.c puffs.h puffs_ops.3 Log Message: libpuffs support for fallocate and fdiscard operations To generate a diff of this commit: cvs rdiff -u -

CVS commit: src/sys/fs/puffs

2014-10-31 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Fri Oct 31 13:52:41 UTC 2014 Modified Files: src/sys/fs/puffs: puffs_msgif.h puffs_vnops.c Log Message: Add PUFFS support for fallocate and fdiscard operations To generate a diff of this commit: cvs rdiff -u -r1.81 -r1.82 src/sys/

CVS commit: src/sys/fs/puffs

2014-10-31 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Fri Oct 31 13:51:33 UTC 2014 Modified Files: src/sys/fs/puffs: puffs_vnops.c Log Message: According to pooka@'s comment, a long time ago, VOP_STRATEGY could not fail without taking down the kernel. It seems this is not the case anym

CVS commit: src/lib/libperfuse

2014-10-28 Thread Emmanuel Dreyfus
/ops.c:1.76 Sat Oct 11 04:19:38 2014 +++ src/lib/libperfuse/ops.c Tue Oct 28 16:54:11 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: ops.c,v 1.76 2014/10/11 04:19:38 manu Exp $ */ +/* $NetBSD: ops.c,v 1.77 2014/10/28 16:54:11 manu Exp $ */ /*- * Copyright (c) 2010-2011 Emmanuel Dreyfus. All rights

CVS commit: src/lib/libperfuse

2014-10-10 Thread Emmanuel Dreyfus
/ops.c:1.75 Tue Sep 30 00:06:19 2014 +++ src/lib/libperfuse/ops.c Sat Oct 11 04:19:38 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: ops.c,v 1.75 2014/09/30 00:06:19 manu Exp $ */ +/* $NetBSD: ops.c,v 1.76 2014/10/11 04:19:38 manu Exp $ */ /*- * Copyright (c) 2010-2011 Emmanuel Dreyfus. All rights reserved

CVS commit: src/sys/fs/puffs

2014-10-06 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Mon Oct 6 09:05:55 UTC 2014 Modified Files: src/sys/fs/puffs: puffs_vnops.c Log Message: Retore LP64 fix that was removed by mistake To generate a diff of this commit: cvs rdiff -u -r1.190 -r1.191 src/sys/fs/puffs/puffs_vnops.c

CVS commit: src/sys/fs/puffs

2014-10-05 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Mon Oct 6 04:41:59 UTC 2014 Modified Files: src/sys/fs/puffs: puffs_vnops.c Log Message: Improve zero-fill of last page after shrink fix: 1) do it only if the file is open for writing, otherwise we send write requests to the FS on

CVS commit: src/sys/fs/puffs

2014-10-05 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Sun Oct 5 07:53:22 UTC 2014 Modified Files: src/sys/fs/puffs: puffs_vnops.c Log Message: If we truncate the file, make sure we zero-fill the end of the last page, otherwise if the file is later truncated to a larger size (creating

CVS commit: src/lib/libperfuse

2014-09-29 Thread Emmanuel Dreyfus
05:52 2014 +++ src/lib/libperfuse/ops.c Tue Sep 30 00:06:19 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: ops.c,v 1.74 2014/09/11 04:05:52 manu Exp $ */ +/* $NetBSD: ops.c,v 1.75 2014/09/30 00:06:19 manu Exp $ */ /*- * Copyright (c) 2010-2011 Emmanuel Dreyfus. All rights reserved. @@ -607,6 +

CVS commit: src/lib/libc

2014-09-25 Thread Emmanuel Dreyfus
. + * All rights reserved. + * + * This code is derived from software contributed to The NetBSD Foundation + * by Emmanuel Dreyfus. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1

CVS commit: src/sys/fs/puffs

2014-09-11 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Thu Sep 11 07:59:14 UTC 2014 Modified Files: src/sys/fs/puffs: puffs_vnops.c Log Message: PUFFS fixes for size update ater write plus read/write sanity checks - Always update kernel metadata cache for size when writing This fixes

CVS commit: src/lib/libperfuse

2014-09-10 Thread Emmanuel Dreyfus
) 2010-2011 Emmanuel Dreyfus. All rights reserved. @@ -3198,16 +3198,6 @@ perfuse_node_write2(struct puffs_usermou requeue_request(pu, opc, PCQ_WRITE); pnd->pnd_flags |= PND_INWRITE; - /* - * Serialize size access, see comment in perfuse_node_setattr(). - */ - if ((u_quad_t)offset + *re

CVS commit: src/sys/fs/puffs

2014-09-05 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Fri Sep 5 15:39:19 UTC 2014 Modified Files: src/sys/fs/puffs: puffs_node.c puffs_vnops.c Log Message: When changing a directory content, update the ctime/mtime in kernel cache, otherwise the updated ctime/mtime appears after the ca

CVS commit: src/lib/libperfuse

2014-09-05 Thread Emmanuel Dreyfus
+++ src/lib/libperfuse/ops.c Fri Sep 5 15:20:16 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: ops.c,v 1.72 2014/09/03 23:59:58 enami Exp $ */ +/* $NetBSD: ops.c,v 1.73 2014/09/05 15:20:16 manu Exp $ */ /*- * Copyright (c) 2010-2011 Emmanuel Dreyfus. All rights reserved. @@ -2352,6 +2352,12

CVS commit: src/lib/libperfuse

2014-09-03 Thread Emmanuel Dreyfus
Fri Aug 29 04:58:40 2014 +++ src/lib/libperfuse/ops.c Wed Sep 3 16:01:45 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: ops.c,v 1.70 2014/08/29 04:58:40 manu Exp $ */ +/* $NetBSD: ops.c,v 1.71 2014/09/03 16:01:45 manu Exp $ */ /*- * Copyright (c) 2010-2011 Emmanuel Dreyfus. All rights reserved. @@ -269,7

CVS commit: src/usr.sbin/pcictl

2014-09-01 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Mon Sep 1 07:11:19 UTC 2014 Modified Files: src/usr.sbin/pcictl: pcictl.8 pcictl.c Log Message: read and write commands for pcictl, from riastradh@ and wiz@ http://mail-index.netbsd.org/tech-kern/2014/08/26/msg017572.html To gene

CVS commit: src/lib/libperfuse

2014-08-28 Thread Emmanuel Dreyfus
:1.70 --- src/lib/libperfuse/ops.c:1.69 Tue Aug 19 15:29:14 2014 +++ src/lib/libperfuse/ops.c Fri Aug 29 04:58:40 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: ops.c,v 1.69 2014/08/19 15:29:14 manu Exp $ */ +/* $NetBSD: ops.c,v 1.70 2014/08/29 04:58:40 manu Exp $ */ /*- * Copyright (c) 2010-2011 Emmanuel

CVS commit: src/sys/kern

2014-08-26 Thread Emmanuel Dreyfus
+++ src/sys/kern/subr_tftproot.c Tue Aug 26 09:38:54 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: subr_tftproot.c,v 1.12 2012/12/01 11:41:50 mbalmer Exp $ */ +/* $NetBSD: subr_tftproot.c,v 1.13 2014/08/26 09:38:54 manu Exp $ */ /*- * Copyright (c) 2007 Emmanuel Dreyfus, all rights reserved. @@ -39,10 +39,11

CVS commit: src/lib/libperfuse

2014-08-19 Thread Emmanuel Dreyfus
/libperfuse/ops.c Tue Aug 19 15:29:14 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: ops.c,v 1.68 2014/08/16 16:31:15 manu Exp $ */ +/* $NetBSD: ops.c,v 1.69 2014/08/19 15:29:14 manu Exp $ */ /*- * Copyright (c) 2010-2011 Emmanuel Dreyfus. All rights reserved. @@ -3139,8 +3139,6 @@ perfuse_node_write2

CVS commit: src/lib/libperfuse

2014-08-16 Thread Emmanuel Dreyfus
2014 @@ -1,4 +1,4 @@ -/* $NetBSD: ops.c,v 1.67 2014/08/16 16:28:43 manu Exp $ */ +/* $NetBSD: ops.c,v 1.68 2014/08/16 16:31:15 manu Exp $ */ /*- * Copyright (c) 2010-2011 Emmanuel Dreyfus. All rights reserved. @@ -1960,17 +1960,6 @@ out: return error; } -/* ARGSUSED0 */ -int -perfuse_node

CVS commit: src/usr.sbin/perfused

2014-08-16 Thread Emmanuel Dreyfus
:1.22 --- src/usr.sbin/perfused/msg.c:1.21 Sat Jul 21 05:49:42 2012 +++ src/usr.sbin/perfused/msg.c Sat Aug 16 16:32:04 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: msg.c,v 1.21 2012/07/21 05:49:42 manu Exp $ */ +/* $NetBSD: msg.c,v 1.22 2014/08/16 16:32:04 manu Exp $ */ /*- * Copyright (c) 2010 Emmanuel

CVS commit: src/lib/libperfuse

2014-08-16 Thread Emmanuel Dreyfus
ht (c) 2010-2011 Emmanuel Dreyfus. All rights reserved. @@ -1338,6 +1338,13 @@ int perfuse_node_open(struct puffs_usermount *pu, puffs_cookie_t opc, int mode, const struct puffs_cred *pcr) { + return perfuse_node_open2(pu, opc, mode, pcr, NULL); +} + +int +perfuse_node_open2(struct puffs_usermoun

CVS commit: src/lib/libpuffs

2014-08-16 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Sat Aug 16 16:25:44 UTC 2014 Modified Files: src/lib/libpuffs: dispatcher.c puffs.h puffs_ops.3 Log Message: Add an open2 method, like open but with an additionnal oflags used by the filesystem to send back information about the fil

CVS commit: src/sys/fs/puffs

2014-08-16 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Sat Aug 16 16:19:41 UTC 2014 Modified Files: src/sys/fs/puffs: puffs_msgif.h puffs_sys.h puffs_vnops.c Log Message: Add a oflags input field to open requests so that the filesystem can pass back information about the file. Implement

CVS commit: src/lib/libperfuse

2014-08-09 Thread Emmanuel Dreyfus
:33 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: ops.c,v 1.65 2014/08/09 19:06:50 manu Exp $ */ +/* $NetBSD: ops.c,v 1.66 2014/08/10 03:22:33 manu Exp $ */ /*- * Copyright (c) 2010-2011 Emmanuel Dreyfus. All rights reserved. @@ -3323,6 +3323,10 @@ perfuse_node_getextattr(struct puffs_use char *np

CVS commit: src/lib/libperfuse

2014-08-09 Thread Emmanuel Dreyfus
Emmanuel Dreyfus. All rights reserved. @@ -3359,9 +3359,17 @@ perfuse_node_getextattr(struct puffs_use */ foh = GET_OUTHDR(ps, pm); np = (char *)(void *)(foh + 1); + len = foh->len - sizeof(*foh); + + if (attrsize != NULL) + *attrsize = len; if (resid != NULL) { - len = MAX(foh-&

CVS commit: src/lib/libperfuse

2014-08-08 Thread Emmanuel Dreyfus
Emmanuel Dreyfus. All rights reserved. @@ -1554,7 +1554,7 @@ perfuse_node_getattr_ttl(struct puffs_us struct fuse_attr_out *fao; int error = 0; - if (pnd->pnd_flags & PND_REMOVED) + if ((pnd->pnd_flags & PND_REMOVED) && !(pnd->pnd_flags & PND_OPEN)) return ENOENT; node_ref(opc);

CVS commit: src/usr.bin/extattr

2014-06-20 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Fri Jun 20 15:22:01 UTC 2014 Modified Files: src/usr.bin/extattr: getextattr.c Log Message: Use returned size and not buffer max length when displaying attribute >From Thomas Schmitt To generate a diff of this commit: cvs rdiff -

  1   2   3   >