All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] clean up blktap and change to use a dynamic major
@ 2006-09-27 16:16 Steven Rostedt
  2006-09-27 16:19 ` [PATCH 1/2] clean up blktap and remove private structure Steven Rostedt
  2006-09-27 16:21 ` [PATCH 2/2] have blktap use a dynamic major Steven Rostedt
  0 siblings, 2 replies; 5+ messages in thread
From: Steven Rostedt @ 2006-09-27 16:16 UTC (permalink / raw)
  To: xen-devel; +Cc: andrew.warfield

The following two patches are to clean up blktap.c and to make it use a 
dynamic major instead of a hardcoded one.

The first patch does two things:

1. cleans up the style to be more compatible with the Linux Style

2. gets rid of the private data structure used in filp->private_data

The private data structure only has one item and that is the idx (index 
into the tapfds descriptors).  This is allocated on open of the device 
and freed on close.  The idx element always is the same as the minor 
number.  Instead of using this (which would not be accepted into the 
kernel), I got rid of the private structure completely and instead I 
have filp->private_data point to the descriptor itself.  This cleans up 
the code a bit.


The second patch changes the blktap to use a dynamic major.  Instead of 
a hardcoded 254, the number is dynamic, and the blktapctrl now reads 
/proc/devices to find the number to use to create the node.

NOTE:  Currently and after this patch, the blktapctrl daemon creates the 
device node. This is not the way Linux should work, and this needs to be 
done by udev.  That update should be next (after I learn how udev works :)

-- Steve

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-09-28 19:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-27 16:16 [PATCH 0/2] clean up blktap and change to use a dynamic major Steven Rostedt
2006-09-27 16:19 ` [PATCH 1/2] clean up blktap and remove private structure Steven Rostedt
2006-09-28 19:05   ` Andrew Warfield
2006-09-27 16:21 ` [PATCH 2/2] have blktap use a dynamic major Steven Rostedt
2006-09-28 19:48   ` Andrew Warfield

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.