opnsense-src/sys
Kirk McKusick e6796b67d9 Move the truncation code out of vn_open and into the open system call
after the acquisition of any advisory locks. This fix corrects a case
in which a process tries to open a file with a non-blocking exclusive
lock. Even if it fails to get the lock it would still truncate the
file even though its open failed. With this change, the truncation
is done only after the lock is successfully acquired.

Obtained from:	 BSD/OS
2000-07-04 03:34:11 +00:00
..
alpha Style police catches up with rev 1.26 of src/sys/sys/sysctl.h: 2000-07-03 09:35:31 +00:00
amd64 Update tags directive to reflect the new location of soft updates 2000-07-04 00:18:43 +00:00
boot Change the fault message to say 'BTX halted' isntead of 'System halted' to 2000-06-29 08:24:50 +00:00
cam Fix breakage where we never were attaching SES devices because inq_len 2000-06-18 04:19:08 +00:00
coda Remove 42 unneeded #include <sys/ioccom.h>. 2000-05-03 07:31:38 +00:00
compat Style police catches up with rev 1.26 of src/sys/sys/sysctl.h: 2000-07-03 09:35:31 +00:00
compile
conf Include SOFTUPDATES in NOTES/LINT by default. 2000-07-03 13:24:25 +00:00
contrib/dev Remove these here, these were repocopied to src/sys/ufs/ffs. 2000-06-23 00:11:32 +00:00
crypto Remove ~25 unneeded #include <sys/conf.h> 2000-04-19 14:58:28 +00:00
ddb Style police catches up with rev 1.26 of src/sys/sys/sysctl.h: 2000-07-03 09:35:31 +00:00
dev Move the truncation code out of vn_open and into the open system call 2000-07-04 03:34:11 +00:00
fs Pull the rug under block mode devices. they return ENXIO on open(2) now. 2000-07-03 13:48:37 +00:00
geom Move the truncation code out of vn_open and into the open system call 2000-07-04 03:34:11 +00:00
gnu Fix typo (accessable --> accessible). 2000-06-14 17:53:40 +00:00
i4b Borrow phk's axe and apply the next stage of config(8)'s evolution. 2000-06-13 22:28:50 +00:00
i386 Update tags directive to reflect the new location of soft updates 2000-07-04 00:18:43 +00:00
isa Style police catches up with rev 1.26 of src/sys/sys/sysctl.h: 2000-07-03 09:35:31 +00:00
isofs/cd9660 Fix memory leakage on module unload. 2000-06-29 01:19:12 +00:00
kern Move the truncation code out of vn_open and into the open system call 2000-07-04 03:34:11 +00:00
libkern Comment out unavailable call. This needs to be revisited when the entropy 2000-06-25 10:15:58 +00:00
miscfs Pull the rug under block mode devices. they return ENXIO on open(2) now. 2000-07-03 13:48:37 +00:00
modules Build ng_ether(4) KLD. 2000-06-26 23:41:08 +00:00
msdosfs Fix memory leakage on module unload. 2000-06-29 01:12:47 +00:00
net Style police catches up with rev 1.26 of src/sys/sys/sysctl.h: 2000-07-03 09:35:31 +00:00
netatalk Just need to pass the address family to if_simloop(), not the whole sockaddr. 2000-05-24 21:16:56 +00:00
netatm Just need to pass the address family to if_simloop(), not the whole sockaddr. 2000-05-24 21:16:56 +00:00
netgraph Experiemntal ascii based device configuration mechanism. 2000-07-03 13:34:18 +00:00
netinet Style police catches up with rev 1.26 of src/sys/sys/sysctl.h: 2000-07-03 09:35:31 +00:00
netinet6 Style police catches up with rev 1.26 of src/sys/sys/sysctl.h: 2000-07-03 09:35:31 +00:00
netipx Add $FreeBSD$ 2000-05-01 20:32:07 +00:00
netkey Check for MGET* returning NULL and return ENOBUFS in this case. 2000-06-10 17:55:57 +00:00
netnatm Back out the previous change to the queue(3) interface. 2000-05-26 02:09:24 +00:00
netncp Style police catches up with rev 1.26 of src/sys/sys/sysctl.h: 2000-07-03 09:35:31 +00:00
netns Clean up some loose ends in the network code, including the X.25 and ISO 2000-02-13 03:32:07 +00:00
nfs Correctly set the Maximum DHCP Message Size. bootpd now works 2000-06-13 09:32:09 +00:00
nfsclient Correctly set the Maximum DHCP Message Size. bootpd now works 2000-06-13 09:32:09 +00:00
nfsserver Back out the previous change to the queue(3) interface. 2000-05-26 02:09:24 +00:00
ntfs Back out the previous change to the queue(3) interface. 2000-05-26 02:09:24 +00:00
nwfs Style police catches up with rev 1.26 of src/sys/sys/sysctl.h: 2000-07-03 09:35:31 +00:00
pc98 Style police catches up with rev 1.26 of src/sys/sys/sysctl.h: 2000-07-03 09:35:31 +00:00
pccard There is no atdevbase on the alpha. Hide this case statement on alpha until 2000-06-23 22:47:17 +00:00
pci Change startup locking. Use new isp_handle_index function 2000-07-04 01:01:15 +00:00
posix4 Add $FreeBSD$ 2000-05-01 20:32:07 +00:00
powerpc Support bounce buffers for ISA DMA on the alpha. This is required for the 2000-06-19 18:41:27 +00:00
rpc $Id$ -> $FreeBSD$ 1999-08-27 23:45:13 +00:00
svr4 Modify ktrace's general I/O tracing, ktrgenio(), to use a struct uio * 2000-07-02 08:08:09 +00:00
sys Move the truncation code out of vn_open and into the open system call 2000-07-04 03:34:11 +00:00
tools remove crufty exec stuff, perl is in the base system 2000-06-27 19:09:55 +00:00
ufs Move the truncation code out of vn_open and into the open system call 2000-07-04 03:34:11 +00:00
vm Style police catches up with rev 1.26 of src/sys/sys/sysctl.h: 2000-07-03 09:35:31 +00:00
Makefile If "MODULES_WITH_WORLD" is defined, sys/modules will be built with the 2000-06-17 10:51:56 +00:00