public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Vlad Apostolov <vapo@sgi.com>
To: xfs-dev <xfs-dev@sgi.com>
Cc: xfs@oss.sgi.com
Subject: [REVIEW 2/2] - setting realtime and extent size hint flags via fcntl(XFS_IOC_FSSETXATTR)
Date: Wed, 06 Jun 2007 15:49:27 +1000	[thread overview]
Message-ID: <46664AE7.7070600@sgi.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 105 bytes --]

This patch updates the xfsctl(XFS_IOC_FSSETXATTR) and 
xfsctl(XFS_IOC_RESVSP64)
man page.

Regards,
Vlad

[-- Attachment #2: update_XFS_IOC_FSSETXATTR_and_XFS_IOC_RESVSP64_xfsctl_man_page --]
[-- Type: text/plain, Size: 1546 bytes --]

Index: xfs-cmds/xfsprogs/man/man3/xfsctl.3
===================================================================
--- xfs-cmds.orig/xfsprogs/man/man3/xfsctl.3
+++ xfs-cmds/xfsprogs/man/man3/xfsctl.3
@@ -251,11 +251,17 @@ and
 .BR fsx_extsize .
 The
 .B fsx_xflags
-realtime file bit and the file's extent size may be changed only
+realtime file bit
+.B XFS_XFLAG_REALTIME,
+extent hint bit
+.B XFS_XFLAG_EXTSIZE
+and the file's extent size may be changed only
 when the file is empty, except in the case of a directory where
 the extent size can be set at any time (this value is only used
 for regular file allocations, so should only be set on a directory
 in conjunction with the XFS_XFLAG_EXTSZINHERIT flag).
+The extent size has to be aligned to the filesystem block size or
+when the XFS_XFLAG_REALTIME flag is set to the realtime extent size.
 
 .TP
 .B XFS_IOC_GETBMAP
@@ -325,7 +331,15 @@ The blocks are allocated, but not zeroed
 If the XFS filesystem is configured to flag unwritten file extents,
 performance will be negatively affected when writing to preallocated space,
 since extra filesystem transactions are required to convert extent flags on
-the range of the file written.
+the range of the file written. The
+.B l_len
+field is rounded to the filesystem block size.
+For realtime files the
+.B l_len
+field is rounded to the realtime extent size. If the extent hint is set, the
+.B l_len
+is rounded to the extent hint size.
+
 If
 .IR xfs_info (8)
 reports unwritten=1, then the filesystem was made to flag unwritten extents.

                 reply	other threads:[~2007-06-06  5:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=46664AE7.7070600@sgi.com \
    --to=vapo@sgi.com \
    --cc=xfs-dev@sgi.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