]>
git.proxmox.com Git - pve-storage.git/blob - udev-rbd/ceph-rbdnamer-pve
4 NUM
=`echo $DEV | sed 's#p.*##g; s#[a-z]##g'`
5 POOL
=`cat /sys/devices/rbd/$NUM/pool`
6 CLUSTER_FSID
=`cat /sys/devices/rbd/$NUM/cluster_fsid`
8 if [ -f /sys
/devices
/rbd
/$NUM/pool_ns
]; then
9 NAMESPACE
=`cat /sys/devices/rbd/$NUM/pool_ns`
13 IMAGE
=`cat /sys/devices/rbd/$NUM/name`
14 SNAP
=`cat /sys/devices/rbd/$NUM/current_snap`
16 echo -n "/$CLUSTER_FSID/$POOL"
18 if [ -n "$NAMESPACE" ]; then
22 if [ "$SNAP" != "-" ]; then