From owner-freebsd-doc Thu Mar 7 13: 0:21 2002 Delivered-To: freebsd-doc@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0A45B37B402 for ; Thu, 7 Mar 2002 13:00:06 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g27L06H87237; Thu, 7 Mar 2002 13:00:06 -0800 (PST) (envelope-from gnats) Received: from lists.blarg.net (lists.blarg.net [206.124.128.17]) by hub.freebsd.org (Postfix) with ESMTP id 1FA4437B402 for ; Thu, 7 Mar 2002 12:55:52 -0800 (PST) Received: from thig.blarg.net (thig.blarg.net [206.124.128.18]) by lists.blarg.net (Postfix) with ESMTP id C4DE1BD87 for ; Thu, 7 Mar 2002 12:55:51 -0800 (PST) Received: from localhost.localdomain ([206.124.139.115]) by thig.blarg.net (8.9.3/8.9.3) with ESMTP id MAA20763 for ; Thu, 7 Mar 2002 12:55:51 -0800 Received: (from jojo@localhost) by localhost.localdomain (8.11.6/8.11.3) id g27Kx4646723; Thu, 7 Mar 2002 12:59:04 -0800 (PST) (envelope-from swear@blarg.net) Message-Id: Date: 07 Mar 2002 12:59:03 -0800 From: "Gary W. Swearingen" Reply-To: swear@blarg.net To: FreeBSD-gnats-submit@freebsd.org Subject: docs/35646: cp(1) page needs a "Bugs" section. Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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