diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2011-01-06 15:04:18 +0000 |
---|---|---|
committer | Riku Voipio <riku.voipio@iki.fi> | 2011-01-07 17:20:58 +0200 |
commit | 285da2b9a83353703d07e141fdb447e82944146c (patch) | |
tree | 9ecd963d7cf1a6131660e35f6a8a61e31f19361f /linux-user/ioctls.h | |
parent | d2ef05bb44e044e30f779ed9c4882c3c8299350d (diff) | |
download | qemu-285da2b9a83353703d07e141fdb447e82944146c.zip qemu-285da2b9a83353703d07e141fdb447e82944146c.tar.gz qemu-285da2b9a83353703d07e141fdb447e82944146c.tar.bz2 |
linux-user: Implement FS_IOC_FIEMAP ioctl
Implement the FS_IOC_FIEMAP ioctl using the new support for
custom handling of ioctls; this is needed because the struct
that is passed includes a variable-length array.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
Diffstat (limited to 'linux-user/ioctls.h')
-rw-r--r-- | linux-user/ioctls.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index 769e1bc..538e257 100644 --- a/linux-user/ioctls.h +++ b/linux-user/ioctls.h @@ -76,6 +76,10 @@ #ifdef FIGETBSZ IOCTL(FIGETBSZ, IOC_R, MK_PTR(TYPE_LONG)) #endif +#ifdef FS_IOC_FIEMAP + IOCTL_SPECIAL(FS_IOC_FIEMAP, IOC_W | IOC_R, do_ioctl_fs_ioc_fiemap, + MK_PTR(MK_STRUCT(STRUCT_fiemap))) +#endif IOCTL(SIOCATMARK, 0, TYPE_NULL) IOCTL(SIOCADDRT, IOC_W, MK_PTR(MK_STRUCT(STRUCT_rtentry))) |