* [Qemu-devel] How to find backing file for qemu-nbd?
@ 2017-02-07 14:25 Nikolay Ivanets
2017-02-07 15:23 ` Daniel P. Berrange
2017-02-07 15:36 ` Eric Blake
0 siblings, 2 replies; 4+ messages in thread
From: Nikolay Ivanets @ 2017-02-07 14:25 UTC (permalink / raw)
To: qemu-devel
Is there any way to find source file supplied for qemu-nbd similar to loop
device:
cat /sys/block/loop0/loop/backing_file
?
--
Nikolay Ivanets
Mobile: +380979184774
Skype: n_ivanets
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] How to find backing file for qemu-nbd?
2017-02-07 14:25 [Qemu-devel] How to find backing file for qemu-nbd? Nikolay Ivanets
@ 2017-02-07 15:23 ` Daniel P. Berrange
2017-02-07 15:36 ` Eric Blake
1 sibling, 0 replies; 4+ messages in thread
From: Daniel P. Berrange @ 2017-02-07 15:23 UTC (permalink / raw)
To: Nikolay Ivanets; +Cc: qemu-devel
On Tue, Feb 07, 2017 at 04:25:27PM +0200, Nikolay Ivanets wrote:
> Is there any way to find source file supplied for qemu-nbd similar to loop
> device:
>
> cat /sys/block/loop0/loop/backing_file
Nothing simple like that - you have to find the qemu-nbd process and see
what file(s) it has open I'm afraid and figure out which is the image file
from there.
Regards,
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://entangle-photo.org -o- http://search.cpan.org/~danberr/ :|
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] How to find backing file for qemu-nbd?
2017-02-07 14:25 [Qemu-devel] How to find backing file for qemu-nbd? Nikolay Ivanets
2017-02-07 15:23 ` Daniel P. Berrange
@ 2017-02-07 15:36 ` Eric Blake
2017-02-07 21:14 ` Nikolay Ivanets
1 sibling, 1 reply; 4+ messages in thread
From: Eric Blake @ 2017-02-07 15:36 UTC (permalink / raw)
To: Nikolay Ivanets, qemu-devel
[-- Attachment #1: Type: text/plain, Size: 511 bytes --]
On 02/07/2017 08:25 AM, Nikolay Ivanets wrote:
> Is there any way to find source file supplied for qemu-nbd similar to loop
> device:
>
> cat /sys/block/loop0/loop/backing_file
qemu-nbd is userspace, so there's no way it will be found in /sys/. But
since it is userspace, is it not sufficient to just use 'ps' or
/proc/$n/cmdline to determine what command line qemu-nbd was started with?
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] How to find backing file for qemu-nbd?
2017-02-07 15:36 ` Eric Blake
@ 2017-02-07 21:14 ` Nikolay Ivanets
0 siblings, 0 replies; 4+ messages in thread
From: Nikolay Ivanets @ 2017-02-07 21:14 UTC (permalink / raw)
To: Eric Blake; +Cc: qemu-devel
Yes, it is what i'm doing now: ps -C qemu-nbd -o cmd='.
Thanks!
--
Nikolay Ivanets
Mobile: +380979184774
Skype: n_ivanets
2017-02-07 17:36 GMT+02:00 Eric Blake <eblake@redhat.com>:
> On 02/07/2017 08:25 AM, Nikolay Ivanets wrote:
> > Is there any way to find source file supplied for qemu-nbd similar to
> loop
> > device:
> >
> > cat /sys/block/loop0/loop/backing_file
>
> qemu-nbd is userspace, so there's no way it will be found in /sys/. But
> since it is userspace, is it not sufficient to just use 'ps' or
> /proc/$n/cmdline to determine what command line qemu-nbd was started with?
>
> --
> Eric Blake eblake redhat com +1-919-301-3266
> Libvirt virtualization library http://libvirt.org
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-02-07 21:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-07 14:25 [Qemu-devel] How to find backing file for qemu-nbd? Nikolay Ivanets
2017-02-07 15:23 ` Daniel P. Berrange
2017-02-07 15:36 ` Eric Blake
2017-02-07 21:14 ` Nikolay Ivanets
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.