[asterisk-bugs] [Asterisk 0007852]: [patch][post 1.4] Configurable lock types for ast_lock_path - allows voicemail storage on SMB/CIFS mounts
noreply at bugs.digium.com
noreply at bugs.digium.com
Tue Aug 28 11:10:18 CDT 2007
The following issue has been ASSIGNED.
======================================================================
http://bugs.digium.com/view.php?id=7852
======================================================================
Reported By: nic_bellamy
Assigned To: russell
======================================================================
Project: Asterisk
Issue ID: 7852
Category: Applications/app_voicemail
Reproducibility: N/A
Severity: feature
Priority: normal
Status: assigned
Asterisk Version: SVN
SVN Branch (only for SVN checkouts, not tarball releases): trunk
SVN Revision (number only!): 41647
Disclaimer on File?: Yes
Request Review:
======================================================================
Date Submitted: 08-31-2006 16:29 CDT
Last Modified: 08-28-2007 11:10 CDT
======================================================================
Summary: [patch][post 1.4] Configurable lock types for
ast_lock_path - allows voicemail storage on SMB/CIFS mounts
Description:
This patch adds a "lockmode = {lockfile|flock}" parameter to the [options]
section of asterisk.conf. This allows you to set which type of locking
ast_lock_path() uses.
It defaults to the current behaviour (ie. create a random file, hardlink
it to dir/.lock), which isn't quite NFS-safe, but is close.
The flock mode instead creates (if it doesn't already exist) a dir/lock
file, and then flock()s it - this allows it to lock paths on filesystems
that don't support filenames starting with "." and/or hardlinks, eg.
SMB/CIFS mounted filesystems.
======================================================================
----------------------------------------------------------------------
svnbot - 08-28-07 11:10
----------------------------------------------------------------------
Repository: asterisk
Revision: 81233
------------------------------------------------------------------------
r81233 | russell | 2007-08-28 11:10:17 -0500 (Tue, 28 Aug 2007) | 10 lines
(closes issue http://bugs.digium.com/view.php?id=7852)
Reported by: nic_bellamy
Patches:
2006-10-03_svn_44249_voicemail_lockmode_v3.patch uploaded by
nic_bellamy (license 213)
Add support for configurable file locking methods. The default is
"lockfile",
which is the old behavior. There is an additional option, "flock", which
is
intended for use in situations where the lockfile method will not work,
such as
with SMB/CIFS mounts.
------------------------------------------------------------------------
Issue History
Date Modified Username Field Change
======================================================================
08-28-07 11:10 svnbot Note Added: 0069564
08-28-07 11:10 svnbot Status ready for testing =>
assigned
08-28-07 11:10 svnbot Assigned To => russell
======================================================================
More information about the asterisk-bugs
mailing list