[DRBD-cvs] r1869 - branches/drbd-0.7/drbd
www-data
www-data at linbit.com
Thu Jul 14 12:11:20 CEST 2005
Author: phil
Date: 2005-07-14 12:11:19 +0200 (Thu, 14 Jul 2005)
New Revision: 1869
Modified:
branches/drbd-0.7/drbd/drbd_fs.c
Log:
While resizing we need to empty the AL if we shrinked the size.
Otherwise we might will do stupid things in drbd_al_to_on_disk_bm()
later.
Modified: branches/drbd-0.7/drbd/drbd_fs.c
===================================================================
--- branches/drbd-0.7/drbd/drbd_fs.c 2005-07-14 09:30:04 UTC (rev 1868)
+++ branches/drbd-0.7/drbd/drbd_fs.c 2005-07-14 10:11:19 UTC (rev 1869)
@@ -88,9 +88,13 @@
if ( md_moved ) {
WARN("Moving meta-data.\n");
D_ASSERT(mdev->md_index == -1);
+ }
+
+ if( mdev->la_size < la_size || md_moved) {
drbd_al_shrink(mdev); // All extents inactive.
drbd_bm_write(mdev); // write bitmap
}
+
if ( la_size_changed || md_moved ) {
// Write mdev->la_size to [possibly new position on] disk.
drbd_md_write(mdev);
More information about the drbd-cvs
mailing list