Displaying 1 result from an estimated 1 matches for "zv_volsize".
2007 Aug 23
1
EOF broken on zvol raw devices?
...t; bs=1k count=2000
> 2000+0 records in
> 2000+0 records out
>
> (Oops! No eof detected on zvol raw device after
> reading 1440k?)
After looking at the code in usr/src/uts/common/fs/zfs/zvol.c
it seems that neither zvol_read() nor zvol_write() cares about
the zvol''s "zv_volsize".
I think we need something like this:
diff -r 26be3efbd346 usr/src/uts/common/fs/zfs/zvol.c
--- a/usr/src/uts/common/fs/zfs/zvol.c Thu Aug 23 00:53:10 2007 -0700
+++ b/usr/src/uts/common/fs/zfs/zvol.c Thu Aug 23 16:30:41 2007 +0200
@@ -904,6 +904,7 @@ zvol_read(dev_t dev, uio_t *uio, cred...