Subject: Read-only NFS mounts not really read-only?
To: None <current-users@NetBSD.org>
From: Rob Quinn <rquinn@sec.sprint.net>
List: current-users
Date: 05/07/2004 11:23:25
 I mount /usr/pkgsrc read-only on my NetBSD-current laptop.  I mount
pkgsrc/distfiles read-write, and the whole parent directory is exported
read-write.

    strike:/usr/pkgsrc/audio/xmms #mount | grep pkgsrc
    [...]/NetBSD/pkgsrc on /usr/pkgsrc type nfs (read-only)
    [...]/NetBSD/pkgsrc/distfiles on /usr/pkgsrc/distfiles type nfs

  This morning I realized I can create files and symlinks in the read-only
directories, but I can't delete them:


    strike:/usr/pkgsrc/audio/xmms #rm work
    rm: work: Read-only file system

    strike:/usr/pkgsrc/audio/xmms #ls -l netbsd
    ls: netbsd: No such file or directory
    strike:/usr/pkgsrc/audio/xmms #ln -s /netbsd .
    strike:/usr/pkgsrc/audio/xmms #ls -l netbsd
    lrwxrwxrwx  1 root  scirt  7 May  7 11:08 netbsd@ -> /netbsd
    strike:/usr/pkgsrc/audio/xmms #rm netbsd 
    rm: netbsd: Read-only file system
    strike:/usr/pkgsrc/audio/xmms #touch new netbsd 
    strike:/usr/pkgsrc/audio/xmms #ls -l new netbsd
    lrwxrwxrwx  1 root  scirt  7 May  7 11:08 netbsd@ -> /netbsd
    -rw-r--r--  1 root  scirt  0 May  7 11:08 new
    strike:/usr/pkgsrc/audio/xmms #rm new netbsd 
    override rw-r--r--  root/scirt for 'new'? y
    rm: new: Read-only file system
    rm: netbsd: Read-only file system

  Is this a known issue?  None of the 90+ open NFS PRs look relevant.