From: tgh <tianguanhua@ncic.ac.cn>
To: Kasai Takanori <kasai.takanori@jp.fujitsu.com>
Cc: xen-devel <xen-devel@lists.xensource.com>
Subject: Re: [PATCH] fix free of event channel in blkfront
Date: Wed, 11 Apr 2007 10:22:24 +0800 [thread overview]
Message-ID: <461C4660.60005@ncic.ac.cn> (raw)
In-Reply-To: <021601c7467b$beb51a50$dab2220a@VF03007L>
hi
I try to understand the code relative to blk-attach
it seems like that device_creat()->createdevice()->addStoreEntries()
,add store entry into xenstore
then backend and frontend will watch and do several related work to real
add-device in backend and frontend ,is it right? and xenstore have
watches to check the related entry ,is it right?
I am confused ,which code or function to the real adding work
I guess there is somekind watches which do it ,but I cannot find that
fucntions
I am confused about it
could you help me
Thanks in advance
Kasai Takanori 写道:
> Hi,
>
>> Now I boot the VM with the conf file
>> ...
>> disk = [ 'file:/vm/dom3.img,sda1,w' ]
>> ...
>> and then commit the commands as follows
>>
>> [root@genode012 vmcserver]# xm block-attach dom3
>> file:/vm1/template/tp1.img sda2 w
>> [root@genode012 vmcserver]# xm block-list dom3
>> Vdev BE handle state evt-ch ring-ref BE-path
>> 2049 0 0 4 6 8 /local/domain/0/backend/vbd/107/2049
>> 2050 0 0 4 8 534 /local/domain/0/backend/vbd/107/2050
>> [root@genode012 vmcserver]# xm console dom3
>>
>> [root@office2 ~]# cat /proc/diskstats
>> ...
>>
>> 8 2 sda2 0 0 0 0 0 0 0 0 0 0 0
>
> The block-attach command seems to have succeeded.
> It can be confirmed that sda2 is attached.
>
> It can confirm the content if the mount is done.
> # mount /dev/sda2 /mnt
> # ls /mnt
>
>
>> [root@office2 ~]# df -h
>> Filesystem /dev/sda1 5.8G 4.0G 1.5G 73% /
>> none 128M 0 128M 0% /dev/shm
>>
>> what do I do wrong? How should I make it ?
>> I am really confused with it
>
> If the mount is done, it comes to see it.
> If it is recognized when starting, the block-attach command should not
> be used.
> Then, it is necessary to define two disks by configuration file.
> When starting, automatic mount will be able to be done if it set to
> /etc/fstab
> as well as Native Linux.
>
> Best Regards,
>
> --
> Takanori Kasai
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
>
prev parent reply other threads:[~2007-04-11 2:22 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-26 12:01 [PATCH] fix free of event channel in blkfront Kasai Takanori
2006-12-29 17:54 ` Steven Hand
2007-01-09 0:33 ` Kasai Takanori
2007-01-09 6:18 ` Kasai Takanori
2007-01-09 10:48 ` Kasai Takanori
2007-02-01 2:56 ` tgh
2007-02-01 4:22 ` Kasai Takanori
2007-02-01 7:46 ` tgh
2007-02-01 9:03 ` Kasai Takanori
2007-02-01 13:22 ` tgh
2007-02-02 0:18 ` Kasai Takanori
2007-02-02 1:42 ` tgh
2007-02-02 3:39 ` Kasai Takanori
2007-02-02 6:24 ` tgh
2007-04-11 2:22 ` tgh [this message]
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=461C4660.60005@ncic.ac.cn \
--to=tianguanhua@ncic.ac.cn \
--cc=kasai.takanori@jp.fujitsu.com \
--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.