Hi, I''d like to be able to select zfs filesystems, based on the value of properties. Something like this: zfs select mounted=yes Is anyone aware if this feature might be available in the future? If not, is there a clean way of achieving the same result? Thanks, Mike. -- This message posted from opensolaris.org
Mike Forey wrote:> zfs select mounted=yes > If not, is there a clean way of achieving the same result?How about this: zfs list -o name,mounted | awk ''$2 == "yes" {print $1}'' Allan
very tidy, thanks! :) -- This message posted from opensolaris.org
Mike Forey wrote:> Hi, > > I''d like to be able to select zfs filesystems, based on the value of properties. > > Something like this: > > zfs select mounted=yesWhat is the output of the above ? Would you want to specify multiple properties ? What about for properties that aren''t index values (eg sharenfs) ? What about ranges for index valued properties ?> Is anyone aware if this feature might be available in the future?Log a request for it at http://bugs.opensolaris.org/> If not, is there a clean way of achieving the same result?Other than scripting around zfs get no I can''t. -- Darren J Moffat