[prev in list] [next in list] [prev in thread] [next in thread]
List: zfs-discuss
Subject: Re: [zfs-discuss] way to find out of a dataset has children
From: "Geoff Nordli" <geoffn () gnaa ! net>
Date: 2010-09-27 20:23:21
Message-ID: 037801cb5e81$d4824390$7d86cab0$ () gnaa ! net
[Download RAW message or body]
>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-000@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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic