diff options
author | dchagin <dchagin@FreeBSD.org> | 2016-09-24 10:32:26 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2016-09-24 10:32:26 +0000 |
commit | e26380ce48c0d2e98f182e649396cc13c214b0e9 (patch) | |
tree | 33ec837ff82357caa5aba605d4139acce5a1f346 | |
parent | 770fd2290bb6cf4a2d04e3565c90a4ca036bf546 (diff) | |
download | FreeBSD-src-e26380ce48c0d2e98f182e649396cc13c214b0e9.zip FreeBSD-src-e26380ce48c0d2e98f182e649396cc13c214b0e9.tar.gz |
MFC r305896:
Implement BLKSSZGET ioctl for the Linuxulator.
PR: 212700
-rw-r--r-- | sys/compat/linux/linux_ioctl.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c index 824bcf0..de5ad41 100644 --- a/sys/compat/linux/linux_ioctl.c +++ b/sys/compat/linux/linux_ioctl.c @@ -297,6 +297,15 @@ linux_ioctl_disk(struct thread *td, struct linux_ioctl_args *args) 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); |