Date: Mon, 11 Oct 2021 12:44:27 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 259071] Read reports wrong number of bytes on a network filesystem. Message-ID: <bug-259071-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259071 Bug ID: 259071 Summary: Read reports wrong number of bytes on a network filesystem. Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: chogata@moosefs.pro Attachment #228584 text/plain mime type: Created attachment 228584 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D228584&action= =3Dedit Simple file ops program In connection with bug #256937, bug #256936 and reports from MooseFS users (that complain, that with large source trees "git clone" operation often fa= ils on MooseFS, when client/mount is on FreeBSD) we developed a program, that s= hows a basic problem with FreeBSD kernel.=20 It's a simple program, that creates 2 processes. The main process continuou= sly performs 3 operations on a file, at random: read, write or ftruncate. The c= hild process performs stat operation on the same file. If the program is run on a local filesystem on FreeBSD, it works. If it is = run on any fusefs (SSHfs, MooseFS) or even on NFS, at some point (usually under= 1 minute) the read operation will return wrong number of bytes. No "networkin= g" necessary - all modifications and reads from file happen on one mountpoint. The same program will run on Linux on any kind of fs (local, nfs, fusefs) w= ith no problems. I'm attaching the program. The steps to repeat are simple: install FreeBSD = (13 or 14, but with patch from bug #256937, otherwise you will experience kernel panics), compile the program and run it on selected filesystems, wait for results. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-259071-227>