From owner-freebsd-hackers Wed Mar 12 21:05:34 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id VAA04853 for hackers-outgoing; Wed, 12 Mar 1997 21:05:34 -0800 (PST) Received: from research.gate.nec.co.jp (research.gate.nec.co.jp [202.32.8.49]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id VAA04843 for ; Wed, 12 Mar 1997 21:05:24 -0800 (PST) Received: from sbl-gw.sbl.cl.nec.co.jp by research.gate.nec.co.jp (8.8.5+2.7Wbeta5/950912) with ESMTP id OAA10018; Thu, 13 Mar 1997 14:05:22 +0900 (JST) Received: from sirius.sbl.cl.nec.co.jp by sbl-gw.sbl.cl.nec.co.jp (8.8.5+2.7Wbeta5/3.3W6) with ESMTP id OAA24832; Thu, 13 Mar 1997 14:05:20 +0900 (JST) Received: by sirius.sbl.cl.nec.co.jp (8.7.5+2.6Wbeta6/3.3W6) with UUCP id OAA26681; Thu, 13 Mar 1997 14:05:18 +0900 (JST) Date: Thu, 13 Mar 1997 14:05:18 +0900 (JST) From: Naoki Hamada Message-Id: <199703130505.OAA26681@sirius.sbl.cl.nec.co.jp> To: hackers@FreeBSD.ORG Subject: [2.2-GAMMA] partial write to raw mode disk Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Writing an incomplete data to a raw mode disk device seems to fail. Is this an intended behavior? On the other hand, writing the same data to the corresponding block device always succeeds. % dd if=/dev/zero of=a bs=1 count=513 513+0 records in 513+0 records out 513 bytes transferred in 0.044414 secs (11550 bytes/sec) % dd if=a of=/dev/fd0 1+1 records in 1+1 records out 513 bytes transferred in 1.183101 secs (434 bytes/sec) % dd if=a of=/dev/rfd0 dd: /dev/rfd0: Invalid argument 1+1 records in 1+0 records out 512 bytes transferred in 1.279461 secs (400 bytes/sec) % dd if=/dev/zero of=b bs=1 count=512 512+0 records in 512+0 records out 512 bytes transferred in 0.045171 secs (11335 bytes/sec) % dd if=b of=/dev/rfd0 1+0 records in 1+0 records out 512 bytes transferred in 1.140878 secs (449 bytes/sec) - nao