Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | libdm: use uint64_t where possible in filemap routinesdev-bmr-dmfilemapd-cov-fixes | Bryn M. Reeves | 2017-03-29 | 1 | -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. Reeves | 2017-03-29 | 1 | -1/+1 |
| | |||||
* | libdm: make _stats_resize_group() num_regions argument uint64_t | Bryn M. Reeves | 2017-03-29 | 1 | -6/+8 |
| | |||||
* | libdm: make _find_extent() nr_extents argument uint64_t | Bryn M. Reeves | 2017-03-29 | 1 | -4/+5 |
| | |||||
* | dmfilemapd: cast return value of strto* functions when needed | Bryn M. Reeves | 2017-03-29 | 1 | -4/+4 |
| | |||||
* | dmfilemapd: use log_sys_error in _filemap_monitor_set_notify | Bryn M. Reeves | 2017-03-29 | 1 | -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 int | Bryn M. Reeves | 2017-03-29 | 1 | -1/+1 |
| | |||||
* | dmfilemapd: fix len type in _filemap_monitor_check_file_unlinked() | Bryn M. Reeves | 2017-03-29 | 1 | -1/+2 |
| | | | | Make 'len' a size_t to match the return type of readlink(2). | ||||
* | dmfilemapd: make filemap_monitor->nr_regions uint64_t | Bryn M. Reeves | 2017-03-29 | 1 | -1/+1 |
| | |||||
* | libdm: use DM_STATS_GROUP_* constants in dm_stats_create_regions_from_fd | Bryn M. Reeves | 2017-03-29 | 1 | -1/+2 |
| | |||||
* | dmsetup: simplify branching in _stats_update_file() | Bryn M. Reeves | 2017-03-29 | 1 | -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. Reeves | 2017-03-29 | 1 | -5/+3 |
| | |||||
* | dmsetup: do not start dmfilemapd if region creation fails (coverity) | Bryn M. Reeves | 2017-03-29 | 1 | -5/+5 |
| | |||||
* | libdm: do not attempt filemap cleanup if dm_stats_list() fails (coverity) | Bryn M. Reeves | 2017-03-29 | 1 | -1/+2 |
| | |||||
* | libdm: abort filemap update if pool allocation fails (coverity) | Bryn M. Reeves | 2017-03-29 | 1 | -2/+3 |
| | |||||
* | libdm: do not leak FIEMAP extent buffer if pool allocation fails (coverity) | Bryn M. Reeves | 2017-03-29 | 1 | -5/+5 |
| | |||||
* | dmfilemapd: free region table at end of _update_regions() (coverity) | Bryn M. Reeves | 2017-03-29 | 1 | -1/+1 |
| | |||||
* | dmfilemapd: fix off-by-one in fd comparison (coverity) | Bryn M. Reeves | 2017-03-29 | 1 | -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. Reeves | 2017-03-29 | 1 | -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. Reeves | 2017-03-29 | 1 | -0/+1 |
| | |||||
* | dmfilemapd: always close check file descriptor (coverity) | Bryn M. Reeves | 2017-03-29 | 1 | -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. Reeves | 2017-03-29 | 1 | -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. Reeves | 2017-03-29 | 1 | -2/+2 |
| | |||||
* | dmfilemapd: do not closdir(pid_d) unless it is open | Bryn M. Reeves | 2017-03-29 | 1 | -2/+3 |
| | |||||
* | dmfilemapd: log closedir errors with log_sys_error() | Bryn M. Reeves | 2017-03-29 | 1 | -4/+11 |
| | |||||
* | dmstats: Fix path to static dmstats | Marian Csontos | 2017-03-29 | 1 | -1/+1 |
| | |||||
* | man: ranges/LV names/symbolic use regexp | Heinz Mauelshagen | 2017-03-29 | 1 | -4/+11 |
| | |||||
* | man: simplify by avoiding different headers on de-duplication of lvmconfig, ↵ | Heinz Mauelshagen | 2017-03-29 | 2 | -31/+7 |
| | | | | lvm-config and lvm-dumpconfig | ||||
* | man: de-duplicate lvmconfig, lvm-config and lvm-dumpconfig manuals | Heinz Mauelshagen | 2017-03-29 | 9 | -959/+37 |
| | |||||
* | spec: Add dmfilemapd | Marian Csontos | 2017-03-28 | 3 | -0/+12 |
| | |||||
* | dmfilemapd: Fix install target | Marian Csontos | 2017-03-28 | 1 | -1/+1 |
| | |||||
* | man: regexp readability / use $(SED) | Heinz Mauelshagen | 2017-03-28 | 1 | -14/+27 |
| | |||||
* | post-release | Alasdair G Kergon | 2017-03-28 | 4 | -2/+8 |
| | |||||
* | pre-releasev2_02_169 | Alasdair G Kergon | 2017-03-28 | 11 | -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 committed | Alasdair G Kergon | 2017-03-28 | 45 | -3417/+3468 |
| | |||||
* | man: fix / typo | Heinz Mauelshagen | 2017-03-28 | 2 | -3/+4 |
| | |||||
* | man: enhance man postprocessing regexp | Heinz Mauelshagen | 2017-03-28 | 1 | -1/+20 |
| | |||||
* | tests: update to better fit | Zdenek Kabelac | 2017-03-27 | 1 | -8/+11 |
| | | | | | Die is automatic on 'error' result Cleanup everything on 'regular' code path. | ||||
* | cleanup: use more common FMTd64 type | Zdenek Kabelac | 2017-03-27 | 4 | -6/+6 |
| | | | | We use 'd' for plain singed integers. | ||||
* | build: fix x32 arch | Mikulas Patocka | 2017-03-27 | 3 | -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 escaping | Heinz Mauelshagen | 2017-03-27 | 59 | -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 writemostly | Heinz Mauelshagen | 2017-03-26 | 1 | -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 escape | Heinz Mauelshagen | 2017-03-25 | 1 | -13/+13 |
| | |||||
* | man-generator: more escaped '-' | Heinz Mauelshagen | 2017-03-24 | 1 | -15/+15 |
| | |||||
* | man-generator: fix buffer length calculation | Heinz Mauelshagen | 2017-03-24 | 1 | -1/+1 |
| | |||||
* | make: Don't hard-code SHELL as /bin/sh | Alasdair G Kergon | 2017-03-24 | 1 | -1/+1 |
| | |||||
* | man/help: avoid escaping of '-' with --help | Heinz Mauelshagen | 2017-03-24 | 1 | -1/+2 |
| | |||||
* | WHATS_NEW: man-generator escape '-' | Heinz Mauelshagen | 2017-03-24 | 1 | -0/+1 |
| | |||||
* | man-generator: cleanup escape '-' | Heinz Mauelshagen | 2017-03-24 | 1 | -17/+22 |
| | |||||
* | man-generator: emit escaped '-' | Heinz Mauelshagen | 2017-03-24 | 3 | -128/+137 |
| |