Re: [zfs-discuss] best way to check zfs/zpool version programatically

2010-10-09 Thread Richard Elling
On Oct 9, 2010, at 1:18 PM, sridhar surampudi wrote: > Hi, > > what is the right way to check versions of zfs and zpool ?? zpool get version POOLNAME zfs get version DATASET > I am writing piece of code which call zfs command line further. Before > actually initiating and going ahead I wan to

Re: [zfs-discuss] best way to check zfs/zpool version programatically

2010-10-09 Thread Edho P Arief
On Sun, Oct 10, 2010 at 3:18 AM, sridhar surampudi wrote: > Hi, > > what is the right way to check versions of zfs and zpool ?? > > I am writing piece of code which call zfs command line further. Before > actually initiating and going ahead I wan to check the kind of version zfs > and zpool pres

[zfs-discuss] best way to check zfs/zpool version programatically

2010-10-09 Thread sridhar surampudi
Hi, what is the right way to check versions of zfs and zpool ?? I am writing piece of code which call zfs command line further. Before actually initiating and going ahead I wan to check the kind of version zfs and zpool present on the system. As an example "zpool split" is not present on prior