zdev.conf broken, or am I doing it wrong?

Christ Schlacta aarcane at aarcane.org
Tue May 31 02:02:31 EDT 2011

On 5/30/2011 22:42, Ned Bass wrote:
> 2011/5/30 Christ Schlacta<aarcane at aarcane.org>:
>> so I looked at zpool_id and I found a small bug either in documentation or
>> in zpool_id.  on line 52, the characters \<  and \>  need to be removed or the
>> path id in zdev.conf needs to be wrapped in<  >  characters, then everything
>> works fine.
> Make sure you have gawk installed.  \<  and \>  match beginning and
> ending word boundaries, respectively.  Other awk alternatives such as
> mawk appear not to support these patterns correctly.
> See https://github.com/behlendorf/zfs/commit/6ee44e3
> Ned
if the awk statement is replaced with:
ID_ZPOOL=$( grep -w ${ID_PATH} ${CONFIG} | sed -e "s/\s${ID_PATH}//" )
the thing will work regardless of awk version on any linux system.  a 
variable needs to be made for $GREP and $SED instead of $AWK.

More information about the zfs-discuss mailing list