blkdevalias.git
6 years agoblkdevalias-0.10 blkdevalias-0.10-1
Bryn M. Reeves [Wed, 6 Feb 2013 18:04:58 +0000 (18:04 +0000)]
blkdevalias-0.10

6 years agoFix parameter validation and error reporting in ba_map()
Bryn M. Reeves [Wed, 6 Feb 2013 18:01:14 +0000 (18:01 +0000)]
Fix parameter validation and error reporting in ba_map()

ba_map() tried to use parameters before validating them leading
to user-visible bash errors.

Also make it clear that a device that does not match on partition
or type is not an error (even though it's a 'failure' for the
udev rule).

This helps when manually debugging mapping by handcrafting udev
environment variables, e.g.:

BA_WWID=0QEMU_QEMU_HARDDISK_drive-scsi0-0-3
BA_NAME=oracleasm/disks/DSK4
BA_TYPE=mpath
BA_USER=oracle
BA_GROUP=oracle
BA_MODE=0620

BA_WWID=0QEMU_QEMU_HARDDISK_drive-scsi0-0-0
BA_NAME=oracleasm/disks/DSK1
BA_TYPE=sd
BA_USER=oracle
BA_GROUP=oracle
BA_MODE=0620

Usage: /sbin/blkdevalias map <wwid>
ERROR: WWID "qux" is not mapped to any blkdevalias device
Usage: /sbin/blkdevalias map <wwid>

6 years agoClean up function ordering
Bryn M. Reeves [Fri, 1 Feb 2013 18:48:19 +0000 (18:48 +0000)]
Clean up function ordering

6 years agoFixes to blkdevalias.8
Bryn M. Reeves [Fri, 1 Feb 2013 18:40:52 +0000 (18:40 +0000)]
Fixes to blkdevalias.8

6 years agoFix warning message when adding alias
Bryn M. Reeves [Fri, 1 Feb 2013 18:33:54 +0000 (18:33 +0000)]
Fix warning message when adding alias

Use the correct local variable for the current device name when
warning the user that the new alias will replace an existing
mapping.

6 years agoMake sure lock file is owned by blkdevalias user and group
Bryn M. Reeves [Fri, 1 Feb 2013 18:31:31 +0000 (18:31 +0000)]
Make sure lock file is owned by blkdevalias user and group

Set the owner of /var/lock/blkdevalias to the configured user
and group when setting config file ownership and when locking and
unlocking the file.

6 years agoFix blkdevalias configure output
Bryn M. Reeves [Fri, 1 Feb 2013 18:18:00 +0000 (18:18 +0000)]
Fix blkdevalias configure output

6 years agoFix date format in RPM spec file %changelog blkdevalias-0.09-1
Bryn M. Reeves [Fri, 1 Feb 2013 18:13:30 +0000 (18:13 +0000)]
Fix date format in RPM spec file %changelog

6 years agoblkevalias-0.09 blkdevalias-0.09
Bryn M. Reeves [Fri, 1 Feb 2013 18:04:29 +0000 (18:04 +0000)]
blkevalias-0.09

6 years agoFix warning message when adding aliases
Bryn M. Reeves [Fri, 1 Feb 2013 18:00:54 +0000 (18:00 +0000)]
Fix warning message when adding aliases

When a alias already maps to a different disk print the alias
instead of the disk name when warning the user.

6 years agoMake locking errors immediately fatal
Bryn M. Reeves [Fri, 1 Feb 2013 17:40:05 +0000 (17:40 +0000)]
Make locking errors immediately fatal

6 years agoFix locking and command status output
Bryn M. Reeves [Fri, 1 Feb 2013 17:37:28 +0000 (17:37 +0000)]
Fix locking and command status output

Fix flock usage to ensure the proper file descriptor is used and
propagate and check exit statuses when using locking and unlocking
functions.

