tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: vnd.c 1.254



On Jan 18,  6:37am, Robert Elz wrote:
}
}     Date:        Sun, 17 Jan 2016 23:26:35 +0100
}     From:        Michael van Elst <mlelstv%serpens.de@localhost>
}     Message-ID:  <20160117222634.GA5226%serpens.de@localhost>
} 
}   | 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


Home | Main Index | Thread Index | Old Index