bin/168397: cpio --quiet fails to suppress "unnscessary" messages
Ronald F.Guilmette
rfg at tristatelogic.com
Sun May 27 23:00:07 UTC 2012
>Number: 168397
>Category: bin
>Synopsis: cpio --quiet fails to suppress "unnscessary" messages
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun May 27 23:00:07 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Ronald F. Guilmette
>Release: FreeBSD 8.3-RELEASE amd64
>Organization:
entropy
>Environment:
System: FreeBSD segfault.tristatelogic.com 8.3-RELEASE FreeBSD 8.3-RELEASE #0: Mon Apr 9 21:23:18 UTC 2012 root at mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
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.
>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.
>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.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list