+ ret = btrfs_prepare_device(fddstdev, dstdev, 1, &dstdev_block_count, 0,
+ &mixed, 0);
close(fddstdev);
+ if (ret)
+ goto leave_with_error;
fddstdev = -1;
yeah moved this 3 lines up. thanks.
You change the code to call close(fddstdev) twice.
[...]
+zero_dev_error:
+ if (ret) {
+ ret < 0 ?
+ fprintf(stderr, "ERROR: failed to zero device start '%s' -
%s\n",
+ file, strerror(-ret)) :
+ fprintf(stderr, "ERROR: failed to zero device start '%s' -
%d\n",
+ file, ret);
This is not funny.
hmm. I am not sure what you mean ?
Thanks, Anand
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html