mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
8037385293
commit
0fabd7b5cc
2 changed files with 2 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue