From owner-freebsd-hackers@freebsd.org Sun Jan 22 08:02:44 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 473B3CBCC14; Sun, 22 Jan 2017 08:02:44 +0000 (UTC) (envelope-from phk@freebsd.org) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 0D233A7D; Sun, 22 Jan 2017 08:02:43 +0000 (UTC) (envelope-from phk@freebsd.org) Received: from critter.freebsd.dk (unknown [192.168.55.3]) by phk.freebsd.dk (Postfix) with ESMTP id ADC22273DA; Sun, 22 Jan 2017 08:02:35 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.15.2/8.15.2) with ESMTP id v0M82Ynx074697; Sun, 22 Jan 2017 08:02:35 GMT (envelope-from phk@freebsd.org) To: John-Mark Gurney cc: Aijaz Baig , "Greg 'groggy' Lehey" , FreeBSD Hackers , freebsd-scsi@freebsd.org Subject: Re: Understanding the rationale behind dropping of "block devices" In-reply-to: <20170121235131.GF1768@funkthat.com> From: "Poul-Henning Kamp" References: <20170116071105.GB4560@eureka.lemis.com> <20170121235131.GF1768@funkthat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <74695.1485072153.1@critter.freebsd.dk> Content-Transfer-Encoding: quoted-printable Date: Sun, 22 Jan 2017 08:02:34 +0000 Message-ID: <74696.1485072154@critter.freebsd.dk> X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jan 2017 08:02:44 -0000 -------- In message <20170121235131.GF1768@funkthat.com>, John-Mark Gurney writes: >Aijaz Baig wrote this message on Mon, Jan 16, 2017 at 14:19 +0530: >> Nevertheless my question still holds. What does 'removing support for b= lock >> device' mean in this context? Was what I mentioned earlier with regards= to >> my understanding correct? Viz. all disk devices now have a character (o= r >> raw) interface and are no longer served via the "page cache" but rather= the >> "buffer cache". Does that mean all disk accesses are now direct by pass= ing >> the file system?? > >One of the other reasons block devices were removed was that if there >was a write error on the underlying device, there was no way for the >writer to know that the write failed. This could/would lead to corrupted >data which is bad. This paper hopefully answers a lot of the questions: https://www.usenix.org/conference/bsdcon02/rethinking-dev-and-devices-= unix-kernel -- = Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe = Never attribute to malice what can adequately be explained by incompetence= .