| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 1/3] xfstests: add helper for zero range support check |
| From: | Eric Whitney <enwlinux@xxxxxxxxx> |
| Date: | Mon, 21 Apr 2014 16:40:23 -0400 |
| Cc: | linux-ext4@xxxxxxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=yYJ5dx4q7zJ6wEfu3pBEEHWV6oZ0P7wEMP2QKSd+gmg=; b=IcWqsUvACZv81M5OD/3g50646A8/lPARTbEN2WGJY7LNmla5Xcz56N9vwkYJCoBcDl HFF2FDEzWDChlf1KzzE/aE6x9yYFBb2vQE87im1d1BPp4slw/OTr9HYM5uTxfZCGhC43 xT5thxAJLkSyVA/YpbE+hlkYmGws2yKwwckIX0Lipl7d/mme3x/PAWmJ8mvvF6DGezC7 jKwssIzYRrw7OBmaKbiScGmaJibwSxuzN2Vz/hCg8wXUdlNSDo5cRdq2PjuwdqoGFbXl KPdAKoDC0bB8U82wyVXiCBoL50TFSfgFEw8EhQzZgLAnuxw5mWBvTxy/JMSCSDwYcI3o E1ag== |
| User-agent: | Mutt/1.5.21 (2010-09-15) |
Add a helper function to verify fallocate zero range support in a style
similar to _require_xfs_io_falloc_collapse(), etc.
Signed-off-by: Eric Whitney <enwlinux@xxxxxxxxx>
---
common/rc | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/common/rc b/common/rc
index acf419b..bcda96a 100644
--- a/common/rc
+++ b/common/rc
@@ -1375,6 +1375,13 @@ _require_xfs_io_falloc_collapse()
_require_xfs_io_command "fcollapse"
}
+# check that xfs_io, kernel, and filesystem all support fallocate with zero
+# range
+_require_xfs_io_falloc_zero()
+{
+ _require_xfs_io_command "fzero"
+}
+
# check that xfs_io, kernel and filesystem support fiemap
_require_xfs_io_fiemap()
{
--
1.8.3.2
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] generic: fix check for zero range support in generic/009, Eric Whitney |
|---|---|
| Next by Date: | [PATCH v2 2/3] ext4: fix check for zero range support in ext4/001, Eric Whitney |
| Previous by Thread: | [PATCH] xfs: fix Q_XQUOTARM ioctl, Eric Sandeen |
| Next by Thread: | Re: [PATCH 1/3] xfstests: add helper for zero range support check, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |