freebsd-dev/sys
Rick Macklem df9bc7df42 Map ENOTTY to EINVAL for lseek(SEEK_DATA/SEEK_HOLE).
Without this patch, when an application performed lseek(SEEK_DATA/SEEK_HOLE)
on a file in a file system that does not have its own VOP_IOCTL(), the
lseek(2) fails with errno ENOTTY. This didn't seem appropriate, since
ENOTTY is not listed as an error return by either the lseek(2) man page
nor the POSIX draft for lseek(2).
This was discussed on freebsd-current@ here:
http://docs.FreeBSD.org/cgi/mid.cgi?CAOtMX2iiQdv1+15e1N_r7V6aCx_VqAJCTP1AW+qs3Yg7sPg9wA

This trivial patch maps ENOTTY to EINVAL for lseek(SEEK_DATA/SEEK_HOLE).

Reviewed by:	markj
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D21300
2019-08-22 01:15:06 +00:00
..
amd64 gdb(4):amd64: Bump MI GDB_BUFSZ for more efficient transfers 2019-08-22 00:35:17 +00:00
arm ti: sdhci: Correct voltage caps 2019-08-19 14:33:22 +00:00
arm64 Improve rk_pinctrl driver: 2019-08-18 09:19:33 +00:00
bsm
cam Make camcontrol modepage support block descriptors. 2019-08-07 14:45:10 +00:00
cddl Use an atomic reference count for paging in progress so that callers do not 2019-08-19 23:09:38 +00:00
compat Change locking requirements for VOP_UNSET_TEXT(). 2019-08-18 20:24:52 +00:00
conf Create a AHCI attachment for nvme. 2019-08-21 22:18:01 +00:00
contrib athhal: disable unused function (big endian only) 2019-08-21 10:42:31 +00:00
crypto Use 'const' for keys and IVs passed to software encryption algorithms. 2019-08-22 00:02:08 +00:00
ddb Cache kernel stacks in UMA. This gives us NUMA support, better concurrency, 2019-08-06 23:15:34 +00:00
dev Create a AHCI attachment for nvme. 2019-08-21 22:18:01 +00:00
dts dtso: allwinner: Add an overlay for H3 i2c0 2019-07-20 17:42:46 +00:00
fs nullfs: lock the vnode with LK_SHARED in null_vptocnp 2019-08-21 23:24:40 +00:00
gdb gdb(4): Style 2019-08-22 00:36:16 +00:00
geom geom_uzip(4), mkuzip(8): Add Zstd image mode 2019-08-13 23:32:56 +00:00
gnu arm: dts: am33xx: Fix the region for uart0 2019-08-07 13:11:53 +00:00
i386 i386: Implement atomic_load_64(9) and atomic_store_64(9). 2019-08-18 15:58:44 +00:00
isa
kern Map ENOTTY to EINVAL for lseek(SEEK_DATA/SEEK_HOLE). 2019-08-22 01:15:06 +00:00
kgssapi Make the warning intervals for deprecated crypto algorithms tunable. 2019-06-11 23:00:55 +00:00
libkern libkern: Implement strchrnul(3) 2019-08-19 22:53:05 +00:00
mips mips: avoid empty mdproc struct 2019-08-19 18:15:17 +00:00
modules Create a AHCI attachment for nvme. 2019-08-21 22:18:01 +00:00
net tuntap: belatedly add MODULE_VERSION for if_tun and if_tap 2019-08-19 19:01:59 +00:00
net80211 Enhance the comment ieee80211_add_channel() to avoid a 2019-06-10 14:31:18 +00:00
netgraph Use MTX_NEW instead of bzero(). 2019-08-21 08:15:30 +00:00
netinet Fix an issue when TSO and Rack play together. Basically 2019-08-21 10:45:28 +00:00
netinet6 frag6: move public structure into file local space. 2019-08-08 10:59:54 +00:00
netipsec Add missing new line in several log messages. 2019-08-09 08:58:09 +00:00
netpfil Fix rule truncation on external action module unloading. 2019-08-15 13:44:33 +00:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed OFED: Fix accidental double-copy of rdma_sdp.h in r351176 2019-08-18 04:19:41 +00:00
opencrypto Use 'const' for keys and IVs passed to software encryption algorithms. 2019-08-22 00:02:08 +00:00
powerpc powerpc: Link Book-E kernels at the same address as AIM kernels 2019-08-20 01:26:02 +00:00
riscv Move phys_avail definition into MI code. It is consumed in the MI layer and 2019-08-16 00:45:14 +00:00
rpc Avoid relying on header pollution from sys/refcount.h. 2019-07-29 20:26:01 +00:00
security Fix mac_veriexec_parser build after r347938 2019-08-08 16:51:49 +00:00
sparc64 Move phys_avail definition into MI code. It is consumed in the MI layer and 2019-08-16 00:45:14 +00:00
sys Add lockmgr(9) probes to the lockstat DTrace provider. 2019-08-21 23:43:58 +00:00
teken
tests
tools Add SDIO support. 2019-06-08 16:26:56 +00:00
ufs Clarify comment that describes how the FS_METACKHASH is managed. 2019-08-13 20:56:44 +00:00
vm Simplify vm_page_dequeue() and fix an assertion. 2019-08-21 16:11:12 +00:00
x86 Move phys_avail definition into MI code. It is consumed in the MI layer and 2019-08-16 00:45:14 +00:00
xdr
xen
Makefile