/dev/gzero vs /dev/zero

Ulf Lilleengen lulf at stud.ntnu.no
Wed Aug 1 09:23:17 UTC 2007


On ons, aug 01, 2007 at 10:06:23 +0800, Wilkinson, Alex wrote:
>     0n Wed, Aug 01, 2007 at 09:53:37AM +0800, LI Xin wrote: 
> 
>     >Wilkinson, Alex wrote:
>     >> Why would I use one over the other ?
>     >
>     >No, gzero is used with geom_zero and you should not use it directly.
> 
> 
> Huh ? I know this ? But why would one use gzero and not /dev/zero ?
> 
/dev/gzero is a GEOM provider, and /dev/zero is not. This means you could attach
other GEOM classes to it.

But to just get zeroes, using /dev/zero is all you need :)

-- 
Ulf Lilleengen


More information about the freebsd-current mailing list