From owner-freebsd-questions@FreeBSD.ORG Thu Jul 24 15:10:09 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AE72537B401 for ; Thu, 24 Jul 2003 15:10:09 -0700 (PDT) Received: from mail-2.tiscali.it (mail-2.tiscali.it [195.130.225.148]) by mx1.FreeBSD.org (Postfix) with ESMTP id C206043F3F for ; Thu, 24 Jul 2003 15:10:08 -0700 (PDT) (envelope-from fcasadei@inwind.it) Received: from goku.kasby (217.133.208.118) by mail-2.tiscali.it (6.7.019) id 3F1E205400112313 for questions@freebsd.org; Fri, 25 Jul 2003 00:10:07 +0200 Received: (qmail 22340 invoked by uid 1000); 24 Jul 2003 22:09:22 -0000 Date: Fri, 25 Jul 2003 00:09:22 +0200 From: Francesco Casadei To: Rus Foster Message-ID: <20030724220922.GA22251@goku.kasby> References: <20030724130841.J68935@thor.65535.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6c2NcOVqGQ03X4Wi" Content-Disposition: inline In-Reply-To: <20030724130841.J68935@thor.65535.net> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.8-STABLE i386 cc: questions@freebsd.org Subject: Re: Quick file allocation X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jul 2003 22:10:10 -0000 --6c2NcOVqGQ03X4Wi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 24, 2003 at 01:11:14PM -0700, Rus Foster wrote: > Hi All, > Just wondered on FreeBSD is there a way that I can quickly create a file. > When I mean quick I basically mean that the system just says that ok this > file is allocataed inodes foo-bar rather than having to use mkfile 1G > filename. Something like XFS's holey file support >=20 > Rgds >=20 > Rus >=20 >=20 > --=20 > www: http://jvds.com | Virtual Servers from just $15/mo > MSNM: support@jvds.com | Totally Customizable Technology > e: rghf@jvds.com | FreeBSD & Linux > 10% donation to FreeBSD.org on each purchase > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" > end of the original message I'm not sure I've understood you completly. Anyway, to create files of arbitrary size you can use the program truncate. For example, to create a 1GB file named test with truncate: # truncate -s1G test # ls -l test=20 -rw-r--r-- 1 root wheel 1073741824 Jul 24 23:55 test For more information: read truncate(1) manpage. You may also want to take a look at dd (read dd(1) manpage). Francesco Casadei --=20 You can download my public key from http://digilander.libero.it/fcasadei/ or retrieve it from a keyserver (pgpkeys.mit.edu, wwwkeys.pgp.net, ...) Key fingerprint is: 1671 9A23 ACB4 520A E7EE 00B0 7EC3 375F 164E B17B --6c2NcOVqGQ03X4Wi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/IFkRfsM3XxZOsXsRAnwbAJ4pSgqO38uUVwhBWIKJbBcBQgh98QCghl55 cj6IDjXFRzyRF3Gy53AxJPM= =xecv -----END PGP SIGNATURE----- --6c2NcOVqGQ03X4Wi--