]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: set a writeable client range on regular files created via MKNOD
authorSage Weil <sage@newdream.net>
Sat, 18 Dec 2010 00:33:15 +0000 (16:33 -0800)
committerSage Weil <sage@newdream.net>
Sat, 18 Dec 2010 00:52:05 +0000 (16:52 -0800)
commit7d33830af56af3dfab94e68078e0f17722cad367
treeb9ddcae347bf2ea272be2dbce7ced1795dfc39c6
parentd64616b95bcec74765bce9c38a9f8fe1d3a40284
mds: set a writeable client range on regular files created via MKNOD

If the client reexports ceph via nfs, file creations come through as
a MKNOD followed by OPEN.  If it's a MKNOD on a normal file, assume that
the client will probably write to it and set them up with the caps and
client_range to do so without asking us again first.

Signed-off-by: Sage Weil <sage@newdream.net>
src/mds/Server.cc