Re: [PATCH] rbd: replace the rbd sysfs interface

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Greg KH
Date: Monday, November 22, 2010 - 5:14 pm

On Fri, Nov 19, 2010 at 12:42:51PM -0800, Yehuda Sadeh Weinraub wrote:

Ick, no.


attribute group for 2 is fine.


But you need to do something with those snapshots, right?  So, why even
have "snaps" be a subdir?  Why not just make <snap_name> a struct device
with <id> being the parent, and it living on the same bus_type, but
being a different device_type (like partitions and block devices are), 


Never add kobjects to a struct device, that is showing you that
something is wrong, and that userspace really will want to get that
create/destroy event of the sub child.

sorry for the delay, was gone last weekend.

greg k-h
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] rbd: replace the rbd sysfs interface, Yehuda Sadeh, (Tue Nov 16, 5:32 pm)
Re: [PATCH] rbd: replace the rbd sysfs interface, Greg KH, (Wed Nov 17, 10:19 am)
Re: [PATCH] rbd: replace the rbd sysfs interface, Yehuda Sadeh Weinraub, (Wed Nov 17, 4:00 pm)
Re: [PATCH] rbd: replace the rbd sysfs interface, Greg KH, (Wed Nov 17, 6:30 pm)
Re: [PATCH] rbd: replace the rbd sysfs interface, Yehuda Sadeh Weinraub, (Thu Nov 18, 3:53 pm)
Re: [PATCH] rbd: replace the rbd sysfs interface, Greg KH, (Thu Nov 18, 7:08 pm)
Re: [PATCH] rbd: replace the rbd sysfs interface, Yehuda Sadeh Weinraub, (Fri Nov 19, 1:42 pm)
Re: [PATCH] rbd: replace the rbd sysfs interface, Yehuda Sadeh, (Mon Nov 22, 4:33 pm)
Re: [PATCH] rbd: replace the rbd sysfs interface, Greg KH, (Mon Nov 22, 5:14 pm)
Re: [PATCH] rbd: replace the rbd sysfs interface, Greg KH, (Mon Nov 22, 5:14 pm)
Re: [PATCH] rbd: replace the rbd sysfs interface, Sage Weil, (Mon Nov 22, 5:45 pm)
Re: [PATCH] rbd: replace the rbd sysfs interface, Yehuda Sadeh Weinraub, (Mon Nov 22, 5:48 pm)
Re: [PATCH] rbd: replace the rbd sysfs interface, Greg KH, (Mon Nov 22, 5:56 pm)
Re: [PATCH] rbd: replace the rbd sysfs interface, Greg KH, (Mon Nov 22, 5:58 pm)
Re: [PATCH] rbd: replace the rbd sysfs interface, Yehuda Sadeh Weinraub, (Mon Nov 22, 6:19 pm)
Re: [PATCH] rbd: replace the rbd sysfs interface, Yehuda Sadeh, (Tue Nov 23, 5:23 pm)
Re: [PATCH] rbd: replace the rbd sysfs interface, Sage Weil, (Wed Dec 1, 12:25 pm)
Re: [PATCH] rbd: replace the rbd sysfs interface, Greg KH, (Wed Dec 1, 12:47 pm)
Re: [PATCH] rbd: replace the rbd sysfs interface, Sage Weil, (Wed Dec 1, 1:08 pm)
Re: [PATCH] rbd: replace the rbd sysfs interface, Sage Weil, (Wed Dec 1, 5:11 pm)