FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Device-mapper Development

 
 
LinkBack Thread Tools
 
Old 03-20-2009, 02:11 PM
Jonathan Brassow
 
Default dm table cleanup warning message

Patch name: dm-table-cleanup-warning-message.patch

Adjust warning message, since there is no dm_table_remove_device
which the message references. I found it also helpful to get
a message about /which/ device was not dm_put_device'ed.

Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>

Index: linux-2.6/drivers/md/dm-table.c
================================================== =================
--- linux-2.6.orig/drivers/md/dm-table.c
+++ linux-2.6/drivers/md/dm-table.c
@@ -299,9 +299,11 @@ void dm_table_destroy(struct dm_table *t

/* free the device list */
if (t->devices.next != &t->devices) {
- DMWARN("devices still present during destroy: "
- "dm_table_remove_device calls missing");
+ struct dm_dev_internal *dd;

+ DMWARN("dm_put_device calls missing for:");
+ list_for_each_entry(dd, &t->devices, list)
+ DMWARN(" - %s", dd->dm_dev.name);
free_devices(&t->devices);
}


--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
 

Thread Tools




All times are GMT. The time now is 06:06 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org