]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: fix ager missing open() arg
authorSage Weil <sage@newdream.net>
Sat, 10 Jan 2009 05:21:49 +0000 (21:21 -0800)
committerSage Weil <sage@newdream.net>
Sat, 10 Jan 2009 05:21:49 +0000 (21:21 -0800)
src/osd/Ager.cc

index 8599225963b5a6f6f16514ea97660d1e0e8b66c2..e0deaea465286119a9695a383c4c59ceea563a03 100644 (file)
@@ -330,7 +330,7 @@ void Ager::save_freelist(int el)
   bufferlist bl;
   ((Ebofs*)store)->_export_freelist(bl);
   ::unlink(s);
-  int fd = ::open(s, O_CREAT|O_WRONLY);
+  int fd = ::open(s, O_CREAT|O_WRONLY, 0644);
   ::fchmod(fd, 0644);
   ::write(fd, bl.c_str(), bl.length());
   ::close(fd);