cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Jan Kara <jack@suse.cz>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH 1/6] fs: add hole punching to fallocate
Date: Tue, 9 Nov 2010 22:53:57 +0100	[thread overview]
Message-ID: <20101109215357.GI4936@quack.suse.cz> (raw)
In-Reply-To: <20101109214147.GK3099@thunk.org>

On Tue 09-11-10 16:41:47, Ted Ts'o wrote:
> On Tue, Nov 09, 2010 at 03:42:42PM +1100, Dave Chinner wrote:
> > Implementation is up to the filesystem. However, XFS does (b)
> > because:
> > 
> > 	1) it was extremely simple to implement (one of the
> > 	   advantages of having an exceedingly complex allocation
> > 	   interface to begin with :P)
> > 	2) conversion is atomic, fast and reliable
> > 	3) it is independent of the underlying storage; and
> > 	4) reads of unwritten extents operate at memory speed,
> > 	   not disk speed.
> 
> Yeah, I was thinking that using a device-style TRIM might be better
> since future attempts to write to it won't require a separate seek to
> modify the extent tree.  But yeah, there are a bunch of advantages of
> simply mutating the extent tree.
> 
> While we're on the subject of changes to fallocate, what do people
> think of FALLOC_FL_EXPOSE_OLD_DATA, which requires either root
> privileges or (if capabilities are in use) CAP_DAC_OVERRIDE &&
> CAP_MAC_OVERRIDE && CAP_SYS_ADMIN.  This would allow a trusted process
> to fallocate blocks with the extent already marked initialized.  I've
> had two requests for such functionality for ext4 already.  
> 
> (Take for example a trusted cluster filesystem backend that checks the
> object checksum before returning any data to the user; and if the
> check fails the cluster file system will try to use some other replica
> stored on some other server.)
  Hum, could you elaborate a bit? I fail to see how above fallocate() flag
could be used to help solving this problem... Just curious...

								Honza
-- 
Jan Kara <jack@suse.cz>
SUSE Labs, CR



       reply	other threads:[~2010-11-09 21:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1289248327-16308-1-git-send-email-josef@redhat.com>
     [not found] ` <20101109011222.GD2715@dastard>
     [not found]   ` <20101109033038.GF3099@thunk.org>
     [not found]     ` <20101109044242.GH2715@dastard>
     [not found]       ` <20101109214147.GK3099@thunk.org>
2010-11-09 21:53         ` Jan Kara [this message]
     [not found] <1289840723-3056-1-git-send-email-josef@redhat.com>
     [not found] ` <1289840723-3056-2-git-send-email-josef@redhat.com>
2010-11-16 11:16   ` [Cluster-devel] [PATCH 1/6] fs: add hole punching to fallocate Jan Kara
2010-11-16 11:43     ` Jan Kara
     [not found]       ` <20101116125249.GB31957@dhcp231-156.rdu.redhat.com>
2010-11-16 13:14         ` Jan Kara
     [not found] <1290044780-2902-1-git-send-email-josef@redhat.com>
     [not found] ` <1290044780-2902-2-git-send-email-josef@redhat.com>
2010-11-18 23:43   ` Jan Kara

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=20101109215357.GI4936@quack.suse.cz \
    --to=jack@suse.cz \
    /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;
as well as URLs for NNTP newsgroup(s).