Date: Mon, 24 Aug 2020 12:59:15 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org Subject: svn commit: r364670 - stable/12/sys/compat/linux Message-ID: <202008241259.07OCxF4O042383@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: trasz Date: Mon Aug 24 12:59:15 2020 New Revision: 364670 URL: https://svnweb.freebsd.org/changeset/base/364670 Log: MFC r349750: 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'). Sponsored by: The FreeBSD Foundation Modified: stable/12/sys/compat/linux/linux_ioctl.c stable/12/sys/compat/linux/linux_ioctl.h Directory Properties: stable/12/ (props changed) Modified: stable/12/sys/compat/linux/linux_ioctl.c ============================================================================== --- stable/12/sys/compat/linux/linux_ioctl.c Mon Aug 24 12:57:03 2020 (r364669) +++ stable/12/sys/compat/linux/linux_ioctl.c Mon Aug 24 12:59:15 2020 (r364670) @@ -3706,6 +3706,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: stable/12/sys/compat/linux/linux_ioctl.h ============================================================================== --- stable/12/sys/compat/linux/linux_ioctl.h Mon Aug 24 12:57:03 2020 (r364669) +++ stable/12/sys/compat/linux/linux_ioctl.h Mon Aug 24 12:59:15 2020 (r364670) @@ -753,6 +753,7 @@ * Linux btrfs clone operation */ #define LINUX_BTRFS_IOC_CLONE 0x9409 /* 0x40049409 */ +#define LINUX_FS_IOC_FIEMAP 0x660b /* * Linux evdev ioctl min and max
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008241259.07OCxF4O042383>