svn commit: r349750 - head/sys/compat/linux
Edward Tomasz Napierala
trasz at FreeBSD.org
Thu Jul 4 20:16:06 UTC 2019
Author: trasz
Date: Thu Jul 4 20:16:04 2019
New Revision: 349750
URL: https://svnweb.freebsd.org/changeset/base/349750
Log:
Return ENOTSUP for Linux FS_IOC_FIEMAP ioctl.
Linux man(1) calls it for no good reason; this avoids the console spam
(eg '(man): ioctl fd=4, cmd=0x660b ('f',11) is not implemented').
Reviewed by: emaste
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D20690
Modified:
head/sys/compat/linux/linux_ioctl.c
head/sys/compat/linux/linux_ioctl.h
Modified: head/sys/compat/linux/linux_ioctl.c
==============================================================================
--- head/sys/compat/linux/linux_ioctl.c Thu Jul 4 19:52:50 2019 (r349749)
+++ head/sys/compat/linux/linux_ioctl.c Thu Jul 4 20:16:04 2019 (r349750)
@@ -3593,6 +3593,7 @@ linux_ioctl(struct thread *td, struct linux_ioctl_args
switch (args->cmd & 0xffff) {
case LINUX_BTRFS_IOC_CLONE:
+ case LINUX_FS_IOC_FIEMAP:
return (ENOTSUP);
default:
Modified: head/sys/compat/linux/linux_ioctl.h
==============================================================================
--- head/sys/compat/linux/linux_ioctl.h Thu Jul 4 19:52:50 2019 (r349749)
+++ head/sys/compat/linux/linux_ioctl.h Thu Jul 4 20:16:04 2019 (r349750)
@@ -749,6 +749,7 @@
* Linux btrfs clone operation
*/
#define LINUX_BTRFS_IOC_CLONE 0x9409 /* 0x40049409 */
+#define LINUX_FS_IOC_FIEMAP 0x660b
/*
* Linux evdev ioctl min and max
More information about the svn-src-all
mailing list