]>
git.proxmox.com Git - ceph.git/blob - ceph/src/ceph-rbdnamer
4 NUM
=`echo $DEV | sed 's#p.*##g; s#[a-z]##g'`
5 POOL
=`cat /sys/devices/rbd/$NUM/pool`
6 if [ -f /sys
/devices
/rbd
/$NUM/pool_ns
]; then
7 NAMESPACE
=`cat /sys/devices/rbd/$NUM/pool_ns`
11 IMAGE
=`cat /sys/devices/rbd/$NUM/name`
12 SNAP
=`cat /sys/devices/rbd/$NUM/current_snap`
15 if [ -n "$NAMESPACE" ]; then
19 if [ "$SNAP" != "-" ]; then