1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-18 10:04:20 +03:00
Jim Meyering 06b8fee542 Allow $DM_DEV_DIR envvar to override default of "/dev".
* dmsetup/dmsetup.c (DEV_PATH): Remove definition.
(parse_loop_device_name): Add parameter: dev_dir.
Declare the "dev" parameter to be "const".
Use dev_dir, not DEV_PATH.  Handle the case in which dev_dir
does not end in a "/".
(_get_abspath): Declare "path" parameter "const", to match.
(_process_losetup_switches): Add parameter: dev_dir.
Pass dev_dir to parse_loop_device_name.
(_process_switches): Add parameter: dev_dir.
Pass dev_dir to _process_losetup_switches.
(main): Set dev_dir from the DM_DEV_DIR envvar, else to "/dev".
Call dm_set_dev_dir.
* lib/libdm-common.c (dm_set_dev_dir): Rewrite to be careful
about boundary conditions, now that dev_dir may be tainted.
* man/dmsetup.8: Mention $DM_DEV_DIR.


Author: Jim Meyering <meyering@redhat.com>
2007-10-09 12:14:48 +00:00
..
2007-04-26 17:14:57 +00:00
2002-11-18 14:04:08 +00:00
2003-11-14 16:17:55 +00:00
2006-11-23 17:44:15 +00:00
2002-11-18 14:04:08 +00:00
2002-11-18 14:04:08 +00:00
2004-03-22 15:08:50 +00:00
2004-11-12 15:59:09 +00:00
2002-11-18 14:04:08 +00:00
2005-10-31 15:49:07 +00:00
2007-01-18 22:33:24 +00:00
2002-11-18 14:04:08 +00:00
2007-06-15 20:46:04 +00:00
2002-11-18 14:04:08 +00:00
2007-01-23 13:08:34 +00:00
2004-11-12 15:59:09 +00:00
2003-11-14 16:17:55 +00:00
2002-11-18 14:04:08 +00:00
2003-11-14 16:17:55 +00:00
2002-11-18 14:04:08 +00:00
2003-11-14 16:17:55 +00:00
2007-06-15 20:46:04 +00:00
2006-08-18 22:35:59 +00:00
2004-12-09 16:58:31 +00:00