Bug 168397 - cpio(1): cpio --quiet fails to suppress "unnscessary" messages
Summary: cpio(1): cpio --quiet fails to suppress "unnscessary" messages
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 8.3-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-28 00:00 UTC by Ronald F. Guilmette
Modified: 2017-12-31 22:29 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ronald F. Guilmette 2012-05-28 00:00:07 UTC
The man page for cpio sez:

     --quiet
             Suppress unnecessary messages.

yet despite using this option, when I am using the -l option (to make sure
that hard links are used, when possible, on the destination volume) I am
still getting lots and lots of annoying warnings like:

Can't create '/my/path/name': Cross-device link
cpio: Copying file instead

These errors & warnings are clearly "unnecessary" in every sense, because
after all, the file _did_ get copied.  It just was not created at the
destination as a hard link to the original source file.

So given that these meessages are really and truly "unnecessary", according
to the documentation (man page) of cpio, the --quiet option should suppress
them, but it doesn't.

Fix: 

Dunno.  I haven't looked at the code, but it ought to be pretty simple.

This is like the old doctor joke...

Patient: "Doctor!  Doctor!  It hurts when I do this!"

Doctor:  "Don't do that!"

It ought to be pretty simple to just NOT produce these unnecessary messages
when --quiet is in effect.
How-To-Repeat: 
Try using the -l option and the -quiet options together as you use cpio to
copy a file from one filesystem onto another different one.
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:01:41 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped