Exemple #1
0
 /**
  * @depends testRadosRead
  */
 public function testRadosRemove($info)
 {
     $r = rados_remove($info['ioctx'], $info['oid']);
     $this->assertTrue($r);
     return $info;
 }
Exemple #2
0
 public function remove($oid)
 {
     return \rados_remove($this->_ioctx, $oid);
 }
Exemple #3
0
 /**
  * @param string $path
  * @return bool
  * @throws RadosException
  */
 public function unlink($path)
 {
     $openedPath = null;
     if (!$this->stream_open($path, 'r', null, $openedPath)) {
         return false;
     }
     $ret = \rados_remove($this->ioctx, $this->stat['oid']);
     if (!$ret) {
         throw new IOException("Could not delete '" . $this->stat['oid'] . "'");
     }
     $this->stream_close();
     return true;
 }