6 years agoAdd flock(2) locking for the map
Bryn M. Reeves [Wed, 23 Jan 2013 11:44:03 +0000 (11:44 +0000)]
Add flock(2) locking for the map

Since multiple administrators as well as udev may be running the
script concurrently use flock(2)-based locking to protect the
database from concurrent updates.

Acquire an exclusive flock lock on /var/lock/blkdevalias for any
operation that modifies the map file. Acquire a shared lock for
all read-only operations.

6 years agoDebug logging improvements
Bryn M. Reeves [Wed, 23 Jan 2013 11:11:58 +0000 (11:11 +0000)]
Debug logging improvements

* Do not hard-code the function name in _debug() calls; use the
bash $FUNCNAME variable instead.

* Fix whitespace in a couple of device debugging messages.

* Ensure all dmsetup calls have proper message prefixes.

6 years agoClean up global variables
Bryn M. Reeves [Tue, 22 Jan 2013 17:55:17 +0000 (17:55 +0000)]
Clean up global variables

6 years agoFix readlink usage
Bryn M. Reeves [Tue, 22 Jan 2013 17:48:31 +0000 (17:48 +0000)]
Fix readlink usage

Always use the BA_READLINK variable to invoke readlink.

6 years agoPartitioned device fixes
Bryn M. Reeves [Tue, 22 Jan 2013 16:52:50 +0000 (16:52 +0000)]
Partitioned device fixes

Fix device refresh to properly handle partitioned devices and
ensure that ba_deletedisk() generates a target device name and
not an alias path.

6 years agoStore BA_MODE during config file writes
Bryn M. Reeves [Tue, 22 Jan 2013 15:17:32 +0000 (15:17 +0000)]
Store BA_MODE during config file writes

BA_MODE was missing from the set of configuration parameters
written to blkdevalias.conf.

6 years agoDocument scan and refresh commands
Bryn M. Reeves [Tue, 22 Jan 2013 13:20:49 +0000 (13:20 +0000)]
Document scan and refresh commands

Add mention of the scandisks and refresh commands to the README
file and man page.

6 years agoAdd refresh command
Bryn M. Reeves [Tue, 22 Jan 2013 13:19:53 +0000 (13:19 +0000)]
Add refresh command

Add a new 'refresh' command to allow the user to refresh a single
alias by name.

6 years agoAdd device refresh capability to scandisks command
Bryn M. Reeves [Tue, 22 Jan 2013 12:47:39 +0000 (12:47 +0000)]
Add device refresh capability to scandisks command

When issued with '-r' the scandisk command will now request change
uevents for all discovered devices. This will cause the latest
configuration parameters to be applied including device name,
symlink directory and ownership/permissions.

This may be used after manually editing the configuration or
mapping files to update the system to the current configuration.

6 years agoFix local variable usage in ba_configure()
Bryn M. Reeves [Tue, 22 Jan 2013 12:26:54 +0000 (12:26 +0000)]
Fix local variable usage in ba_configure()

6 years agoAdd comment headers to configuration and map files
Bryn M. Reeves [Tue, 22 Jan 2013 12:11:19 +0000 (12:11 +0000)]
Add comment headers to configuration and map files

Add comments to the automatically generated configuration files
indicating that the contents will be overwritten when a user
issues a re-configuration command.

6 years agoAdd scandisks implementation
Bryn M. Reeves [Mon, 21 Jan 2013 23:16:53 +0000 (23:16 +0000)]
Add scandisks implementation

Scan the configured device directory and print the WWID and alias
target for each device found.

6 years agoFix long lines
Bryn M. Reeves [Mon, 21 Jan 2013 22:51:00 +0000 (22:51 +0000)]
Fix long lines

6 years agoAdd missing comments in blkdevalias
Bryn M. Reeves [Mon, 21 Jan 2013 21:52:45 +0000 (21:52 +0000)]
Add missing comments in blkdevalias

