Skip to contentSkip to conversation

exportfs bug

DISCUSSION Frank van Maarseveen 2 participants 2 messages May 16, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Multiple exportfs commands within a second don't work as expected. This is caused by writing either the wall clock time or the /etc/exports mtime to various /proc files, all with the granularity of 1 second. Scripts can easily issue more than one exportfs command within that time.

A repeated sequence of

- script modifies /etc/exports
- script runs exportfs -r

fails horribly (client gets EACCES, ESTALE)

IMO exportfs should at least hide the time granularity problem e.g. by maintaining a timestamp file, waiting if necessary.

Signature · 10 lines
Frank

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist  -  [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
#1 lore raw
Quoted 7 lines · Frank van Maarseveen

Multiple exportfs commands within a second don't work as expected. This is caused by writing either the wall clock time or the /etc/exports mtime to various /proc files, all with the granularity of 1 second. Scripts can easily issue more than one exportfs command within that time.

A repeated sequence of

Quoted 7 lines

- script modifies /etc/exports
- script runs exportfs -r

fails horribly (client gets EACCES, ESTALE)

IMO exportfs should at least hide the time granularity problem e.g. by maintaining a timestamp file, waiting if necessary.

This is a known problem, and should be fixed in the latest nfs-utils:

	http://linux-nfs.org/cgi-bin/gitweb.cgi?p=nfs-utils;a=commitdiff;h=fd9097110f74f39bce89ec3a341fd9b686a68719;hp=89fb5a45d2020aaee203dd9016d98c3ff9d9f991

--b.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs