summaryrefslogtreecommitdiffstats
path: root/lib/misc/lvm-exec.c
Commit message (Collapse)AuthorAgeFilesLines
* Just space movingZdenek Kabelac2012-03-021-2/+2
| | | | Don't leave space on EOL.
* Revert patchZdenek Kabelac2011-09-191-1/+1
| | | | Caller of exec must report log_error when rstatus is passed.
* Use log_error instead of log_verbose when executed command failsZdenek Kabelac2011-09-191-1/+1
|
* Move debug messageZdenek Kabelac2011-09-191-1/+2
| | | | | so it does not look like we are executing command in the middle of critical_section in log trace.
* Remove meaningless const type qualifiers on cast typeZdenek Kabelac2011-08-041-1/+1
| | | | Static analyzis noticed we do not really need them - so removing.
* Add exec_cmd paramater sync_neededZdenek Kabelac2011-01-131-6/+9
| | | | | | As sync_local_dev_names() cannot be called within activation context, add new parametr which allows to select if the sync call is needed before executing new command.
* Replace fs_unlock by sync_local_dev_names to notify local clvmd. (2.02.80)Alasdair Kergon2011-01-121-1/+1
| | | | Introduce sync_local_dev_names and CLVMD_CMD_SYNC_NAMES to issue fs_unlock.
* Fix missing declaration for fs_unlockZdenek Kabelac2011-01-101-0/+1
|
* Avoid cookie sharing between forked processesZdenek Kabelac2011-01-101-0/+2
| | | | Before fork, ensure cookie is reset so it's not shared between processes.
* Use new status code from fsadm checkZdenek Kabelac2010-11-011-2/+12
| | | | | | | | | | | Patch updates exec_cmd() and adds 3rd parameter with pointer for status value, so caller might examine returned status code. If the passed pointer is NULL, behavior is unmodified. Patch allows to confinue with lvresize if the failure from fsadm check is caused by mounted filesystem as many of filesystem resize tools do support online filesystem resize. (originally user had to use flag '-n' to bypass this filesystem check)
* Change exit() to _exit() in the child process. exit flushes stdio file buffers,Mikulas Patocka2009-07-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | _exit doesn't. If there were some open files, an error in exec and subsequent exit() would cause the buffers to be flushed twice. Example: #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/wait.h> int main() { printf("buu"); if (!fork()) { execl("/bin/true-not-exists", "/bin/true", NULL); exit(1); } wait(NULL); return 0; } Signed-off-by: Mikulas Patocka <mpatocka@redhat.com --- daemons/dmeventd/libdevmapper-event.c | 2 +- lib/misc/lvm-exec.c | 2 +- test/harness.c | 3 ++- tools/dmsetup.c | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-)
* Attempt cleanup in child before execing new binary in exec_cmd()Alasdair Kergon2009-02-281-2/+8
|
* fsadm cleanups & release prepAlasdair Kergon2009-02-271-19/+12
|
* Fixed bug where lvresize option -t was not properly passed to fsadm.Zdenek Kabelac2009-02-241-7/+36
| | | | | | | Using argv[] list in exec_cmd() to allow more params for external commands. Fsadm does not allow checking mounted filesystem. Fsadm no longer accepts 'any other key' as 'no' answer to y/n. Fsadm improved handling of command line options.
* Some whitespace tidy-ups.Alasdair Kergon2008-01-301-1/+1
|
* Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1.Alasdair Kergon2007-08-201-2/+2
|
* Attempt to load missing targets using modprobe.Alasdair Kergon2005-10-171-0/+64