Re: Reserving blocks without actually creating files
- From: John Reiser <jreiserfl@xxxxxxxxxxx>
- Date: Wed, 25 Aug 2010 16:10:20 -0700
Is it possible to mark blocks on a filesystem as used without actually[snip]
putting anything into those blocks? It is like creating a sparse file
but actually putting all the blocks aside.
So is there an easy way to "fake" that the filesystem is already
pretty full without actually copying 10TB of data?
If the operating system and file system are new enough to support
fallocate(), then: create a file for writing (thus empty), fallocate(),
sleep() without close()ing the file descriptor. There may be limits,
so you might have to use many files. Actual space exhaustion might
revoke previous unused reservations, but it's worth a try.
--
.
- Follow-Ups:
- Re: Reserving blocks without actually creating files
- From: Vilmos Soti
- Re: Reserving blocks without actually creating files
- From: Grant
- Re: Reserving blocks without actually creating files
- References:
- Reserving blocks without actually creating files
- From: Vilmos Soti
- Reserving blocks without actually creating files
- Prev by Date: Reserving blocks without actually creating files
- Next by Date: Re: Reserving blocks without actually creating files
- Previous by thread: Reserving blocks without actually creating files
- Next by thread: Re: Reserving blocks without actually creating files
- Index(es):
Relevant Pages
|