From: Sage Weil Date: Tue, 19 Jul 2011 18:25:04 +0000 (-0700) Subject: ceph: fix file mode calculation X-Git-Tag: v3.0~10^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38be7a79f7c99dd01425f19ef6cf744878b6a94b;p=pandora-kernel.git ceph: fix file mode calculation open(2) must always include one of O_RDONLY, O_WRONLY, or O_RDWR. No need for any O_APPEND special case. Passing O_WRONLY|O_RDWR is undefined according to the man page, but the Linux VFS interprets this as O_RDWR, so we'll do the same. This fixes open(2) with flags O_RDWR|O_APPEND, which was incorrectly being translated to readonly. Reported-by: Fyodor Ustinov Signed-off-by: Sage Weil --- Reading git-diff-tree failed