On Jan 18,  6:37am, Robert Elz wrote:
}
}     Date:        Sun, 17 Jan 2016 23:26:35 +0100
}     From:        Michael van Elst <mlel...@serpens.de>
}     Message-ID:  <20160117222634.ga5...@serpens.de>
} 
}   | I'd rather have something that lists existing devices, allocates
}   | a fresh one and tells me the name and works for all such pseudo disks.
} 
} I use the following script.   You will probably want to remove the
} "echo cgd0" bit - I do that to permanently reserve cgd0 from this kind
} of use (all my systems use that one for one particular purpose.)
} 
} I call it next_avail - usage is something like
} 
}       VND=$( next_avail vnd )
}       CGD=$( next_avail cgd )
}       
} (and whatever else is similar, I know there is at least one more, but I
} have forgotten which it is .. oh yes, raid of course...)

     Don't forget ccd(4).

}-- End of excerpt from Robert Elz

Reply via email to