[Ocfs2-devel] [patch 01/11] ocfs2: fix ocfs2_sync_file() if filesystem is readonly

Goldwyn Rodrigues rgoldwyn at suse.de
Fri Jan 24 14:02:09 PST 2014



On 01/24/2014 02:46 PM, akpm at linux-foundation.org wrote:
> From: Younger Liu <younger.liucn at gmail.com>
> Subject: ocfs2: fix ocfs2_sync_file() if filesystem is readonly
>
> If filesystem is readonly, there is no need to flush drive's caches or
> force any uncommitted transactions.

An ocfs2 filesystem can be set to read-only because of an error, in 
which case, you should return -EROFS.

Nak.


-- 
Goldwyn



More information about the Ocfs2-devel mailing list