From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: James Harper <james.harper@bendigoit.com.au>
Cc: xen-devel@lists.xensource.com
Subject: Re: vscsi and /dev/tape/by-path
Date: Tue, 11 Jan 2011 12:37:24 -0500 [thread overview]
Message-ID: <20110111173724.GC14017@dumpdata.com> (raw)
In-Reply-To: <AEC6C66638C05B468B556EA548C1A77D01BB8F16@trantor>
On Tue, Jan 11, 2011 at 01:41:29PM +1100, James Harper wrote:
> I use vscsi fairly extensively (under Windows mainly for testing
> baremetal restores from tape), and have a problem that's been bugging me
> for ages. If I use "/dev/st4" it works fine, but obviously that's
> hopeless unreliable as it relies on device enumeration order at boot. I
> want to use something like "
> /dev/tape/by-path/pci-0000:01:08.0-scsi-0:0:3:0-st" so that I am
> guaranteed of getting the right drive, but vscsi doesn't appear to
> support it.
>
> Digging into it, I see function vscsi_get_hctl_and_devname_by that
> attempts to figure out the sg device that corresponds to whatever I
> specified in the config file. If I could modify that function to simply
> follow the symlinks until I get to a real device that would probably be
> sufficient, but is that the right way to do it?
Yup. Thought I would think that using the /dev/by-uuid/ would be a better
way of doing it in case you want to passthrough a SCSI disk for example?
Thought what if you want to pass in a SCSI scanner? Would that work?
next prev parent reply other threads:[~2011-01-11 17:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-11 2:41 vscsi and /dev/tape/by-path James Harper
2011-01-11 17:37 ` Konrad Rzeszutek Wilk [this message]
2011-01-11 21:00 ` James Harper
2011-01-11 22:00 ` Konrad Rzeszutek Wilk
2011-01-11 22:27 ` James Harper
2011-01-11 22:58 ` Konrad Rzeszutek Wilk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110111173724.GC14017@dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=james.harper@bendigoit.com.au \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.