6 years agoFix typo in blkdevalias.conf.5 ('permissins')
Bryn M. Reeves [Mon, 21 Jan 2013 21:29:01 +0000 (21:29 +0000)]
Fix typo in blkdevalias.conf.5 ('permissins')

6 years agoblkdevalias-0.08 blkdevalias-0.08-1
Bryn M. Reeves [Mon, 21 Jan 2013 20:54:47 +0000 (20:54 +0000)]
blkdevalias-0.08

6 years agoAdd manual pages to spec file and update ChangeLog
Bryn M. Reeves [Mon, 21 Jan 2013 20:53:37 +0000 (20:53 +0000)]
Add manual pages to spec file and update ChangeLog

Add man page to %files and update ChangeLog for 0.08 release.

6 years agoAdd Makefile support for manual pages
Bryn M. Reeves [Mon, 21 Jan 2013 20:52:14 +0000 (20:52 +0000)]
Add Makefile support for manual pages

6 years agoAdd blkdevalias.map.5
Bryn M. Reeves [Mon, 21 Jan 2013 20:25:23 +0000 (20:25 +0000)]
Add blkdevalias.map.5

Document the map file format.

6 years agoAdd blkdevalias.conf.5
Bryn M. Reeves [Mon, 21 Jan 2013 20:06:40 +0000 (20:06 +0000)]
Add blkdevalias.conf.5

Document the configuration file format.

6 years agoDocument debugging and configuration in manual page
Bryn M. Reeves [Mon, 21 Jan 2013 19:45:58 +0000 (19:45 +0000)]
Document debugging and configuration in manual page

Add references to configuration files and the BA_DEBUG
environment variable.

6 years agoAdd blkdevalias.8 man page
Bryn M. Reeves [Mon, 21 Jan 2013 14:52:43 +0000 (14:52 +0000)]
Add blkdevalias.8 man page

6 years agoFix ba_map regression
Bryn M. Reeves [Mon, 21 Jan 2013 14:16:37 +0000 (14:16 +0000)]
Fix ba_map regression

The local variable fixes introduced a regression in device mapping
preventing any aliases from being linked by udev.

Fix this by correcting local variable name usage and dmsetup
invocation.

This patch also improved debug logging in these functions to make
debugging future problems easier.

Note that the map command depends on a udev-like environment and
this must be supplied manually if testing outside of the context
of udev rule processing, for e.g.:

  [root@rhel6-vm1 ~]# ID_BUS=scsi DEVNAME=sda BA_DEBUG=yes \
     /sbin/blkdevalias map 0QEMU_QEMU_HARDDISK_drive-scsi0-0-0
  ba_map: 0QEMU_QEMU_HARDDISK_drive-scsi0-0-0 -> DSK1
  ba_get_partnum: sda
  calling /sbin/dmsetup info sda
  ba_get_partnum: non-dm device sda NUM=
  ba_map: WWID=0QEMU_QEMU_HARDDISK_drive-scsi0-0-0 PART=0 TYPE=sd
  BA_WWID=0QEMU_QEMU_HARDDISK_drive-scsi0-0-0
  BA_NAME=oracleasm/disks/DSK1
  BA_TYPE=sd
  BA_USER=oracle
  BA_GROUP=oracle
  BA_MODE=0660

  [root@rhel6-vm1 ~]# DM_NAME=mpathc DEVNAME=dm-1 \
     /sbin/blkdevalias map 0QEMU_QEMU_HARDDISK_drive-scsi0-0-2
  BA_WWID=0QEMU_QEMU_HARDDISK_drive-scsi0-0-2
  BA_NAME=oracleasm/disks/DSK3
  BA_TYPE=mpath
  BA_USER=oracle
  BA_GROUP=oracle
  BA_MODE=0660

6 years agoMake dmsetup calls consistent
Bryn M. Reeves [Mon, 21 Jan 2013 13:08:29 +0000 (13:08 +0000)]
Make dmsetup calls consistent

