Re: [PATCH] fs/cifs: send SMB_COM_FLUSH in cifs_fsync

From: Steve French
Date: Fri Feb 20 2009 - 15:55:54 EST


On Fri, Feb 20, 2009 at 2:51 PM, Horst Reiterer
<horst.reiterer@xxxxxxxxx> wrote:
> Hi,
>
> In contrast to the now-obsolete smbfs, cifs does not send SMB_COM_FLUSH
> in response to an explicit fsync(2) to guarantee that all volatile data
> is written to stable storage on the server side, provided the server
> honors the request (which, to my knowledge, is true for Windows and
> Samba with 'strict sync' enabled).
> This patch modifies the cifs_fsync implementation to restore the

Patch seems reasonable at first glance. Will take a look in more
detail this weekend.



--
Thanks,

Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/