Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Jul 2003 00:09:22 +0200
From:      Francesco Casadei <fcasadei@inwind.it>
To:        Rus Foster <rghf@fsck.me.uk>
Cc:        questions@freebsd.org
Subject:   Re: Quick file allocation
Message-ID:  <20030724220922.GA22251@goku.kasby>
In-Reply-To: <20030724130841.J68935@thor.65535.net>
References:  <20030724130841.J68935@thor.65535.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030724220922.GA22251>