From 4841b45bbe197e54bb7732317930e8591d51362c Mon Sep 17 00:00:00 2001 From: joerg Date: Sat, 11 Oct 1997 20:09:05 +0000 Subject: 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) --- bin/dd/args.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/dd/args.c') 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 }, -- cgit v1.1