From: Sage Weil Date: Sun, 7 Nov 2010 17:07:15 +0000 (-0800) Subject: ceph: fix open for write on clustered mds X-Git-Tag: v2.6.37-rc3~2^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7421ab8041d98363edfb85955fa3b9849ffae366;p=pandora-kernel.git ceph: fix open for write on clustered mds Normally when we open a file we already have a cap, and simply update the wanted set. However, if we open a file for write, but don't have an auth cap, that doesn't work; we need to open a new cap with the auth MDS. Only reuse existing caps if we are opening for read or the existing cap is auth. Signed-off-by: Sage Weil --- Reading git-diff-tree failed