On Sun, 10 Aug 2008 02:05:30 +0200, Brian Dessent <brian@xxxxxxxxxxx> wrote: > Jonas Karlsson wrote: > >> open("/tmp/ccc72aCK.ld", O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 EEXIST (File exists) > > I don't know why your filesystem returns an error for this syscall, but > with a normal filesystem driver the exact same sequence occurs and > succeeds: > > open("/tmp/ccPxl0Fa.ld", O_RDWR|O_CREAT|O_EXCL, 0600) = 3 > close(3) = 0 > gettimeofday({1218326107, 17028}, NULL) = 0 > getpid() = 16870 > open("/tmp/ccCsztRa.le", O_RDWR|O_CREAT|O_EXCL, 0600) = 3 > close(3) = 0 > open("/tmp/ccPxl0Fa.ld", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3 > > open() should fail with an existing file with O_CREAT|O_EXCL, but with > O_CREAT|O_TRUNC it should succeed and truncate the file. > Yes! Thanks for the hint. This was all an error in the funionfs implementation. Not being that experianced in file flags, I needed a pointer. Thanks again. -- /Jonas Using Opera's revolutionary e-mail client: http://www.opera.com/mail/