fix add_dev() handling of broken links
authorDan Williams <dan.j.williams@intel.com>
Mon, 10 Nov 2008 16:30:07 +0000 (09:30 -0700)
committerDan Williams <dan.j.williams@intel.com>
Mon, 10 Nov 2008 16:30:07 +0000 (09:30 -0700)
commitbf68e9d9ab185121b6004fc81b531bce8348726d
treea42e2ce4644e0443cf98e2761a1f27a72204f955
parentef70b9f4ef7a3a9f70b3a09b3a55b1cc675c0a37
fix add_dev() handling of broken links

Resolves issues like:
mdadm -Ss
mdadm: unable to open /dev/md/r1: No such file or directory

...where /dev/md/r1 points to a removed device.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
util.c