From owner-cvs-all Sun Sep 30 12:41:40 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id E9EB737B446; Sun, 30 Sep 2001 12:41:29 -0700 (PDT) Received: (from des@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f8UJfTN35348; Sun, 30 Sep 2001 12:41:29 -0700 (PDT) (envelope-from des) Message-Id: <200109301941.f8UJfTN35348@freefall.freebsd.org> From: Dag-Erling Smorgrav Date: Sun, 30 Sep 2001 12:41:29 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/fs/pseudofs pseudofs.h pseudofs_vnops.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG des 2001/09/30 12:41:29 PDT Modified files: sys/fs/pseudofs pseudofs.h pseudofs_vnops.c Log: pseudofs.h: - Rearrange the flag constants a little to simplify specifying and testing for readability and writeability. pseudofs_vnops.c: - Track the aforementioned change. - Add checks to pfs_open() to prevent opening read-only files for writing or vice versa (pfs_{read,write} would block the actual reads and writes, but it's still a bug to allow the open() to succeed). Also, return EOPNOTSUPP if the caller attempts to lock the file. - Add more trace points. Revision Changes Path 1.9 +5 -4 src/sys/fs/pseudofs/pseudofs.h 1.13 +51 -35 src/sys/fs/pseudofs/pseudofs_vnops.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message