1Z0-822 · Question #83
Which is the result of the following command? # zfs send -i dpool/sales/qrreports@qtrreport dpool/sales/qrreports@mth3qtrreport
The correct answer is A. An error message will be sent to standard error. Option A is correct because zfs send always writes its output to stdout, and when stdout is connected to a terminal (no pipe or redirection operator used here), ZFS detects this and refuses to dump raw binary stream data to the terminal - instead sending an error message to…
Question
Which is the result of the following command? # zfs send -i dpool/sales/qrreports@qtrreport dpool/sales/qrreports@mth3qtrreport
Options
- AAn error message will be sent to standard error.
- BThe dpool/sales/qrreports@qtrreport snapshot is saved to disk.
- CThe dpool/sales/qrreports@mth3qtrreport snapshot is saved to disk
- DThe difference between the First snapshot and the second snapshot will be written to disk
How the community answered
(37 responses)- A78% (29)
- B5% (2)
- C3% (1)
- D14% (5)
Explanation
Option A is correct because zfs send always writes its output to stdout, and when stdout is connected to a terminal (no pipe or redirection operator used here), ZFS detects this and refuses to dump raw binary stream data to the terminal - instead sending an error message to stderr. Options B and C are wrong because zfs send never "saves a snapshot to disk" on its own regardless of which snapshot you name; it streams data to stdout, which requires explicit redirection (> file) or piping (| zfs receive) to do anything useful. Option D is tempting because -i does compute the incremental difference between the two snapshots, but "written to disk" implies successful output - which can't happen here without redirection, and an error occurs first.
Memory tip: Think of zfs send as a garden hose - it needs something to direct the flow. No pipe or redirect (| or >) means the water has nowhere to go, and ZFS complains rather than flooding your terminal with binary garbage.
Topics
Community Discussion
No community discussion yet for this question.