permission denied errors

[email protected] Fri, 24 Jun 2005 00:21:29 -0400
Newsgroups gmane.comp.file-systems.sfs.general
Message-ID <[email protected]>
i've been getting permission denied errors (readonly) when accessing sfs
mounted files while using certain programs (openoffice and mutt for two).

i'm guessing it's an application problem as i can read and write files
fine using simple unix applications.

	cd /sfs/myhost
	cp $MAIL xyz
	ls -l xyz
	-rw-r--r--    1 mark   1209 Jun 23  2005 xyz
	mutt -f xyz

the mailbox is readonly using mutt, but i can clearly write to the file.
the same thing is true for openoffice.  vi works fine.

am i missing some magic foo for nfs or something?  perhaps something
to do with locking?  when i run the attached program in an sfs mounted
disk i get EIO as the error.

-- 
Mark Smith
[email protected]
mark at tux dot org
nova-instructor at tux dot org
x.c (text/plain, 274 B)
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

main()
{
	int	  fd;

	if ((fd = open("x2", O_WRONLY | O_CREAT, 0666)) < 0)
	{
		perror("open");
		exit(1);
	}
	if (lockf(fd, F_LOCK, 0) < 0)
	{
		perror("lockf");
		exit(1);
	}
	exit(0);
}