ceph: fix open for write on clustered mds
authorSage Weil <sage@newdream.net>
Sun, 7 Nov 2010 17:07:15 +0000 (09:07 -0800)
committerSage Weil <sage@newdream.net>
Sun, 7 Nov 2010 17:07:15 +0000 (09:07 -0800)
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 <sage@newdream.net>

No differences found