From owner-freebsd-hackers Fri Jan 30 15:51:21 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA23261 for hackers-outgoing; Fri, 30 Jan 1998 15:51:21 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from allegro.lemis.com ([192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA23112 for ; Fri, 30 Jan 1998 15:50:14 -0800 (PST) (envelope-from grog@lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.8.7/8.8.5) with ESMTP id KAA28019 for ; Sat, 31 Jan 1998 10:19:43 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.8.8/8.8.7) id KAA28035; Sat, 31 Jan 1998 10:19:42 +1030 (CST) (envelope-from grog) Message-ID: <19980131101942.32279@lemis.com> Date: Sat, 31 Jan 1998 10:19:42 +1030 From: Greg Lehey To: FreeBSD Hackers Subject: Non-existent slice open succeeds: bug or feature? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.84e Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe hackers" I've just discovered a strangeness. I have a disk /dev/sd1 partitioned like this: 8 partitions: # size offset fstype [fsize bsize bps/cpg] c: 1173459 0 unused 0 0 # (Cyl. 0 - 1210) h: 1173459 0 unused 0 0 # (Cyl. 0 - 1210) If I perform the following operation: # dd if=/dev/sd1e 0+0 records in 0+0 records out 0 bytes transferred in 0.000759 secs (0 bytes/sec) the open obviously succeeds. Why? It loos as if sd1e is a slice of length 0, but that's not the same thing as not existing. Greg