Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 01 Aug 2007 12:51:05 +0200
From:      Ivan Voras <ivoras@fer.hr>
To:        freebsd-current@freebsd.org
Subject:   Re: /dev/gzero vs /dev/zero
Message-ID:  <f8poip$amj$1@sea.gmane.org>
In-Reply-To: <20070801014957.GH37494@obelix.dsto.defence.gov.au>
References:  <20070801014957.GH37494@obelix.dsto.defence.gov.au>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Wilkinson, Alex wrote:
> Why would I use one over the other ?

/dev/gzero simulates a disk drive, /dev/zero is a regular amorphous
character device. It's sometimes useful to have a disk-drive-like device
that can accept anything (the fabled write-only media!), mostly for
development.

Also, gzero can be configured to "be made of" not only zeroes (\0) but
any other byte value, so it can be useful if you need "something like
/dev/zero" but not with actual ASCII 0 bytes.



[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGsGWZldnAQVacBcgRAr0IAKDQGt/gPInV2m5PgQYzthKEo2JbXACgrjy6
JarPchK5nUo0Gkp8/78m/cY=
=CNBc
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f8poip$amj$1>