_check_sids previously grepped the entire output of dm_getall_sessions for sids,...
authorDavid Disseldorp <ddiss@sgi.com>
Wed, 7 Feb 2007 14:37:33 +0000 (14:37 +0000)
committerDavid Disseldorp <ddiss@sgi.com>
Wed, 7 Feb 2007 14:37:33 +0000 (14:37 +0000)
commit48b4c4b13ab6e07341870d5acf84600aaa7e8ab8
treefdc1c785704c003a0d4a1e8996dce5b79245e6d2
parentdfd5bd939e92da72bb6f2adecb65a5f6de5d8b83
_check_sids previously grepped the entire output of dm_getall_sessions for sids, which is:
ret=dm_getall_sessions return value
rnelem=number of sessions
sids="sid1 sid2 ... sidn "

If the session id of a previously destroyed session matches the current number of sessions (rnelem),
then _check_sids() $PREV_DESTROYED_SID will _not_ flag ERROR: SID(s) not created.

This fix also makes _check_sids() not rely on sids being consecutive. DMF may be running on a FS in background.

Tested on Linux and Irix.
Merge of master-melb:xfs-cmds:28043a by kenmcd.

  change _check_sids to go through sids line 1 by 1 checking for matches
151