Bug 126886 - gnbd_import failing on unlinking nonexistent device file
gnbd_import failing on unlinking nonexistent device file
Status: CLOSED CURRENTRELEASE
Product: Red Hat Cluster Suite
Classification: Red Hat
Component: gfs (Show other bugs)
3
All Linux
medium Severity medium
: ---
: ---
Assigned To: Ben Marzinski
Cluster QE
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2004-06-28 15:26 EDT by Derek Anderson
Modified: 2010-01-11 21:53 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-07-14 15:52:36 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Derek Anderson 2004-06-28 15:26:02 EDT
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
[root@link-12 root]#

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.

How reproducible:


Steps to Reproduce:
1. modprobe gnbd
2. gnbd_import
3.
  
Actual results:


Expected results:


Additional info:
Comment 1 Ben Marzinski 2004-06-28 15:59:38 EDT
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
Comment 2 Dean Jansa 2004-07-14 15:52:36 EDT
Verified 

Note You need to log in before you can comment on or make changes to this bug.