What is gzero?

Brooks Davis brooks at one-eyed-alien.net
Mon Sep 26 14:26:09 PDT 2005


On Mon, Sep 26, 2005 at 11:04:36PM +0200, Frank J. Beckmann wrote:
> Hi,
> 
> am Montag, 26. September 2005 22:53 schrieb Brooks Davis:
> > On Mon, Sep 26, 2005 at 10:27:44PM +0200, Frank J. Beckmann wrote:
> > > Hi,
> > >
> > > maybe this is a kind of stupid question, but what is the device gzero
> > > for? When should I use it instead of /dev/zero?
> >
> > It's to allow you to emulate a really big (41PB) fake disk for testing.
> 
> Wow, that answer was fast...
> 
> Sounds like an interesting device, but how do I use it? I guess I have to 
> learn much about geom yet.

Just load or compile in the module.  A device will appear.  Note that
such a device is only useful for testing since reads all return zeros
and writes are no-ops.

-- Brooks

-- 
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-geom/attachments/20050926/ca7eeda8/attachment.bin


More information about the freebsd-geom mailing list