linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Fwd: [PATCH 4/4] cifs: flush data on any setattr
       [not found]   ` <524f69650903261952o6dd8497bnc8b10ae0a41721d4@mail.gmail.com>
@ 2009-03-27  2:53     ` Steve French
  0 siblings, 0 replies; only message in thread
From: Steve French @ 2009-03-27  2:53 UTC (permalink / raw)
  To: linux-fsdevel

---------- Forwarded message ----------
From: Steve French <smfrench@gmail.com>
Date: Thu, Mar 26, 2009 at 9:52 PM
Subject: Re: [PATCH 4/4] cifs: flush data on any setattr
To: Jeff Layton <jlayton@redhat.com>
Cc: linux-cifs-client@lists.samba.org


On Thu, Mar 26, 2009 at 12:35 PM, Jeff Layton <jlayton@redhat.com> wrote:
> We already flush all the dirty pages for an inode before doing
> ATTR_SIZE and ATTR_MTIME changes. There's another problem though -- if
> we change the mode so that the file becomes read-only then we may not
> be able to write data to it after a reconnect.
>
> Fix this by just going back to flushing all the dirty data on any
> setattr call.
> +        * BB: This should be smarter. Why bother flushing pages that
> +        * will be truncated anyway? Also, should we error out here if
> +        * the flush returns error?
> +        */

Merged the patch into cifs-2.6.git, but Jeff brings up an interesting
point about what really happens when we are shrinking the file size
(truncate) here ... is it possible that the vfs will flush pages that
are going to be thrown away



--
Thanks,

Steve



-- 
Thanks,

Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-27  2:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1238088937-10994-1-git-send-email-jlayton@redhat.com>
     [not found] ` <1238088937-10994-5-git-send-email-jlayton@redhat.com>
     [not found]   ` <524f69650903261952o6dd8497bnc8b10ae0a41721d4@mail.gmail.com>
2009-03-27  2:53     ` Fwd: [PATCH 4/4] cifs: flush data on any setattr Steve French

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).