Project

General

Profile

Actions

Bug #5764

closed

"zfs send -nv" directs output to stderr

Added by Matthew Ahrens over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Category:
zfs - Zettabyte File System
Start date:
2015-03-28
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

When doing a dry run for zfs send using the command "zfs send -nv <snapshot>" , the output is directed to stderr. The output should ideally go to stdout.

Steps below would produce this.

When stdout is captured:
delphix@delphix:~/zfs-fixes$ sudo zfs send -nv test/foo@1 > csdf.txt
send from @ to test/foo@1 estimated size is 20.1M
total estimated size is 20.1M
delphix@delphix:~/zfs-fixes$ cat csdf.txt

When stderr is captured:
delphix@delphix:~/zfs-fixes$ sudo zfs send -nv test/foo@1 2> bsdf.txt
delphix@delphix:~/zfs-fixes$ cat bsdf.txt
send from @ to test/foo@1 estimated size is 20.1M
total estimated size is 20.1M

Actions

Also available in: Atom PDF