⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ceph
All Projects
Ceph
Overview
Activity
Roadmap
Issues
Spent time
Gantt
Calendar
Wiki
Repository
Download (406 Bytes)
Bug #3520
» my_test.py
ye yuan
, 11/23/2012 02:06 AM
import
rados
import
rbd
import
pdb
import
ctypes
from
ctypes
import
*
# start python debug
pdb
.
set_trace
()
#init rados instance & connect cluster
my_rados
=
rados
.
Rados
(
conffile
=
'
/etc/ceph/ceph.conf
'
)
my_rados
.
connect
()
#open named pool
ioctx_name
=
'
test_pool_1
'
ioctx
=
my_rados
.
open_ioctx
(
ioctx_name
)
#open named image
image_name
=
'
image_3
'
image
=
rbd
.
Image
(
ioctx
,
image_name
)
« Previous
1
2
3
Next »
(1-1/3)
Loading...