Define BA_DMSETUP and use it consistently when calling the dmsetup
command.

6 years agoMake usage, error reporting, and stdio use consistent
Bryn M. Reeves [Mon, 21 Jan 2013 13:06:04 +0000 (13:06 +0000)]
Make usage, error reporting, and stdio use consistent

Normal messages were reported with "echo". Add a new _print()
function to send this output to stdout.

Make all usage messages come through a common ba_usage() printing
either a generic message or a sub-command specified message.

6 years agoUpdate copyright date to 2013
Bryn M. Reeves [Mon, 21 Jan 2013 12:43:26 +0000 (12:43 +0000)]
Update copyright date to 2013

6 years agoMake local variable usage consistent throughout
Bryn M. Reeves [Mon, 21 Jan 2013 12:42:41 +0000 (12:42 +0000)]
Make local variable usage consistent throughout

Fix sloppy local variable naming and usage. All local variables
are declared and all start with a '_' prefix.

6 years agoAdd support for non-privileged users and device refresh
Bryn M. Reeves [Mon, 21 Jan 2013 11:54:57 +0000 (11:54 +0000)]
Add support for non-privileged users and device refresh

Add two related features: the ability for the system administrator
(root) to define a non-root account that has permission to update
the device map and the ability for the script to automatically
request change events on modified devices.

This currently requires the nominated user to have sudo privileges
on the host. This can be removed in future versions by providing
a polkit integrated command to issue these events. This would also
simplify parsing and device verification in the script by moving
these to an external command.

6 years agoAdd device mode support
Bryn M. Reeves [Fri, 18 Jan 2013 21:59:17 +0000 (21:59 +0000)]
Add device mode support

Add a (hidden) configuration option to control device mode.
Setting the BA_MODE configuration (default 0660) variable causes
this to be used for device modes.

6 years agoDo not print debug messages by default
Bryn M. Reeves [Fri, 18 Jan 2013 17:12:04 +0000 (17:12 +0000)]
Do not print debug messages by default

Users can select debug output by setting the BA_DEBUG environment
variable:

  [root@rhel6-vm1 ~]# blkdevalias deletedisk DSK1
  Removing wwid map disk "DSK1":                                  [  OK  ]
  [root@rhel6-vm1 ~]# BA_DEBUG="yes" blkdevalias createdisk DSK1 /dev/sda
  ba_createdisk: DEV="/dev/sda" ALIAS="DSK1"
  ba_scsi_id: getting ID for device /dev/sda
  ba_scsi_id: calling "/sbin/scsi_id -g -u /dev/sda"
  ba_createdisk: WWID="0QEMU_QEMU_HARDDISK_drive-scsi0-0-0"
  ba_get_partnum: /dev/sda
  ba_createdisk: PART="0"
  ba_add_wwid_mapping: WWID="0QEMU_QEMU_HARDDISK_drive-scsi0-0-0" ALIAS="DSK1" TYPE="sd" PART="0"

6 years agoMake listdisks output more verbose
Bryn M. Reeves [Fri, 18 Jan 2013 16:35:04 +0000 (16:35 +0000)]
Make listdisks output more verbose

Include columns for the managed device name and current target in
listdisks output.

6 years agoImprove createdisks debug output
Bryn M. Reeves [Fri, 18 Jan 2013 16:34:35 +0000 (16:34 +0000)]
Improve createdisks debug output

6 years agoUpdate README
Bryn M. Reeves [Fri, 18 Jan 2013 16:31:32 +0000 (16:31 +0000)]
Update README

6 years agoFix ba_querydisks -> ba_querydisk
Bryn M. Reeves [Tue, 20 Nov 2012 16:34:39 +0000 (16:34 +0000)]
Fix ba_querydisks -> ba_querydisk

The call to querydisk has a typo in the function name (the asm
comand is 'querydisk' so we should match that).

