DragonFly BSD
DragonFly bugs List (threaded) for 2012-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

[DragonFlyBSD - Bug #2277] tmpfs can't be nfs exported


From: Venkatesh Srinivas via Redmine <bugtracker-admin@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 3 Feb 2012 16:19:00 -0800

Issue #2277 has been updated by Venkatesh Srinivas.


Some notes:

1) fsx on Linux itself complains of 'no extend on truncate! not posix!', with or without readdirplus
This complaint is present on HAMMER shares also.

ftruncate(fd, 0); ftruncate(fd, 100000); fstat(fd, &sb);
sb.st_size != 100000.

This problem goes away when -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 is used on Linux, even though all file sizes in the test would fit w/o large file support.

strace cannot trace fsx when its binary is present on a HAMMER or tmpfs share; strace can't be built w/ the necessary LARGEFILE/FILE_OFFSET stuff.

2) with a DragonFly vkernel as the nfs client, fsx also passes, with both readdirplus and non-readdirplus mounts. With readdirplus on, I wasn't able to reproduce the problem you had above?

3)
(/tmp/x is an NFS mount of tmpfs; DF 2.13-DEVELOPMENT DragonFly 2.13-DEVELOPMENT #7: Sat Dec 31 01:21:33 EST 2011 on client, -master on server).

$ ls
$ cp /tmp/bb.c /tmp/x
$ ls -la /tmp/x/bb.c
-rw-r--r--  1 me  wheel  3922 Feb  4 00:17 /tmp/x/bb.c
$ ls -la /tmp/x
total 5101
drwxrwxrwt  6 root  wheel      512 Feb  4 00:17 ..
-rw-r--r--  1 me    wheel        0 Feb  3 23:29 22
-rw-rw-r--  1 me    wheel  5087764 Feb  3 23:13 CT_Course_Maps_20110313.pdf
-rw-r--r--  1 me    wheel     3922 Feb  4 00:16 aa.c
-rw-r--r--  1 me    wheel     3922 Feb  4 00:17 bb.c
-rwxr-xr-x  1 me    wheel    23939 Feb  4 00:11 dfsx
-rw-r--r--  1 me    wheel      169 Feb  3 23:28 f.c
-rw-r--r--  1 me    wheel    24298 Feb  4 00:10 fsx-linux.c
-rwxr-xr-x  1 me    wheel    26463 Feb  3 23:56 fsx128
-rw-r--r--  1 me    wheel     3922 Feb  4 00:16 qvsf.c
-rw-r--r--  1 me    wheel      331 Feb  3 23:40 t.c
$ 

----------------------------------------
Bug #2277: tmpfs can't be nfs exported
http://bugs.dragonflybsd.org/issues/2277

Author: Thomas Nikolajsen
Status: New
Priority: Normal
Assignee: Venkatesh Srinivas
Category: 
Target version: 


Using fresh master (January 17th 2012)
nfs export of tmpfs mount point fails.

Errors from mountd(8) in /var/log/messages are:
can't export /tmp
bad exports list line /tmp -maproot

/etc/exports line: /tmp -maproot=root 127.0.0.1

(nfs export of mfs mount point works)

 -thomas


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]