Date: Thu, 13 Jul 2000 23:48:22 -0700 (PDT) From: tolyar@mx.ru To: freebsd-gnats-submit@FreeBSD.org Subject: misc/19909: Problem with NFS client in 4.0-STABLE Message-ID: <20000714064822.6475437BFC9@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 19909 >Category: misc >Synopsis: Problem with NFS client in 4.0-STABLE >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jul 13 23:50:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Zherdev Anatoly >Release: 4.0-STABLE >Organization: >Environment: FreeBSD machine_name 4.0-STABLE FreeBSD 4.0-STABLE #0: Fri Jun 23 14:11:48 MSD 2000 tolyar@machine_name:/usr/src/sys/compile/MACHINE i386 >Description: 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 ... This was tested on a lot of clients 3.4-S and four 4.0-S clients >How-To-Repeat: Server: /etc/exports: /mnt/test -maproot=0:0 nfsclient Client: /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 # >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000714064822.6475437BFC9>