--- - branch: MAIN date: Wed Mar 2 04:11:41 UTC 2022 files: - new: '1.30' old: '1.29' path: src/usr.sbin/puffs/mount_9p/node.c pathrev: src/usr.sbin/puffs/mount_9p/node.c@1.30 type: modified id: 20220302T041141Z.b550946154291891658dbd41bd44b45eed976991 log: | mount_9p: fix writing to a file opened with write-only mode With the page cache, writing data to a file may demand to read contents from a storage to fill a page in the page cache first. Opening a file with write-only mode by a user lets a mount_9p process open a file with write-only mode too at a 9p server. Thus, a read request to the file from the page cache fails. So we need to open a file always with read mode (internally) even if it is opened with write-only mode by a user. Note that the change doesn't mean that mount_9p allows users to read contents from a file that is opened with write-only mode. module: src subject: 'CVS commit: src/usr.sbin/puffs/mount_9p' unixtime: '1646194301' user: ozaki-r