From owner-freebsd-questions@FreeBSD.ORG Wed Nov 14 23:37:32 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 67FCB5D7 for ; Wed, 14 Nov 2012 23:37:32 +0000 (UTC) (envelope-from bonomi@mail.r-bonomi.com) Received: from mail.r-bonomi.com (mx-out.r-bonomi.com [204.87.227.120]) by mx1.freebsd.org (Postfix) with ESMTP id 0FB008FC13 for ; Wed, 14 Nov 2012 23:37:30 +0000 (UTC) Received: (from bonomi@localhost) by mail.r-bonomi.com (8.14.4/rdb1) id qAENcEqx002393 for freebsd-questions@freebsd.org; Wed, 14 Nov 2012 17:38:14 -0600 (CST) Date: Wed, 14 Nov 2012 17:38:14 -0600 (CST) From: Robert Bonomi Message-Id: <201211142338.qAENcEqx002393@mail.r-bonomi.com> To: freebsd-questions@freebsd.org Subject: 'device' representation in the filesystem questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Nov 2012 23:37:32 -0000 it appears that FreeBSD, at least 8.0 and later: a) no longer uses 'raw' devices for anything b) no longer uses 'block' devices for anything c) randomly assigns device 'major' numbers d) doesn't use device 'minor' numbers for anything. e) as a result of c) and d), there is no way to establish 'device' physical characteristics from the 'node' information. Is there a wizzard who can confirm/deny? Or, if there's a better place to ask, can anyone point me there? There are significant performance and 'addressability' issues when doing i/o directly to 'fixed block' devices, especially 'write-once' media.` The classical 'block' device type was a reliable indicator of 'fixed block' behavior, how does one make that determination today? Is there any way to get 'classic' mag-tape behavior -- where, for example a read(2) returned the lesser of the bytes in the block, and positioned to the beginning of the next, regardless of whether the etire content of the current block had been read ?`