Date: Mon, 26 Jun 2000 17:35:08 +0400 (MSD) From: "Alex G. Bulushev" <bag@demos.su> To: hackers@freebsd.ru Subject: new nfs client problems with 4.0-S Message-ID: <200006261335.RAA12265@sinbin.demos.su>
next in thread | raw e-mail | index | archive | help
New problems with 4.0-S nfsv3 client (this problems not exist with 3.4-S) If file have write only permisson we can't append it properly, with read+write permissons all ok, this is serious error ... For demonstartion we use nfsserver and nfsclient mounted via nfsv3/udp: FreeBSD 4.0-STABLE FreeBSD 4.0-STABLE #0: Fri Jun 23 14:11:48 MSD 2000 /etc/exports: /mnt/test -maproot=0:0 nfsclient /etc/fstab: nfsserver:/mnt/test /mnt/test nfs rw,nfsv3,mntudp,intr,rdirplus > df Filesystem 512-blocks Used Avail Capacity Mounted n /dev/da0s1a 2781278 1484240 1074536 58% / procfs 8 8 0 100% /proc nfsserver:/mnt/test 52227808 43258416 4791168 90% /mnt/test > For demonstration we create user: test > id uid=10101(test) gid=10101(test) groups=10101(test) > cd > pwd /usr/home/test > ls -al total 4 drwx------ 2 test wheel 512 Jun 26 16:47 . drwxr-xr-x 10 root wheel 512 Jun 26 14:55 .. lrwxr-xr-x 1 root wheel 24 Jun 26 16:25 nfs_link -> /mnt/test -----w---- 1 root test 0 Jun 26 16:46 nonfs_file > file: ~test/nonfs_file created on local filesystem, and file: ~test/nfs_link/nfs_file created on nfs when we append file on nfs we append succesfully only first record, and next records not apended : > cd ~test/nfs_link/ > ls -al total 16 drwx------ 2 test test 512 Jun 26 16:50 . dr-xr-xr-x 10 root olsites 512 Jun 26 16:30 .. -----w---- 1 root test 0 Jun 26 16:44 nfs_file > echo 000 >> nfs_file > ls -al total 24 drwx------ 2 test test 512 Jun 26 16:50 . dr-xr-xr-x 10 root olsites 512 Jun 26 16:30 .. -----w---- 1 root test 4 Jun 26 16:59 nfs_file > echo 111 >> nfs_file > ls -al total 24 drwx------ 2 test test 512 Jun 26 16:50 . dr-xr-xr-x 10 root olsites 512 Jun 26 16:30 .. -----w---- 1 root test 8 Jun 26 16:59 nfs_file > echo 222 >> nfs_file > ls -al total 24 drwx------ 2 test test 512 Jun 26 16:50 . dr-xr-xr-x 10 root olsites 512 Jun 26 16:30 .. -----w---- 1 root test 8 Jun 26 16:59 nfs_file > echo 333 >> nfs_file > ls -al total 24 drwx------ 2 test test 512 Jun 26 16:50 . dr-xr-xr-x 10 root olsites 512 Jun 26 16:30 .. -----w---- 1 root test 8 Jun 26 16:59 nfs_file > file contain only first record: # cat ~test/nfs_link/nfs_file 000 # and after reading we see new file size! > ls -al total 24 drwx------ 2 test test 512 Jun 26 16:50 . dr-xr-xr-x 10 root olsites 512 Jun 26 16:30 .. -----w---- 1 root test 4 Jun 26 16:59 nfs_file > with rw permissions no problems exists: > ls -al total 16 drwx------ 2 test test 512 Jun 26 16:50 . dr-xr-xr-x 10 root olsites 512 Jun 26 16:30 .. ----rw---- 1 root test 0 Jun 26 17:24 nfs_file > > echo 000 >> nfs_file > ls -al total 24 drwx------ 2 test test 512 Jun 26 16:50 . dr-xr-xr-x 10 root olsites 512 Jun 26 16:30 .. ----rw---- 1 root test 4 Jun 26 17:25 nfs_file > echo 111 >> nfs_file > ls -al total 24 drwx------ 2 test test 512 Jun 26 16:50 . dr-xr-xr-x 10 root olsites 512 Jun 26 16:30 .. ----rw---- 1 root test 8 Jun 26 17:25 nfs_file > echo 222 >> nfs_file > ls -al total 24 drwx------ 2 test test 512 Jun 26 16:50 . dr-xr-xr-x 10 root olsites 512 Jun 26 16:30 .. ----rw---- 1 root test 12 Jun 26 17:25 nfs_file > echo 333 >> nfs_file > ls -al total 24 drwx------ 2 test test 512 Jun 26 16:50 . dr-xr-xr-x 10 root olsites 512 Jun 26 16:30 .. ----rw---- 1 root test 16 Jun 26 17:26 nfs_file > # cat ~test/nfs_link/nfs_file 000 111 222 333 # without nfs no problems exists: > echo 000 >> nonfs_file > ls -al total 6 drwx------ 2 test wheel 512 Jun 26 16:47 . drwxr-xr-x 10 root wheel 512 Jun 26 14:55 .. lrwxr-xr-x 1 root wheel 24 Jun 26 16:25 nfs_link -> /mnt/pub/root/roots/tet -----w---- 1 root test 4 Jun 26 16:51 nonfs_file > echo 111 >> nonfs_file > ls -al total 6 drwx------ 2 test wheel 512 Jun 26 16:47 . drwxr-xr-x 10 root wheel 512 Jun 26 14:55 .. lrwxr-xr-x 1 root wheel 24 Jun 26 16:25 nfs_link -> /mnt/pub/root/roots/tet -----w---- 1 root test 8 Jun 26 16:51 nonfs_file > echo 222 >> nonfs_file > ls -al total 6 drwx------ 2 test wheel 512 Jun 26 16:47 . drwxr-xr-x 10 root wheel 512 Jun 26 14:55 .. lrwxr-xr-x 1 root wheel 24 Jun 26 16:25 nfs_link -> /mnt/pub/root/roots/tet -----w---- 1 root test 12 Jun 26 16:51 nonfs_file > # cat ~test/nonfs_file 000 111 222 # To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200006261335.RAA12265>