summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2016-09-24 10:34:39 +0000
committerdchagin <dchagin@FreeBSD.org>2016-09-24 10:34:39 +0000
commit254478f1920f5274b20a400f327169b401f42e3e (patch)
treec0d9a6884f2c1fa94d1891ff7ef1a74ccf01083a
parentf1424fbcd4898c174307f75dc9cbb9f58fa5293e (diff)
downloadFreeBSD-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.c9
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(&sectorsize, (void *)args->arg,
sizeof(sectorsize)));
break;
+ case LINUX_BLKSSZGET:
+ error = fo_ioctl(fp, DIOCGSECTORSIZE,
+ (caddr_t)&sectorsize, td->td_ucred, td);
+ fdrop(fp, td);
+ if (error)
+ return (error);
+ return (copyout(&sectorsize, (void *)args->arg,
+ sizeof(sectorsize)));
+ break;
}
fdrop(fp, td);
return (ENOIOCTL);
OpenPOWER on IntegriCloud