* [PATCH] dm: noflush resizing (3/3) Allow table swapping with different size
@ 2007-10-24 21:26 Jun'ichi Nomura
0 siblings, 0 replies; only message in thread
From: Jun'ichi Nomura @ 2007-10-24 21:26 UTC (permalink / raw)
To: device-mapper development; +Cc: linux-kernel
This patch removes the check for whether the loaded table
is going to change the device size and allows resizing of
the dm device suspended with 'noflush'.
Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
---
dm.c | 5 -----
1 file changed, 5 deletions(-)
Index: linux-2.6.23.work/drivers/md/dm.c
===================================================================
--- linux-2.6.23.work.orig/drivers/md/dm.c
+++ linux-2.6.23.work/drivers/md/dm.c
@@ -1288,11 +1288,6 @@ int dm_swap_table(struct mapped_device *
if (!dm_suspended(md))
goto out;
- /* without bdev, the device size cannot be changed */
- if (!md->suspended_bdev)
- if (get_capacity(md->disk) != dm_table_get_size(table))
- goto out;
-
__unbind(md);
r = __bind(md, table);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-10-24 21:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-24 21:26 [PATCH] dm: noflush resizing (3/3) Allow table swapping with different size Jun'ichi Nomura
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox