Skip to contentSkip to conversation

Patch "rbd: kill create_snap sysfs entry" has been added to the 3.4-stable tree

PATCH [email protected] 1 participant 1 message Jan 15, 2013

Subsystems (2)
lore
Share & tools
lore

[email protected]

author Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

rbd: kill create_snap sysfs entry

to the 3.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
rbd-kill-create_snap-sysfs-entry.patch
and it can be found in the queue-3.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

From cd9155deb01c86a31836e9a963c208666f5d5abc Mon Sep 17 00:00:00 2001
From: Alex Elder <[email protected]>
Date: Fri, 10 Aug 2012 13:12:10 -0700
Subject: rbd: kill create_snap sysfs entry

From: Alex Elder <[email protected]>

Josh proposed the following change, and I don't think I could explain it any better than he did:

From: Josh Durgin <[email protected]>
Date: Tue, 24 Jul 2012 14:22:11 -0700
To: ceph-devel <[email protected]>
Message-ID: <[email protected]>
From: Josh Durgin <[email protected]>

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

This patch implements this proposal, removing the code that implements the "snap_create" sysfs interface for rbd images. As a result, quite a lot of other supporting code goes away.

[[email protected]: commented out rbd_req_sync_exec() to avoid warning]

(based on commit 02cdb02ceab1f3dd9ac2bc899fc51f0e0e744782)

---
 Documentation/ABI/testing/sysfs-bus-rbd |    6 -
 drivers/block/rbd.c                     |  165 --------------------------------
 2 files changed, 2 insertions(+), 169 deletions(-)
Documentation/ABI/testing/sysfs-bus-rbd +0 -6
@@ -51,12 +51,6 @@ current_snap
 
 	The current snapshot for which the device is mapped.
 
-create_snap
-
-	Create a snapshot:
-
-	 $ echo <snap-name> > /sys/bus/rbd/devices/<dev-id>/snap_create
-
 snap_*
 
 	A directory per each snapshot
drivers/block/rbd.c +2 -163

207 lines not on this page · raw message

Patches currently in stable-queue which might be from [email protected] are

queue-3.4/libceph-remove-osdtimeout-option.patch queue-3.4/rbd-use-reference-counting-for-the-snap-context.patch queue-3.4/libceph-move-linger-requests-sooner-in-kick_requests.patch queue-3.4/ceph-tolerate-and-warn-on-extraneous-dentry-from-mds.patch queue-3.4/ceph-don-t-reference-req-after-put.patch queue-3.4/ceph-close-old-con-before-reopening-on-mds-reconnect.patch queue-3.4/libceph-fix-osdmap-decode-error-paths.patch queue-3.4/libceph-fix-protocol-feature-mismatch-failure-path.patch queue-3.4/libceph-warn-don-t-bug-on-unexpected-connection-states.patch queue-3.4/rbd-do-not-allow-remove-of-mounted-on-image.patch queue-3.4/libceph-socket-can-close-in-any-connection-state.patch queue-3.4/libceph-init-osd-o_node-in-create_osd.patch queue-3.4/libceph-init-event-node-in-ceph_osdc_create_event.patch queue-3.4/libceph-don-t-use-rb_init_node-in-ceph_osdc_alloc_request.patch queue-3.4/rbd-return-errors-for-mapped-but-deleted-snapshot.patch queue-3.4/rbd-remove-linger-unconditionally.patch queue-3.4/ceph-propagate-layout-error-on-osd-request-creation.patch queue-3.4/rbd-kill-create_snap-sysfs-entry.patch queue-3.4/rbd-drop-dev-reference-on-error-in-rbd_open.patch queue-3.4/libceph-avoid-using-freed-osd-in-__kick_osd_requests.patch queue-3.4/rbd-set-image-size-when-header-is-updated.patch queue-3.4/rbd-only-reset-capacity-when-pointing-to-head.patch queue-3.4/libceph-always-reset-osds-when-kicking.patch queue-3.4/rbd-fix-bug-in-rbd_dev_id_put.patch queue-3.4/libceph-report-connection-fault-with-warning.patch queue-3.4/rbd-add-read_only-rbd-map-option.patch queue-3.4/libceph-unlock-unprocessed-pages-in-start_read-error-path.patch queue-3.4/rbd-bug-on-invalid-layout.patch queue-3.4/libceph-register-request-before-unregister-linger.patch queue-3.4/rbd-kill-notify_timeout-option.patch queue-3.4/rbd-expose-the-correct-size-of-the-device-in-sysfs.patch queue-3.4/rbd-send-header-version-when-notifying.patch