Project

General

Profile

Bug #5764

"zfs send -nv" directs output to stderr

Added by Matthew Ahrens over 4 years ago. Updated over 4 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

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

History

#1

Updated by Electric Monk over 4 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Closed

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>

Also available in: Atom PDF