Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Apr 1997 11:39:54 -0700
From:      Aaron Smith <aaron@veritas.com>
To:        John Polstra <jdp@polstra.com>
Cc:        hackers@freebsd.org
Subject:   Re: mmap vs. disk errors 
Message-ID:  <m0wHD92-000iVIC@megami.veritas.com>
In-Reply-To: Your message of "Tue, 15 Apr 1997 09:51:15 PDT." <199704151651.JAA04914@austin.polstra.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 15 Apr 1997 09:51:15 PDT, John Polstra writes:
>What happens if an application has a file mapped into memory and tries
>to access part of it, but the kernel can't bring the pages into memory
>because of a disk error (bad block in the file)?

The kernel can't satisfy the request, so you'd have to return an error, but
the only way to do that is to fault the access. The app would have to be
handed a segv.

--
Aaron Smith					            aaron@veritas.com
unless explicitly stated, i do not speak for my employer. support free speech.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m0wHD92-000iVIC>