/dev/gzero vs /dev/zero
takawata at jp.freebsd.org
takawata at jp.freebsd.org
Wed Aug 1 09:40:22 UTC 2007
In message <20070801092320.GA31415 at stud.ntnu.no>, Ulf Lilleengen wrote:
>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 atta
>ch
>other GEOM classes to it.
>
>But to just get zeroes, using /dev/zero is all you need :)
/dev/zero has infinite length. but /dev/gzero has *just* 1 EB length, it is
far more shorter.
More information about the freebsd-current
mailing list