6 years agoFix spec file typo to allow 0.07 to build blkdevalias-0.07-1
Bryn M. Reeves [Fri, 16 Nov 2012 08:01:49 +0000 (08:01 +0000)]
Fix spec file typo to allow 0.07 to build

6 years agoUpdate spec file for 0.07 release
Bryn M. Reeves [Fri, 16 Nov 2012 07:57:30 +0000 (07:57 +0000)]
Update spec file for 0.07 release

6 years agoUpdate readme for configuration file renames
Bryn M. Reeves [Fri, 16 Nov 2012 07:48:59 +0000 (07:48 +0000)]
Update readme for configuration file renames

map -> blkdevalias.map
conf -> blkdevalias.conf

6 years agoUpdate spec file for 0.06 release blkdevalias-0.06-1
Bryn M. Reeves [Fri, 16 Nov 2012 07:45:42 +0000 (07:45 +0000)]
Update spec file for 0.06 release

6 years agoDeal with duplicate WWIDs and aliases correctly
Bryn M. Reeves [Thu, 15 Nov 2012 23:18:17 +0000 (23:18 +0000)]
Deal with duplicate WWIDs and aliases correctly

If a name or WWID is already present when creating a new alias
warn the user and replace it with the new values.

6 years agoAdd missing partition map unset in ba_del_wwid_mapping()
Bryn M. Reeves [Thu, 15 Nov 2012 22:50:09 +0000 (22:50 +0000)]
Add missing partition map unset in ba_del_wwid_mapping()

6 years agoRemove unused debug function
Bryn M. Reeves [Thu, 15 Nov 2012 22:49:10 +0000 (22:49 +0000)]
Remove unused debug function

6 years agoFix WM->BA in default blkdevalias.conf
Bryn M. Reeves [Thu, 15 Nov 2012 22:43:20 +0000 (22:43 +0000)]
Fix WM->BA in default blkdevalias.conf

6 years agoFix help message to include 'listdisks'
Bryn M. Reeves [Thu, 15 Nov 2012 22:09:52 +0000 (22:09 +0000)]
Fix help message to include 'listdisks'

6 years agoUpdate spec file for 0.05 release blkdevalias-0.05-1
Bryn M. Reeves [Thu, 15 Nov 2012 22:08:34 +0000 (22:08 +0000)]
Update spec file for 0.05 release

6 years agoAdd proper partition and type support
Bryn M. Reeves [Thu, 15 Nov 2012 22:02:05 +0000 (22:02 +0000)]
Add proper partition and type support

Store the partition number (use 0 for whole disk) as well as the
type in the map and enforce type and partition match in map().

6 years agoDon't keep ChangeLog in git
Bryn M. Reeves [Thu, 15 Nov 2012 10:00:59 +0000 (10:00 +0000)]
Don't keep ChangeLog in git

Since the ChangeLog is now generated automatically from git logs
it's silly to also store it in git. Just append it to the tarball
when generating an archive.

6 years agoRename configuration and map files blkdevalias-0.04-1
Bryn M. Reeves [Thu, 15 Nov 2012 00:11:18 +0000 (00:11 +0000)]
Rename configuration and map files

Rename map -> blkdevalias.map and conf -> blkdevalias.conf

6 years agoUpdate ChangeLog and blkdevalias.spec for 0.04 release
Bryn M. Reeves [Wed, 14 Nov 2012 23:45:01 +0000 (23:45 +0000)]
Update ChangeLog and blkdevalias.spec for 0.04 release

6 years agoFix ba_scsi_id() for partition device arguments
Bryn M. Reeves [Wed, 14 Nov 2012 23:44:38 +0000 (23:44 +0000)]
Fix ba_scsi_id() for partition device arguments

6 years agoAdd mpath-parent to Makefile and fix strings
Bryn M. Reeves [Wed, 14 Nov 2012 23:28:33 +0000 (23:28 +0000)]
Add mpath-parent to Makefile and fix strings

