Message ID | 55837315.90109@cn.fujitsu.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Fri, Jun 19, 2015 at 09:40:37AM +0800, Qu Wenruo wrote: > Just a little tip to take less time on the bug: > - uuid_parse((const char*)fs_info->fsid, old_fsid); > + memcpy(old_fsid, fs_info->fsid, BTRFS_UUID_SIZE); Thanks, that's what I did. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
--- a/btrfstune.c +++ b/btrfstune.c @@ -349,7 +349,7 @@ static int change_uuid(struct btrfs_fs_info *fs_info, const char *new_fsid_str) fs_info->new_fsid = new_fsid; fs_info->new_chunk_tree_uuid = new_chunk_id; - uuid_parse((const char*)fs_info->fsid, old_fsid); + memcpy(old_fsid, fs_info->fsid, BTRFS_UUID_SIZE); uuid_unparse_upper(old_fsid, uuid_buf); printf("Current fsid: %s\n", uuid_buf);