Actions
Bug #5764
closed"zfs send -nv" directs output to stderr
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
Updated by Electric Monk over 7 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
git commit dc5f28a3c341db7c241bba77ddc109c141072f27
commit dc5f28a3c341db7c241bba77ddc109c141072f27 Author: Manoj Joseph <manoj.joseph@delphix.com> Date: 2015-04-08T18:14:25.000Z 5764 "zfs send -nv" directs output to stderr Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Paul Dagnelie <paul.dagnelie@delphix.com> Reviewed by: Basil Crow <basil.crow@delphix.com> Reviewed by: Steven Hartland <killing@multiplay.co.uk> Reviewed by: Bayard Bell <buffer.g.overflow@gmail.com> Approved by: Dan McDonald <danmcd@omniti.com>
Actions