Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 May 2012 15:48:31 -0700 (PDT)
From:      "Ronald F.Guilmette" <rfg@tristatelogic.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/168397: cpio --quiet fails to suppress "unnscessary" messages
Message-ID:  <20120527224831.E642B5081F@segfault.tristatelogic.com>
Resent-Message-ID: <201205272300.q4RN072W052517@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120527224831.E642B5081F>