diff options
author | dchagin <dchagin@FreeBSD.org> | 2016-09-24 10:34:39 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2016-09-24 10:34:39 +0000 |
commit | 254478f1920f5274b20a400f327169b401f42e3e (patch) | |
tree | c0d9a6884f2c1fa94d1891ff7ef1a74ccf01083a | |
parent | f1424fbcd4898c174307f75dc9cbb9f58fa5293e (diff) | |
download | FreeBSD-src-254478f1920f5274b20a400f327169b401f42e3e.zip FreeBSD-src-254478f1920f5274b20a400f327169b401f42e3e.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 7185a12..a5e9e85 100644 --- a/sys/compat/linux/linux_ioctl.c +++ b/sys/compat/linux/linux_ioctl.c @@ -296,6 +296,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); |