Date: Wed, 30 Jul 2003 09:14:25 +0400 (MSD) From: Dmitry Morozovsky <marck@rinet.ru> To: Joshua Oreman <oremanj@www.get-linux.org> Cc: hackers@freebsd.org Subject: sparse files from shell [Re: file size different from ls to du] Message-ID: <20030730090934.L90518@woozle.rinet.ru> In-Reply-To: <20030729160048.GA4647@webserver> References: <200307291524.h6TFO3J06998@revolt.poohsticks.org> <20030729160048.GA4647@webserver>
next in thread | previous in thread | raw e-mail | index | archive | help
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 --- marck@rinet.ru *** ------------------------------------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030730090934.L90518>