Carson Gaspar wrote:
> Why not "zfs create $PWD/6724478". Works today, traditional UNIX 
> behaviour, no coding required. Unles you're in some bizarroland shell 

Did you actually try that ?

braveheart# echo $PWD 
 

/tank/p2/2/1
braveheart# zfs create $PWD/44 
 

cannot create '/tank/p2/2/1/44': leading slash in name

It work because zfs create takes a dataset name but $PWD will give you a 
pathname starting with /.  Dataset names don't start with /.

Also this assumes that your mountpoint hierarchy is identical to your 
dataset name hierarchy (other than the leading /) which isn't 
necessarily true,  ie if any of the datasets have a non default 
mountpoint property.

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

Reply via email to