* Re: [Ocfs2-devel] [PATCH 1/2] fiemap: Add new extent flag FIEMAP_EXTENT_SHARED [not found] ` <1256173509-2831-2-git-send-email-sunil.mushran@oracle.com> @ 2009-10-23 18:00 ` Mark Fasheh 2009-10-24 18:30 ` Jamie Lokier 0 siblings, 1 reply; 4+ messages in thread From: Mark Fasheh @ 2009-10-23 18:00 UTC (permalink / raw) To: Sunil Mushran; +Cc: ocfs2-devel, linux-fsdevel, linux-kernel On Wed, Oct 21, 2009 at 06:05:08PM -0700, Sunil Mushran wrote: > Patch adds flag FIEMAP_EXTENT_SHARED to denote extents that are > shared with other inodes. This looks pretty sane to me. Thanks Sunil. > Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com> Acked-by: Mark Fasheh <mfasheh@suse.com> --Mark -- Mark Fasheh ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Ocfs2-devel] [PATCH 1/2] fiemap: Add new extent flag FIEMAP_EXTENT_SHARED 2009-10-23 18:00 ` [Ocfs2-devel] [PATCH 1/2] fiemap: Add new extent flag FIEMAP_EXTENT_SHARED Mark Fasheh @ 2009-10-24 18:30 ` Jamie Lokier 2009-10-26 17:29 ` Sunil Mushran 0 siblings, 1 reply; 4+ messages in thread From: Jamie Lokier @ 2009-10-24 18:30 UTC (permalink / raw) To: Mark Fasheh; +Cc: Sunil Mushran, ocfs2-devel, linux-fsdevel, linux-kernel Mark Fasheh wrote: > On Wed, Oct 21, 2009 at 06:05:08PM -0700, Sunil Mushran wrote: > > Patch adds flag FIEMAP_EXTENT_SHARED to denote extents that are > > shared with other inodes. > > This looks pretty sane to me. Thanks Sunil. It might be better to have a flag FIEMAP_EXTENT_NOT_SHARED. Apps which need to know the data is not shared can't safely check !(flags & FIEMAP_EXTENT_SHARED) because of old kernels which don't set the flag. -- Jamie ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Ocfs2-devel] [PATCH 1/2] fiemap: Add new extent flag FIEMAP_EXTENT_SHARED 2009-10-24 18:30 ` Jamie Lokier @ 2009-10-26 17:29 ` Sunil Mushran 2009-10-26 19:29 ` Brad Boyer 0 siblings, 1 reply; 4+ messages in thread From: Sunil Mushran @ 2009-10-26 17:29 UTC (permalink / raw) To: Jamie Lokier; +Cc: Mark Fasheh, ocfs2-devel, linux-fsdevel, linux-kernel Jamie Lokier wrote: > It might be better to have a flag FIEMAP_EXTENT_NOT_SHARED. > > Apps which need to know the data is not shared can't safely check > !(flags & FIEMAP_EXTENT_SHARED) because of old kernels which don't set > the flag. I'm probably not understanding your point. Won't the older kernels not set FIEMAP_EXTENT_NOT_SHARED too. If this is important, we could always add this flag in the stable kernel trees. Both sharing of extents and fiemap are relatively new to the kernel. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Ocfs2-devel] [PATCH 1/2] fiemap: Add new extent flag FIEMAP_EXTENT_SHARED 2009-10-26 17:29 ` Sunil Mushran @ 2009-10-26 19:29 ` Brad Boyer 0 siblings, 0 replies; 4+ messages in thread From: Brad Boyer @ 2009-10-26 19:29 UTC (permalink / raw) To: Sunil Mushran Cc: Jamie Lokier, Mark Fasheh, ocfs2-devel, linux-fsdevel, linux-kernel On Mon, Oct 26, 2009 at 10:29:36AM -0700, Sunil Mushran wrote: > Jamie Lokier wrote: > >It might be better to have a flag FIEMAP_EXTENT_NOT_SHARED. > > > >Apps which need to know the data is not shared can't safely check > >!(flags & FIEMAP_EXTENT_SHARED) because of old kernels which don't set > >the flag. > > I'm probably not understanding your point. Won't the older kernels not set > FIEMAP_EXTENT_NOT_SHARED too. > > If this is important, we could always add this flag in the stable kernel > trees. Both sharing of extents and fiemap are relatively new to the kernel. I think the concern is that we are going to be getting "wrong" data when using an old kernel, and the question is which type of error is safer. If the flag is FIEMAP_EXTENT_SHARED, then programs running against an old kernel may think that shared extents are not shared. If the flag is instead FIEMAP_EXTENT_NOT_SHARED, then the program may think an extent is shared when it is not. The real question is which information is more important, to know that the extent is shared or if the extent definitely is not shared. I would think that having FIEMAP_EXTENT_SHARED is more consistent with the rest of the defined bits, particularly since the program couldn't actually do anything that relies completely on this data anyway since it could change at any moment. It's not like the results of a map are static. Brad Boyer flar@allandria.com ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-10-26 19:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1256173509-2831-1-git-send-email-sunil.mushran@oracle.com>
[not found] ` <1256173509-2831-2-git-send-email-sunil.mushran@oracle.com>
2009-10-23 18:00 ` [Ocfs2-devel] [PATCH 1/2] fiemap: Add new extent flag FIEMAP_EXTENT_SHARED Mark Fasheh
2009-10-24 18:30 ` Jamie Lokier
2009-10-26 17:29 ` Sunil Mushran
2009-10-26 19:29 ` Brad Boyer
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox