xfs
[Top] [All Lists]

[PATCH 0/2] Add FALLOC_FL_ZERO_RANGE to fallocate

To: linux-kernel@xxxxxxxxxxxxxxx
Subject: [PATCH 0/2] Add FALLOC_FL_ZERO_RANGE to fallocate
From: Paolo Bonzini <pbonzini@xxxxxxxxxx>
Date: Tue, 12 Jun 2012 17:36:02 +0200
Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx>, xfs@xxxxxxxxxxx, linux-fsdevel@xxxxxxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer; bh=C/cYMprnnLofJS5jkHIqpYNiJH1CavjVi5EOAmtTXfo=; b=bld/N8g1SDt77XUHQiP2sQjkGs+wO4zQwWBhb56SdBEtoFCzWWF+uZ78wXWdUYxSb6 i0N8eUpaPwrGrCSu6EbEkIDdAge5X4rghWa65lhfb64JYcc2+NHkbSnip6qZRa8kPMHa Fu+2Q1qNbFI795iWMIrcbp/e3WBrvh4SwODSD/EzUT8bzYJ82aluEreSEkDJUTCIlQaZ Wm7k9DpJ/fuX2NZ34Ci1ZjhYU/Ifogv5/6fHYGycXbfzf6pAmP+ZduD1yKiuKhYkfpBy tJ1CVKnnf38PJbXnbuVa3N9qfs+q/lRwJ7byT7OdZI6WoDFujfiNO0+qSIVed3AXP0rk yOeQ==
Sender: Paolo Bonzini <paolo.bonzini@xxxxxxxxx>
This patch adds the FALLOC_FL_ZERO_RANGE operation mode to fallocate,
resembling the similar XFS ioctl.  The new mode can be used with
or without FALLOC_FL_KEEP_SIZE, but of course not together with
FALLOC_FL_PUNCH_HOLE.

Other filesystems can then provide the same functionality with a
standard system call.

Paolo
---
 fs/open.c              |    8 +++++++-
 fs/xfs/xfs_file.c      |   34 +++++++++++++++++++++++-----------
 include/linux/falloc.h |    1 +
 3 files changed, 32 insertions(+), 13 deletions(-)

<Prev in Thread] Current Thread [Next in Thread>