1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

file_locking: use PATH_MAX for dir name

Using just 128 chars for locking dir may wail if longer
dir entry is used, swich to default linux max path.
This commit is contained in:
Zdenek Kabelac 2014-03-19 00:22:18 +01:00
parent 08018a5345
commit a6b159e99c
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.106 -
====================================
Use correct PATH_MAX for locking dir path.
Do not check for backups when when its creation is disabled.
Don't allow --mergedconfig without --type current in dumpconfig. Fix memleak.
Make global/lvdisplay_shows_full_device_path lvm.conf setting profilable.

View File

@ -37,7 +37,7 @@ struct lock_list {
};
static struct dm_list _lock_list;
static char _lock_dir[NAME_LEN];
static char _lock_dir[PATH_MAX];
static int _prioritise_write_locks;
static sig_t _oldhandler;