diff options
author | joerg <joerg@FreeBSD.org> | 1997-10-11 20:09:05 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1997-10-11 20:09:05 +0000 |
commit | 4841b45bbe197e54bb7732317930e8591d51362c (patch) | |
tree | 2bbaeb532cca6a0c260f5fc674f9d1d0ce9b10cb /bin/dd/args.c | |
parent | 11466e2a6f0898af142d8fbff4ead6b7078c6e04 (diff) | |
download | FreeBSD-src-4841b45bbe197e54bb7732317930e8591d51362c.zip FreeBSD-src-4841b45bbe197e54bb7732317930e8591d51362c.tar.gz |
Teach dd(1) about an option to write sparse files. Can be useful for
things like diskless clients' swap files etc.
Submitted by: pascal@zuo.dec.com (Pascal Pederiva) (ages ago, with many
stylistic changes by me)
Diffstat (limited to 'bin/dd/args.c')
-rw-r--r-- | bin/dd/args.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/dd/args.c b/bin/dd/args.c index c5a14f7..f1e556a 100644 --- a/bin/dd/args.c +++ b/bin/dd/args.c @@ -34,7 +34,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: args.c,v 1.8 1997/02/22 14:02:41 peter Exp $ + * $Id: args.c,v 1.9 1997/10/08 12:10:33 eivind Exp $ */ #ifndef lint @@ -283,6 +283,7 @@ static struct conv { { "oldascii", C_ASCII, C_EBCDIC, e2a_32V }, { "oldebcdic", C_EBCDIC, C_ASCII, a2e_32V }, { "oldibm", C_EBCDIC, C_ASCII, a2ibm_32V }, + { "sparse", C_SPARSE, 0, NULL }, { "osync", C_OSYNC, C_BS, NULL }, { "swab", C_SWAB, 0, NULL }, { "sync", C_SYNC, 0, NULL }, |