summaryrefslogtreecommitdiffstats
path: root/tools/dmsetup.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Add --setuuid to dmsetup rename.Alasdair Kergon2010-10-151-2/+9
| | | | Add dm_task_set_newuuid to set uuid of mapped device post-creation. (pjones)
* Add dm_zalloc and use it and dm_pool_zalloc throughout.Alasdair Kergon2010-09-301-3/+1
|
* Wait for node creation before displaying debug info in dmsetup.Zdenek Kabelac2010-08-031-0/+7
| | | | Readahead check needs to see created node - so wait till udev gets in sync.
* Fix return status 0 for "dmsetup info -c -o help".Zdenek Kabelac2010-08-031-2/+12
| | | | | Solution returns success for _report_init when help is passed, and caller needs to check for _report existance.
* Use __attribute__ consistently throughout.Alasdair Kergon2010-07-091-63/+63
|
* Revert previous commit as it would return also for incorrect syntax.Zdenek Kabelac2010-07-081-1/+0
|
* Set return value 0 for 'dmsetup -c -o help'Zdenek Kabelac2010-07-081-0/+1
|
* Fix dmlosetup snprintf %llu compiler warning.Alasdair Kergon2010-07-051-3/+1
|
* Add support for new IMPORT{db} udev rule.Peter Rajnoha2010-04-281-1/+2
| | | | | | | | | | This rule appeared in udev v152 and it helps us to support spurious events where we didn't have any flags set (events originated in udevadm trigger or the watch rule). These flags are important to direct the rule application. Now, with the help of this rule, we can regenerate old udev db content. To implement this correctly, we need to flag all proper DM udev events with DM_UDEV_PRIMARY_SOURCE_FLAG. That happens automatically for all ioctls generating events originated in libdevmapper.
* Wipe dm-ioctl parameters in memory after use.Milan Broz2010-04-071-0/+1
|
* Strictly require libudev if udev_sync is used.Peter Rajnoha2010-03-231-7/+2
| | | | | | | | This prevents some confusion when libudev was not found so udev_sync was disabled automatically. Configure was successful though giving only a tiny warning. Also, if "dmsetup udevcreatecookie" is used, never return 0x000000 as a result if udev is not running and keep the output blank.
* Add --help dmsetup option as the synonym for help command.Milan Broz2010-03-081-2/+12
|
* Several changes in dmsetup and libdevmapper:Peter Rajnoha2010-02-151-16/+164
| | | | | | | | | | | | | - add DM_UDEV_DISABLE_LIBRARY_FALLBACK udev flag to rely on udev only - export dm_udev_create_cookie function to create new cookies on demand - add --udevcookie, udevcreatecookie and udevreleasecookie for dmsetup (to support "udev transactions" where one cookie value can be used for several dmsetup calls) - don't use DM_UDEV_DISABLE_CHECKING env. var. anymore and set the state automatically (based on udev and libdevmapper dev path comparison)
* Cleanup gcc warning: cast discards qualifiers from pointer target typeZdenek Kabelac2010-01-141-4/+6
| | | | | API of the library should remain the same as the 'const' is not mangled into the function name in C.
* Add support to disable udev checking: DM_UDEV_DISABLE_CHECKING=1 env. variable.Peter Rajnoha2010-01-111-0/+6
| | | | | | | | | | | Sometimes it is really needed to switch off udev checking and the warnings we show when we detect that udev has not done its job right - the messages like "Udev should have done this and that. Falling back to direct node creation/removal. " etc. This would be especially handy while setting DM_DEV_DIR env var that could be set to a different location than standard /dev (udev can't create nodes/symlinks out of that one directory that is configured into udevd). The exact same situation happens while we're running our tests.
* Add --noudevrules option for dmsetup to disable /dev node management by udev.Peter Rajnoha2010-01-071-4/+24
|
* Cleanup returns for void functions.Zdenek Kabelac2009-12-111-1/+0
|
* Fix coredump and memory leak for 'dmsetup help -c'Zdenek Kabelac2009-12-111-2/+6
|
* Support udev flags even when udev_sync is disabled or not compiled in.Peter Rajnoha2009-11-131-3/+11
| | | | | | | | | | | This provides better support for environments where udev rules are installed but udev_sync is not compiled in (however, using udev_sync is highly recommended). It also provides consistent and expected functionality even when '--noudevsync' option is used. There is still requirement for kernel >= 2.6.31 for the flags to work though (it uses DM cookies to pass the flags into the kernel and set them in udev event environment that we can read in udev rules).
* Add support for querying a device's inactive table.Alasdair Kergon2009-11-061-1/+44
| | | | | Currently this data is invisible to userspace. Requires dm >= 4.16 (likely to be in linux 2.6.33).
* Several changes to udev support code:Peter Rajnoha2009-10-261-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | - we have these levels when the udev rules are processed: 10-dm.rules --> [11-dm-<subsystem>.rules] --> [12-dm-permissions.rules] --> 13-dm-disk.rules --> [...all the other foreign rules...] --> 95-dm-notify.rules - each level can be disabled now by DM_UDEV_DISABLE_{DM, SUBSYSTEM, DISK, OTHER}_RULES_FLAG - add DM_UDEV_DISABLE_DM_RULES_FLAG to disable 10-dm.rules - add DM_UDEV_DISABLE_OTHER_RULES_FLAG to disable all the other (non-dm) rules. We cutoff these rules by using the 'last_rule', so this one should really be used with great care and in well-founded situations. We use this for lvm's hidden and layer devices now. - add a parameter for add_dev_node, rm_dev_node and rename_dev_node so it's possible to switch on/off udev checks - use DM_UDEV_DISABLE_DM_RULES_FLAG and DM_UDEV_DISABLE_SUBSYSTEM_RULES_FLAG if there's no cookie set and we have resume, remove and rename ioctl. This could happen when someone uses the libdevmapper that is compiled with udev_sync but the software does not make use of it. This way we can switch off the rules and fallback to libdevmapper node creation so there's no udev/libdevmapper race.
* Add udev flags support in libdevmapper and provide 'dmsetup udevflags' ↵Peter Rajnoha2009-10-221-6/+62
| | | | command to decode them.
* Add y|--yes option for dmsetup to provide a default 'YES' answer to questions.Peter Rajnoha2009-09-111-15/+27
|
* Fix semaphore includes in dmsetup for udev sync.Peter Rajnoha2009-08-061-30/+34
|
* Add 'udevcookies' command for dmsetup.Peter Rajnoha2009-08-061-0/+41
|
* Add 'udevcomplete_all' command for dmsetup. Export DM_COOKIE_MAGIC in ↵Peter Rajnoha2009-08-061-0/+91
| | | | libdevmapper.h.
* Manage without dm_udev_cleanup?Alasdair Kergon2009-08-031-20/+8
|
* cleanup some ignored return values & 'stack'sAlasdair Kergon2009-08-031-2/+2
|
* Add udevcomplete and --noudevwait to dmsetup.Alasdair Kergon2009-07-311-3/+54
|
* 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(-)
* Add splitname.Alasdair Kergon2009-06-031-5/+32
|
* Add subsystem, vg_name, lv_name, lv_layer fields to dmsetup reports.Alasdair Kergon2009-06-031-1/+121
|
* Fix segfault when using -U, -G and -M options in dmsetup.Peter Rajnoha2009-04-241-1/+1
|
* drop explicit libdevmapper.hAlasdair Kergon2008-10-301-1/+0
|
* Split out dm-logging.h from log.hAlasdair Kergon2008-10-301-1/+1
|
* Add --rows to dmsetup.Alasdair Kergon2008-06-241-1/+12
|
* dmsetup --unquotedAlasdair Kergon2008-06-241-3/+11
|
* avoid compiler warning about cast in OFFSET_OF macroJim Meyering2008-06-181-2/+2
| | | | | * dmsetup/dmsetup.c (OFFSET_OF): Use an equivalent definition that does not cast a pointer value to a narrower type.
* change --prefixes to --nameprefixesAlasdair Kergon2008-06-061-6/+6
|
* Use 'active' for !suspended as the code already uses that.Alasdair Kergon2008-04-211-1/+1
|
* Add 3 new reporting colums: tables_loaded, readonly, suspended.Alasdair Kergon2008-04-211-0/+60
|
* Add --prefixes to dmsetupAlasdair Kergon2008-04-211-2/+17
| | | | | | E.g. dmsetup info -c --prefixes Again, might change the name of this option.
* Calculate string size within dm_pool_grow_object.Alasdair Kergon2008-04-191-3/+3
|
* pre-releaseAlasdair Kergon2007-12-051-5/+4
|
* read_ahead in report with underscore to match lvm2 fieldAlasdair Kergon2007-12-051-1/+1
|
* fixmeAlasdair Kergon2007-12-031-0/+1
|
* fixesAlasdair Kergon2007-12-031-1/+1
|
* read_ahead node opsAlasdair Kergon2007-11-301-3/+8
|
* refine specification of dmsetup readaheadAlasdair Kergon2007-11-291-9/+26
|
* add read_ahead functions to library and dmsetup --readaheadAlasdair Kergon2007-11-271-1/+35
| | | | (Not live yet.)