From owner-freebsd-hackers Fri Jun 6 19:38:32 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id TAA25176 for hackers-outgoing; Fri, 6 Jun 1997 19:38:32 -0700 (PDT) Received: from misery.sdf.com (misery.sdf.com [204.244.210.193]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id TAA25171 for ; Fri, 6 Jun 1997 19:38:29 -0700 (PDT) Received: from localhost (tom@localhost) by misery.sdf.com (8.8.5/8.8.5) with SMTP id TAA11712; Fri, 6 Jun 1997 19:36:52 -0700 (PDT) X-Authentication-Warning: misery.sdf.com: tom owned process doing -bs Date: Fri, 6 Jun 1997 19:36:51 -0700 (PDT) From: Tom Samplonius To: Scott Lystig Fritchie cc: freebsd-hackers@FreeBSD.ORG Subject: Re: One reason to mmap() block devices In-Reply-To: <199706062157.QAA09644@data.mr.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Fri, 6 Jun 1997, Scott Lystig Fritchie wrote: > To follow-up to my earlier question about why only regular and > character files are mmap()able... > > ... I'm interested in mmap()ing a disk block device. I've been doing > some alternative INN development, bypassing the traditional filesystem > for article storage, using instead a few very large files as cyclic > buffers. Why not just mmap() the disk character device instead of the disk block device? The block device is nearly useless for everything except newfs. Tom