svn commit: r306293 - stable/11/sys/compat/linux
Dmitry Chagin
dchagin at FreeBSD.org
Sat Sep 24 10:32:28 UTC 2016
Author: dchagin
Date: Sat Sep 24 10:32:26 2016
New Revision: 306293
URL: https://svnweb.freebsd.org/changeset/base/306293
Log:
MFC r305896:
Implement BLKSSZGET ioctl for the Linuxulator.
PR: 212700
Modified:
stable/11/sys/compat/linux/linux_ioctl.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/compat/linux/linux_ioctl.c
==============================================================================
--- stable/11/sys/compat/linux/linux_ioctl.c Sat Sep 24 08:13:15 2016 (r306292)
+++ stable/11/sys/compat/linux/linux_ioctl.c Sat Sep 24 10:32:26 2016 (r306293)
@@ -297,6 +297,15 @@ linux_ioctl_disk(struct thread *td, stru
return (copyout(§orsize, (void *)args->arg,
sizeof(sectorsize)));
break;
+ case LINUX_BLKSSZGET:
+ error = fo_ioctl(fp, DIOCGSECTORSIZE,
+ (caddr_t)§orsize, td->td_ucred, td);
+ fdrop(fp, td);
+ if (error)
+ return (error);
+ return (copyout(§orsize, (void *)args->arg,
+ sizeof(sectorsize)));
+ break;
}
fdrop(fp, td);
return (ENOIOCTL);
More information about the svn-src-stable
mailing list