public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Nathan Scott <nathans@aconex.com>
To: Green Guy <greentech3000@gmail.com>
Cc: xfs@oss.sgi.com
Subject: Re: Possible to preallocate files that always begin/end on stripe unit/width?
Date: Sat, 4 Sep 2010 07:19:51 +1000 (EST)	[thread overview]
Message-ID: <1211297770.647781283548791361.JavaMail.root@mail-au.aconex.com> (raw)
In-Reply-To: <AANLkTi=NhOdoX0VU7fyvYpgM+mbN8b3vC7QrkKrcnDk=@mail.gmail.com>


----- "Green Guy" <greentech3000@gmail.com> wrote:

> ... 
> I know that XFS metadata such as the log, AG info, etc also need to be
> accounted for, but I am not sure the best way to determine how much
> space they will take.
> 
> ...
> How can I determine the correct file size and preallocate them in a
> way where they always begin/end on stripe unit/width taking the
> filesystem overhead into account?
> Note: the log needs to stay on the same fs.
> 

There's no way to make a guaranteed aligned/sized allocation, but you
can ask for a "best effort" by using the sizing information returned
from the XFS_IOC_FSGEOMETRY syscall (via xfsctl).

cheers.

-- 
Nathan

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

      reply	other threads:[~2010-09-03 21:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-03 20:12 Possible to preallocate files that always begin/end on stripe unit/width? Green Guy
2010-09-03 21:19 ` Nathan Scott [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1211297770.647781283548791361.JavaMail.root@mail-au.aconex.com \
    --to=nathans@aconex.com \
    --cc=greentech3000@gmail.com \
    --cc=xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox