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
This commit is contained in:
Edward Tomasz Napierala 2019-07-04 20:16:04 +00:00
parent 8037385293
commit 0fabd7b5cc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=349750
2 changed files with 2 additions and 0 deletions

View File

@ -3593,6 +3593,7 @@ linux_ioctl(struct thread *td, struct linux_ioctl_args *args)
switch (args->cmd & 0xffff) {
case LINUX_BTRFS_IOC_CLONE:
case LINUX_FS_IOC_FIEMAP:
return (ENOTSUP);
default:

View File

@ -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