mnh wrote:
Darren J Moffat wrote:

mnh wrote:

Hi,

I was wondering if there is any way to read a ZFS snapshot using system/zfs lib (ie refer to it as a block device). I dug through the libzfs source but could not find anything that could enable me to 'read' the contents of a
snapshot/filesystem.


Why ?  What problem are you trying to solve ?

We are trying to implement a third-party Backup/Restore System for zfs (including bare metal recovery). Essentially requires
the snapshot to be read and stored in a proprietary format.

Is there a reason why you can't just walk through the snapshot using POSIX APIs ? The snapshot is mounted in <rootofdataset>/.zfs/snapshot/<nameofsnapshot>

Or maybe zfs send/recv is what you need.


Given that you can't read the filesystem as a block device in the first place why would it make sense to do so for a snapshot of filesystem ?

I know it doesn't make much sense, I was just hoping that zfs's snapshots could be used by a different product/vendor.

Sure they can but I'm not sure you are approaching the problem from a view that ZFS can give you on the data.

It might help if you described how this backup software works for other filesystems, eg UFS.

--
Darren J Moffat
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to