Date: 07 Mar 2002 12:59:03 -0800 From: "Gary W. Swearingen" <swear@blarg.net> To: FreeBSD-gnats-submit@freebsd.org Subject: docs/35646: cp(1) page needs a "Bugs" section. Message-ID: <e0bse0ccx4.se0@localhost.localdomain>
next in thread | raw e-mail | index | archive | help
>Number: 35646 >Category: docs >Synopsis: cp(1) page needs a "Bugs" section. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Mar 07 13:00:05 PST 2002 >Closed-Date: >Last-Modified: >Originator: Gary W. Swearingen >Release: FreeBSD 4.5-STABLE i386 >Organization: none >Environment: n/a ================ >Description: The cp(1) program has a feature that should be documented in a "Bugs" section. (Or can there be a "Warnings" section?) The "cp" program removes "holes" from "sparse" files while copying, resulting in a non-exact copy, in some sense. ================ >How-To-Repeat: $ df . Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad0s2f 4530961 1477900 2690585 35% /u $ dd if=/dev/zero of=zeros-sparse oseek=1000 count=2 2+0 records in 2+0 records out 1024 bytes transferred in 0.000205 secs (4994148 bytes/sec) $ df . Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad0s2f 4530961 1477916 2690569 35% /u $ cp zeros-sparse zeros-cp $ df . Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad0s2f 4530961 1478428 2690057 35% /u $ l zero* -rw-r----- 1 root wheel 513024 Mar 7 12:42 zeros-cp -rw-r----- 1 root wheel 513024 Mar 7 12:42 zeros-sparse ================ >Fix: Add a "Bugs" section explaining about "sparse" files and "holes" and how "cp" handles them. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e0bse0ccx4.se0>