summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* libdm: use uint64_t where possible in filemap routinesdev-bmr-dmfilemapd-cov-fixesBryn M. Reeves2017-03-291-5/+6
| | | | | | Use uint64_t where possible and eplicit casts elsewhere to avoid compiler warnings when converting between int, int64_t and uint64_t.
* libdm: use size_t for buflen in _stats_group_file_regions()Bryn M. Reeves2017-03-291-1/+1
|
* libdm: make _stats_resize_group() num_regions argument uint64_tBryn M. Reeves2017-03-291-6/+8
|
* libdm: make _find_extent() nr_extents argument uint64_tBryn M. Reeves2017-03-291-4/+5
|
* dmfilemapd: cast return value of strto* functions when neededBryn M. Reeves2017-03-291-4/+4
|
* dmfilemapd: use log_sys_error in _filemap_monitor_set_notifyBryn M. Reeves2017-03-291-2/+2
| | | | | | Since _filemap_monitor_set_notify() is only called after daemon start up it should not use the _early_log() macros. Use log_sys_error to log errors from the two syscalls in the function.
* dmfilemapd: cast sysconf() return value to intBryn M. Reeves2017-03-291-1/+1
|
* dmfilemapd: fix len type in _filemap_monitor_check_file_unlinked()Bryn M. Reeves2017-03-291-1/+2
| | | | Make 'len' a size_t to match the return type of readlink(2).
* dmfilemapd: make filemap_monitor->nr_regions uint64_tBryn M. Reeves2017-03-291-1/+1
|
* libdm: use DM_STATS_GROUP_* constants in dm_stats_create_regions_from_fdBryn M. Reeves2017-03-291-1/+2
|
* dmsetup: simplify branching in _stats_update_file()Bryn M. Reeves2017-03-291-8/+9
| | | | | | | The fallback branch in _stats_update_file() is redundant (since the branch taken when the daemon starts successfully must jump to the 'out' label anyway): remove it and re-order the conditions to improve readability.
* dmsetup: always close fd when leaving _stats_update_file() (coverity)Bryn M. Reeves2017-03-291-5/+3
|
* dmsetup: do not start dmfilemapd if region creation fails (coverity)Bryn M. Reeves2017-03-291-5/+5
|
* libdm: do not attempt filemap cleanup if dm_stats_list() fails (coverity)Bryn M. Reeves2017-03-291-1/+2
|
* libdm: abort filemap update if pool allocation fails (coverity)Bryn M. Reeves2017-03-291-2/+3
|
* libdm: do not leak FIEMAP extent buffer if pool allocation fails (coverity)Bryn M. Reeves2017-03-291-5/+5
|
* dmfilemapd: free region table at end of _update_regions() (coverity)Bryn M. Reeves2017-03-291-1/+1
|
* dmfilemapd: fix off-by-one in fd comparison (coverity)Bryn M. Reeves2017-03-291-1/+1
| | | | | | | | | | The function _filemap_monitor_check_file_unlinked() attempts to test whether a fd value should be closed by comparison to zero: if ((fd > 0) && close(fd)) log_error("Error closing fd %d", fd); The test should be '>=' since 0 is a valid file descriptor.
* dmfilemapd: always close link check file descriptor (coverity)Bryn M. Reeves2017-03-291-3/+5
| | | | | | | | | Similar to 40fb91a, but for the file descriptor opened using the link path reported by /proc/<self>/fd/<fd>. The daemon opens a new file descriptor from /proc/<self>/fd when checking for an unlinked file with mode=inode. Ensure that it is always closed even if the same file test fails.
* dmfilemapd: always terminate link buffer after readlink(2) (coverity)Bryn M. Reeves2017-03-291-0/+1
|
* dmfilemapd: always close check file descriptor (coverity)Bryn M. Reeves2017-03-291-2/+4
| | | | | | The daemon opens a new file descriptor from fm->path when checking for an unlinked file with mode=inode. Ensure that it is always closed even if the same file test fails.
* dmfilemapd: use *argv[0] when testing for absolute path (coverity)Bryn M. Reeves2017-03-291-1/+1
| | | | | | | | | The path argument check in dmfilemapd incorrectly tests for: if (argv[0] == '/') Rather than testing the 1st character in the string pointed to by argv[0].
* dmfilemapd: pass correct dirp to closedir()Bryn M. Reeves2017-03-291-2/+2
|
* dmfilemapd: do not closdir(pid_d) unless it is openBryn M. Reeves2017-03-291-2/+3
|
* dmfilemapd: log closedir errors with log_sys_error()Bryn M. Reeves2017-03-291-4/+11
|
* dmstats: Fix path to static dmstatsMarian Csontos2017-03-291-1/+1
|
* man: ranges/LV names/symbolic use regexpHeinz Mauelshagen2017-03-291-4/+11
|
* man: simplify by avoiding different headers on de-duplication of lvmconfig, ↵Heinz Mauelshagen2017-03-292-31/+7
| | | | lvm-config and lvm-dumpconfig
* man: de-duplicate lvmconfig, lvm-config and lvm-dumpconfig manualsHeinz Mauelshagen2017-03-299-959/+37
|
* spec: Add dmfilemapdMarian Csontos2017-03-283-0/+12
|
* dmfilemapd: Fix install targetMarian Csontos2017-03-281-1/+1
|
* man: regexp readability / use $(SED)Heinz Mauelshagen2017-03-281-14/+27
|
* post-releaseAlasdair G Kergon2017-03-284-2/+8
|
* pre-releasev2_02_169Alasdair G Kergon2017-03-2811-122/+43
| | | | | | Removing some unused new lines and changing some incorrect "can't release until this is fixed" comments. Rename license.txt to make it clear its merely an included file, not itself a licence.
* man: pre-generated files weren't committedAlasdair G Kergon2017-03-2845-3417/+3468
|
* man: fix / typoHeinz Mauelshagen2017-03-282-3/+4
|
* man: enhance man postprocessing regexpHeinz Mauelshagen2017-03-281-1/+20
|
* tests: update to better fitZdenek Kabelac2017-03-271-8/+11
| | | | | Die is automatic on 'error' result Cleanup everything on 'regular' code path.
* cleanup: use more common FMTd64 typeZdenek Kabelac2017-03-274-6/+6
| | | | We use 'd' for plain singed integers.
* build: fix x32 archMikulas Patocka2017-03-273-8/+8
| | | | | | | | This patch fixed lvm2 compilation running on x32 arch. (Using 64bit x86 cpu features but running on 32b address space, so consuming less mem in VM). On x32 arch 'time_t' is 64bit while 'long' is 32bit.
* man-generator/man/help: simplify hyphen escapingHeinz Mauelshagen2017-03-2759-1590/+1569
| | | | | | | | | | | | | | | | | | | | | | | | | Commits a29bb6a14b5e920092495fb9a1623e527d22daac ... 5c199d99f4dc9911d62673baba7643ea649ffe64 narrowed down on addressing the escaping of hyphens in the dynamic creation of manuals whilst avoiding them in creating help texts. This lead to a sequence of slipping through hyphens adrressed by additional patches in aforementioned commit series. On the other hand, postprocessing dynamically man-generator created and statically provided manuals catches all hyphens in need of escaping. Changes: - revert the above commits whilst keeping man-generator streamlining and the detection of any '\' when generating help texts in order to avoid escapes to slip in - Dynamically escape hyphens in manaual pages using sed(1) in the respective Makefile targets - remove any manually added escaping on hyphens from any static manual sources or headers
* lvchange: reject setting all raid1 images to writemostlyHeinz Mauelshagen2017-03-261-2/+16
| | | | | | | | | | raid1 doesn't allow to set all images to writemostly because at least one image is required to receive any written data immediately. The dm-raid target will detect such invalid request and fail it iwith a kernel error message. Reject such request in uspace displaying a respective error message.
* man: a few more missed '-' to escapeHeinz Mauelshagen2017-03-251-13/+13
|
* man-generator: more escaped '-'Heinz Mauelshagen2017-03-241-15/+15
|
* man-generator: fix buffer length calculationHeinz Mauelshagen2017-03-241-1/+1
|
* make: Don't hard-code SHELL as /bin/shAlasdair G Kergon2017-03-241-1/+1
|
* man/help: avoid escaping of '-' with --helpHeinz Mauelshagen2017-03-241-1/+2
|
* WHATS_NEW: man-generator escape '-'Heinz Mauelshagen2017-03-241-0/+1
|
* man-generator: cleanup escape '-'Heinz Mauelshagen2017-03-241-17/+22
|
* man-generator: emit escaped '-'Heinz Mauelshagen2017-03-243-128/+137
|