Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 01 Aug 2007 18:31:33 +0900
From:      takawata@jp.freebsd.org
To:        freebsd-current@freebsd.org
Subject:   Re: /dev/gzero vs /dev/zero
Message-ID:  <200708010931.l719VXiX015926@sana.init-main.com>
In-Reply-To: Your message of "Wed, 01 Aug 2007 11:23:20 %2B0200." <20070801092320.GA31415@stud.ntnu.no>

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20070801092320.GA31415@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708010931.l719VXiX015926>