Skip to content

Commit 6797ce7

Browse files
koraynilayadam900710
authored andcommitted
btrfs-progs: subvolume show: fix "Creation time" value being shown for "Send time" too
The send time would be printed before updating tstr, which is previously used to store the string for the subvol creation time, thus showing an incorrect send time. Signed-off-by: koraynilay <koray.fra@gmail.com>
1 parent 873052b commit 6797ce7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cmds/subvolume.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1402,7 +1402,6 @@ static void print_subvolume_show_text(const struct btrfs_util_subvolume_info *su
14021402
pr_default("\tFlags: \t\t\t-\n");
14031403

14041404
pr_default("\tSend transid: \t\t%" PRIu64 "\n", subvol->stransid);
1405-
pr_default("\tSend time: \t\t%s\n", tstr);
14061405
if (subvol->stime.tv_sec) {
14071406
struct tm tm;
14081407

@@ -1411,6 +1410,8 @@ static void print_subvolume_show_text(const struct btrfs_util_subvolume_info *su
14111410
} else {
14121411
strcpy(tstr, "-");
14131412
}
1413+
pr_default("\tSend time: \t\t%s\n", tstr);
1414+
14141415
pr_default("\tReceive transid: \t%" PRIu64 "\n", subvol->rtransid);
14151416
if (subvol->rtime.tv_sec) {
14161417
struct tm tm;

0 commit comments

Comments
 (0)