User: Password:
Subscribe / Log in / New account

Add FALLOC_FL_ZERO_RANGE to fallocate

From:  Paolo Bonzini <>
Subject:  [PATCH 0/2] Add FALLOC_FL_ZERO_RANGE to fallocate
Date:  Tue, 12 Jun 2012 17:36:02 +0200
Message-ID:  <>
Cc:  Al Viro <>,,
Archive-link:  Article

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

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

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

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds