diff options
Diffstat (limited to 'volumes.c')
-rw-r--r-- | volumes.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |