summaryrefslogtreecommitdiff
path: root/volumes.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-04-22 14:06:56 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2008-04-22 14:06:56 -0400
commit8bfbb6b6f83975d85cf2f2018d9c08d0e6cfb500 (patch)
treefc2d28d6a05cba2f92e303f98e9fca122b26cf3b /volumes.c
parent358564890ac230ccc8af2661268a6bcb0d6ea18f (diff)
Update the Ext3 converter
The main changes in this patch are adding chunk handing and data relocation ability. In the last step of conversion, the converter relocates data in system chunk and move chunk tree into system chunk. In the rollback process, the converter remove chunk tree from system chunk and copy data back. Regards YZ ---
Diffstat (limited to 'volumes.c')
-rw-r--r--volumes.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/volumes.c b/volumes.c
index d3eeaf93..0a9ee02c 100644
--- a/volumes.c
+++ b/volumes.c
@@ -148,7 +148,8 @@ int btrfs_close_devices(struct btrfs_fs_devices *fs_devices)
list_for_each(cur, head) {
device = list_entry(cur, struct btrfs_device, dev_list);
- device->fd = 0;
+ close(device->fd);
+ device->fd = -1;
}
return 0;
}