Displaying 1 result from an estimated 1 matches for "rl_writer".
Did you mean:
url_writer
2007 Aug 23
1
EOF broken on zvol raw devices?
...rl_t *rl;
int error = 0;
@@ -943,13 +951,19 @@ zvol_write(dev_t dev, uio_t *uio, cred_t
if (zv == NULL)
return (ENXIO);
+ volsize = zv->zv_volsize;
+
rl = zfs_range_lock(&zv->zv_znode, uio->uio_loffset, uio->uio_resid,
RL_WRITER);
- while (uio->uio_resid > 0) {
+ while (uio->uio_resid > 0 && uio->uio_loffset < volsize) {
uint64_t bytes = MIN(uio->uio_resid, DMU_MAX_ACCESS >> 1);
uint64_t off = uio->uio_loffset;
-
- dmu_tx_t *tx...