>From: Richard Elling >Sent: Monday, September 27, 2010 1:01 PM > >On Sep 27, 2010, at 11:54 AM, Geoff Nordli wrote: >> >> Are there any properties I can set on the clone side? > >Each clone records its origin snapshot in the "origin" property. > >$ zfs get origin syspool/rootfs-nmu-001 >NAME PROPERTY VALUE SOURCE >syspool/rootfs-nmu-001 origin syspool/rootfs-nmu-...@nmu-001 - > >Enjoy > -- richard
Hi Richard. Yes, we can use the origin, but that tells me where it came from, not how many snapshots are built from it. Before I can delete it, the clone can't have any snapshots under it. This isn't hard to solve, I can just do a regex on the clone name looking for snapshots name, but I was hoping there was a simple zfs property I can query. Thanks, Geoff _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss