blkdevalias.git
8 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

8 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

8 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

8 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

8 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.

8 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()

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

8 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

8 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'

8 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

8 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().

8 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.

8 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

8 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

8 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

8 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.

8 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

8 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

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

8 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

8 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.

8 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

8 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"

8 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

8 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.

8 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

8 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

8 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.

8 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

8 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.

8 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.

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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.

8 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

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

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

8 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.

8 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.

8 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

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