On Tue, 29 Jul 2003, Joshua Oreman wrote:

[snip]

JO> Usually programs will manage their own sparse files; it's something hard
JO> to do at the shell.

dd is your friend.

These commands make sparse file of some ks physical and 1g logical:

VNFILE=/tmp/sparsefile
VNSZ=$((1024*1024))
dd if=/dev/zero of=${VNFILE} bs=1k count=1 seek=$((${VNSZ} - 1))


Sincerely,
D.Marck                                     [DM5020, MCK-RIPE, DM3-RIPN]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- [EMAIL PROTECTED] ***
------------------------------------------------------------------------
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to