如何测试fcntl()锁是否可以与我的NFS设置一起使用?

SQLite FAQ
  1. Can multiple applications or multiple instances of the same application access a single database file at the same time?

    sqlite uses reader/writer locks to control access to the database. … But use caution: this locking mechanism might not work correctly if the database file is kept on an NFS filesystem. This is because fcntl() file locking is broken on many NFS implementations. You should avoid putting sqlite database files on NFS if multiple processes might try to access the file at the same time. …

是否有一个简单的测试来查看fcntl()锁定是否适用于我的NFS客户端和服务器的组合?

解决方法

我在bullopensource联系了vincent,后者已不复存在.他在这里移动了代码https://sourceforge.net/projects/locktests/ 为我工作.请享用.

相关文章

1、安装Apache。 1)执行如下命令,安装Apache服务及其扩展包...
一、先说一下用ansible批量采集机器信息的实现办法: 1、先把...
安装配置 1. 安装vsftpd 检查是否安装了vsftpd # rpm -qa | ...
如何抑制stable_secret读取关键的“net.ipv6.conf.all.stabl...
1 删除0字节文件 find -type f -size 0 -exec rm -rf {} ...
## 步骤 1:安装必要的软件包 首先,需要确保系统已安装 `dh...