running on ubuntu with nginx + php-fpm
<?php
$rados = rados_create('admin');
rados_conf_read_file($rados, '/etc/ceph/ceph.conf');
rados_conf_set($rados, 'keyring','/etc/ceph/ceph.client.admin.keyring');
$temp = rados_conf_get($rados, "rados_osd_op_timeout");
echo "osd ";
echo $temp;
$temp = rados_conf_get($rados, "client_mount_timeout");
echo "clinet " ;
echo $temp;
$temp = rados_conf_get($rados, "rados_mon_op_timeout");
echo "mon " ;
echo $temp;
$err = rados_connect($rados);
$ioRados = rados_ioctx_create($rados,'dev_whereis');
$pieceSize = rados_stat($ioRados,'TEMP_object');
var_dump($pieceSize);
$piece = rados_read($ioRados, 'TEMP_object',$pieceSize['psize'] ,0);
echo $piece;
?>
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com