Red Hat Bugzilla – Bug 126886
gnbd_import failing on unlinking nonexistent device file
Last modified: 2010-01-11 21:53:18 EST
Description of problem:
If you run gnbd_import without the device /dev/gnbd_ctl, the tool
errors out trying to unlink this nonexistent file.
cluster/gnbd/tools/gnbd_import/gnbd_import.c: get_dev() needs to
handle this case better.
[root@link-12 root]# modprobe gnbd
[root@link-12 root]# gnbd_import
gnbd_import: ERROR cannot remove /dev/gnbd_ctl : No such file or directory
[root@link-12 root]# ls -l /dev/gnbd*
ls: /dev/gnbd*: No such file or directory
Version-Release number of selected component (if applicable):
[root@link-12 gnbd_import]# gnbd_import -V
gnbd_import DEVEL.1088451293 (built Jun 28 2004 14:41:24)
Copyright (C) Red Hat, Inc. 2004 All rights reserved.
Steps to Reproduce:
1. modprobe gnbd
There was a check in gnbd_import that tried to remove a file if it
wasn't present. It no longer does this, as it was pretty obviously
not correct. The update has been checked in to cvs on s.r.c