Skip to contentSkip to conversation

creating rbd snapshots via sysfs

DISCUSSION Josh Durgin 1 participant 1 message Jul 24, 2012

lore
Share & tools
lore
#0 lore raw

Right now the kernel still has one piece of rbd management duplicated from the rbd command line tool: snapshot creation. There's nothing special about snapshot creation that makes it advantageous to do from the kernel, so I'd like to remove the create_snap sysfs interface. That is, /sys/bus/rbd/devices/<id>/create_snap would be removed.

Does anyone rely on the sysfs interface for creating rbd snapshots? If so, how hard would it be to replace with:

rbd snap create pool/image@snap

Is there any benefit to the sysfs interface that I'm missing?

Josh