]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: zero out the layout in handle_client_setlayout
authorGreg Farnum <gregf@hq.newdream.net>
Thu, 23 Sep 2010 23:36:37 +0000 (16:36 -0700)
committerGreg Farnum <gregf@hq.newdream.net>
Mon, 4 Oct 2010 17:42:36 +0000 (10:42 -0700)
Could have led to an invalid layout by mistake.

src/mds/Server.cc

index ea9f03ec7a744169eddc32d509a631e6b5472bd1..279d9f01247eaeaa201f0290ada275a0f7c7d61a 100644 (file)
@@ -2924,6 +2924,7 @@ void Server::handle_client_setlayout(MDRequest *mdr)
   // validate layout
   // FIXME: only set striping parameters, for now.
   ceph_file_layout layout;
+  memset(&layout, 0, sizeof(layout));
 
   if (req->head.args.setlayout.layout.fl_object_size > 0)
     layout.fl_object_size = req->head.args.setlayout.layout.fl_object_size;