[lvm-devel] [PATCH] pid files cleanup

Alasdair G Kergon agk at redhat.com
Fri Jul 9 13:28:32 UTC 2010


On Fri, Jul 09, 2010 at 03:20:07PM +0200, Fabio M. Di Nitto wrote:
> Ok. Unless there is more than one dm-daemon, there is no benefit to move
> it there.
 
Code like this that we want available to both dm components and LVM components
we *move* to libdevmapper.  So just take it out of lvm-file.c and put it into
libdm-file.c with a dm_ prefix on the name and the fn prototype in libdevmapper.h
in the "file/stream manipulation" section and a comment there that it's the
caller's responsibility to unlink the file before exiting.

Alasdair




More information about the lvm-devel mailing list