On Jul 05, 2007  16:59 -0400, Phil Dickens wrote:
>  I am interested in disabling locking and client-side caching so that
> the application itself can provide its own enforcement of file consistency
> semantics and provide its own caching. I understand that Lustre is a
> POSIX-compliant system; what I am unsure of is whether the locking and
> caching system that provides such compliance can be disabled on a
> per file basis.

In fact it can - use ioctl(fd, LL_IOC_SETFLAGS, LL_FILE_IGNORE_LOCK).
The file needs to be opened with O_DIRECT in order to do this.  This
mode was added ages ago to test a similar usage but is never tested,
use at own risk (though reports of success/failure are still of interest).

Cheers, Andreas
--
Andreas Dilger
Principal Software Engineer
Cluster File Systems, Inc.

_______________________________________________
Lustre-discuss mailing list
[email protected]
https://mail.clusterfs.com/mailman/listinfo/lustre-discuss

Reply via email to