Add mpath-parent to Makefile install target and fix string quoting.

6 years agoAdd ChangeLog to version control
Bryn M. Reeves [Wed, 14 Nov 2012 23:12:39 +0000 (23:12 +0000)]
Add ChangeLog to version control

6 years agoAdd mkchangelog.sh script
Bryn M. Reeves [Wed, 14 Nov 2012 23:09:48 +0000 (23:09 +0000)]
Add mkchangelog.sh script

Add a script to generate ChangeLog from git-log

6 years agoAdd Makefile
Bryn M. Reeves [Wed, 14 Nov 2012 23:05:05 +0000 (23:05 +0000)]
Add Makefile

6 years agoDrop git hash from version and bump to 0.04
Bryn M. Reeves [Wed, 14 Nov 2012 22:55:17 +0000 (22:55 +0000)]
Drop git hash from version and bump to 0.04

6 years agoPrefix logging functions with '_'
Bryn M. Reeves [Wed, 14 Nov 2012 19:10:49 +0000 (19:10 +0000)]
Prefix logging functions with '_'

Prefix the names of the logging functions debug(), warn(), and
error() with an underscore.

6 years agoAdd GPL license header to blkdevalias
Bryn M. Reeves [Wed, 14 Nov 2012 19:09:17 +0000 (19:09 +0000)]
Add GPL license header to blkdevalias

6 years agoChange {nick,}name to alias in all comments and messages
Bryn M. Reeves [Wed, 14 Nov 2012 19:03:19 +0000 (19:03 +0000)]
Change {nick,}name to alias in all comments and messages

Complete the rename of "name" to "alias"

6 years agoHandle empty lines in map file
Bryn M. Reeves [Wed, 14 Nov 2012 14:28:42 +0000 (14:28 +0000)]
Handle empty lines in map file

6 years agoSpecfile fixes
Bryn M. Reeves [Thu, 8 Nov 2012 15:47:07 +0000 (15:47 +0000)]
Specfile fixes

Ensure that mpath-parent is properly installed.

6 years agoTruncate default map file to zero entries
Bryn M. Reeves [Thu, 8 Nov 2012 12:29:16 +0000 (12:29 +0000)]
Truncate default map file to zero entries

6 years agoFix typo (missing ' ') in querydisk output
Bryn M. Reeves [Thu, 8 Nov 2012 12:13:49 +0000 (12:13 +0000)]
Fix typo (missing ' ') in querydisk output

6 years agoAllow abbreviated commands
Bryn M. Reeves [Thu, 1 Nov 2012 01:39:18 +0000 (01:39 +0000)]
Allow abbreviated commands

Allow 'disk' and 'disks' to be dropped from command names.

6 years agoInstall mpath-parent in rpm spec file
Bryn M. Reeves [Thu, 1 Nov 2012 01:33:01 +0000 (01:33 +0000)]
Install mpath-parent in rpm spec file

6 years agoWork around to get WWID for mpath partitions
Bryn M. Reeves [Thu, 1 Nov 2012 01:29:23 +0000 (01:29 +0000)]
Work around to get WWID for mpath partitions

Partitions don't accept SG_IO ioctls anymore so we need
to run scsi_id on the parent mpath device. There's no
way to get this from the current standard dm udev
environment so add a hack to generate it from DM_NAME.

6 years agoRename NNAME (nickname) -> ALIAS
Bryn M. Reeves [Wed, 31 Oct 2012 20:12:44 +0000 (20:12 +0000)]
Rename NNAME (nickname) -> ALIAS

The script was previously claled nickname. ALIAS is a better name
for the variable that makes the use more clear.

6 years agoUpdate configure message for name change
Bryn M. Reeves [Wed, 31 Oct 2012 20:09:05 +0000 (20:09 +0000)]
Update configure message for name change

