Allow dev_open to work on read-only /dev
authorNeilBrown <neilb@suse.de>
Sun, 29 Aug 2010 22:48:48 +0000 (08:48 +1000)
committerNeilBrown <neilb@suse.de>
Sun, 29 Aug 2010 22:48:48 +0000 (08:48 +1000)
commit6df6a774bff2fc6e2ab3f4092620ab7657c984aa
treec5ea27c154b4f01a164ab9b3174845acb3f2ca7e
parentef83fe7cba7355d3da330325e416747b0696baef
Allow dev_open to work on read-only /dev

/dev could be read-only in which case we cannot make devices
there.
So dev_open should first try to use an existing device name,
and if that doesn't work try creating a node in /dev or /tmp.

Reported-by: PaweĊ‚ Sikora <pluto@agmk.net>
Signed-off-by: NeilBrown <neilb@suse.de>
util.c