I tried to copy a 8GB Xen domU disk image from a zvol device
to an image file on an ufs filesystem, and was surprised that
reading from the zvol character device doesn't detect "EOF".

On snv_66 (sparc) and snv_73 (x86) I can reproduce it, like this:

# zfs create -V 1440k tank/floppy-img

# dd if=/dev/zvol/dsk/tank/floppy-img of=/dev/null bs=1k count=2000
1440+0 records in
1440+0 records out
(no problem on block device, we detect eof after reading 1440k)


# dd if=/dev/zvol/rdsk/tank/floppy-img of=/dev/null bs=1k count=2000
2000+0 records in
2000+0 records out

(Oops!  No eof detected on zvol raw device after reading 1440k?)
 
 
This message posted from opensolaris.org
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to