From owner-cvs-all Thu Sep 16 22:18: 5 1999 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 853881503E; Thu, 16 Sep 1999 22:18:00 -0700 (PDT) (envelope-from dillon@FreeBSD.org) Received: (from dillon@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id WAA52160; Thu, 16 Sep 1999 22:18:00 -0700 (PDT) (envelope-from dillon@FreeBSD.org) Message-Id: <199909170518.WAA52160@freefall.freebsd.org> From: Matt Dillon Date: Thu, 16 Sep 1999 22:18:00 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/vm vnode_pager.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk dillon 1999/09/16 22:17:59 PDT Modified files: sys/vm vnode_pager.c Log: The vnode pager (used when you do file-backed mmaps) must use the underlying physical sector size when aligning I/O transfer sizes. It cannot assume 512 bytes. We assume the underlying sector size is a power of 2. If it isn't, mmap() will break badly anyway (in the same way mmap broke with NFS when NFS tried to cache piecemeal write ranges in buffers, before we enforced read-buffer-before-write-piecemeal for NFS). Reviewed by: Alan Cox , David Greenman Revision Changes Path 1.115 +12 -4 src/sys/vm/vnode_pager.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message