6 years agoRename wwid add/del functions to match ba_ prefix
Bryn M. Reeves [Wed, 31 Oct 2012 20:07:55 +0000 (20:07 +0000)]
Rename wwid add/del functions to match ba_ prefix

6 years agoRename WM_ and wm_ prefixes to BA_ and ba_
Bryn M. Reeves [Wed, 31 Oct 2012 20:04:52 +0000 (20:04 +0000)]
Rename WM_ and wm_ prefixes to BA_ and ba_

Complete rename from WwidMap to BlkdevAlias

6 years agoFix quoting in string comparisons
Bryn M. Reeves [Wed, 31 Oct 2012 20:02:01 +0000 (20:02 +0000)]
Fix quoting in string comparisons

6 years agoAdd udev rule file to RPM file list
Bryn M. Reeves [Wed, 31 Oct 2012 19:47:32 +0000 (19:47 +0000)]
Add udev rule file to RPM file list

6 years agoFix packaging of udev rules file
Bryn M. Reeves [Wed, 31 Oct 2012 19:34:00 +0000 (19:34 +0000)]
Fix packaging of udev rules file

6 years agoFix udev rules to use new command name
Bryn M. Reeves [Wed, 31 Oct 2012 19:26:19 +0000 (19:26 +0000)]
Fix udev rules to use new command name

6 years agoInstall empty map from tarball instead of touching
Bryn M. Reeves [Wed, 31 Oct 2012 19:23:43 +0000 (19:23 +0000)]
Install empty map from tarball instead of touching

6 years agoAdd usage information and examples to README
Bryn M. Reeves [Wed, 31 Oct 2012 19:22:59 +0000 (19:22 +0000)]
Add usage information and examples to README

6 years agoAdd RPM spec file to version control
Bryn M. Reeves [Wed, 31 Oct 2012 19:22:45 +0000 (19:22 +0000)]
Add RPM spec file to version control

6 years agoUpdate udev rules file
Bryn M. Reeves [Wed, 31 Oct 2012 18:59:02 +0000 (18:59 +0000)]
Update udev rules file

Correct several bugs in the udev rules and fix support for whole-
disk vs. partitioned devices. Udev link priorities are used to
prefer multipath over sd and partitions over whole-disks. This
may not work for all situations but covers those documented in
the existing guides.

6 years agoAdd empty map file templatet to version control
Bryn M. Reeves [Wed, 31 Oct 2012 18:58:31 +0000 (18:58 +0000)]
Add empty map file templatet to version control

6 years agoRename wwidmap -> blkdevalias
Bryn M. Reeves [Wed, 31 Oct 2012 18:58:16 +0000 (18:58 +0000)]
Rename wwidmap -> blkdevalias

6 years agoAdd COPYING and README
Bryn M. Reeves [Tue, 30 Oct 2012 17:58:42 +0000 (17:58 +0000)]
Add COPYING and README

6 years agoFix querydisk -d output
Bryn M. Reeves [Tue, 30 Oct 2012 16:52:02 +0000 (16:52 +0000)]
Fix querydisk -d output

Stat's field formatters produce maj:min values in hex. Pass them
through the shell's arithmetic expansion to decmialise them before
using so that they match the oracleasm and ls -l output.

6 years agoAdd wm_querydisk implementation
Bryn M. Reeves [Tue, 30 Oct 2012 16:39:09 +0000 (16:39 +0000)]
Add wm_querydisk implementation

Implement "wwidmap querydisk" to print the same information as the
oracleasm equivalent.

6 years agoMisc. tidyups
Bryn M. Reeves [Tue, 30 Oct 2012 16:38:01 +0000 (16:38 +0000)]
Misc. tidyups
- Load map for all commands
- Tidy up debug output
- Add traling newline to configure message

6 years agoInitial commit
Bryn M. Reeves [Tue, 30 Oct 2012 00:10:07 +0000 (00:10 +0000)]
Initial commit