⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 remote.so

📁 berkeley db 4.6.21的源码。berkeley db是一个简单的数据库管理系统
💻 SO
字号:
m4_comment([$Id: remote.so,v 11.12 2005/06/24 05:04:09 mjc Exp $])m4_ref_title(Environment,    Remote filesystems,    [remote @filesystems, NFS problems], env/encrypt, env/faq)m4_p([dnlWhen m4_db database environment shared memory regions are backed by thefilesystem, it is a common application error to create databaseenvironments backed by remote filesystems such as the Network FileSystem (NFS), Windows network shares (SMB/CIFS) or the Andrew FileSystem (AFS).  Remote filesystems rarely support mapping files intoprocess memory, and even more rarely support correct semantics formutexes if the mapping succeeds.  For this reason, we recommend databaseenvironment directories be created in a local filesystem.])m4_p([dnlFor remote filesystems that do allow remote files to be mapped intoprocess memory, database environment directories accessed via remotefilesystems cannot be used simultaneously from multiple clients (thatis, from multiple computers).  No commercial remote filesystem of whichwe're aware supports coherent, distributed shared memory forremote-mounted files.  As a result, different machines will seedifferent versions of these shared region files, and the behavior isundefined.])m4_p([dnlDatabases, log files, and temporary files may be placed on remotefilesystems, as long as the remote filesystem fully supports standardPOSIX filesystem semantics (although the application may incur aperformance penalty for doing so).  Further, read-only databases onremote filesystems can be accessed from multiple systems simultaneously.However, it is difficult (or impossible) for modifiable databases onremote filesystems to be accessed from multiple systems simultaneously.The reason is the m4_db library caches modified database pages, and whenthose modified pages are written to the backing file is not entirelyunder application control.  If two systems were to write database pagesto the remote filesystem at the same time, database corruption couldresult.  If a system were to write a database page back to the remotefilesystem at the same time as another system read a page, a core dumpin the reader could result.])m4_tagbeginm4_tag([FreeBSD note:], [dnlSome historic FreeBSD releases will return ENOLCK from fsync and closecalls on NFS-mounted filesystems, even though the call has succeeded.To support m4_db on these releases, the m4_db code should be modifiedto ignore ENOLCK errors, or no m4_db files should be placed onNFS-mounted filesystems on these systems.  Note that current FreeBSDreleases do not suffer from this problem.])m4_tag([Linux note:], [dnlSome historic Linux releases do not support complete semantics for thePOSIX fsync call on NFS-mounted filesystems.  No m4_db files should beplaced on NFS-mounted filesystems on these systems.  Note that currentLinux releases do not suffer from this problem.])m4_tagendm4_page_footer

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -