From: Zhang Shukun Subject: Re: Which flag shows the DomU filesystem has mounted? Date: Thu, 4 Jun 2009 11:29:27 +0800 Message-ID: References: <20090604032203.GA7667@joejin-pc.cn.oracle.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0089223089==" Return-path: In-Reply-To: <20090604032203.GA7667@joejin-pc.cn.oracle.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Joe Jin Cc: "xen-devel@lists.xensource.com" , xen-users@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0089223089== Content-Type: multipart/related; boundary=000e0cd3298241323b046b7d6376 --000e0cd3298241323b046b7d6376 Content-Type: multipart/alternative; boundary=000e0cd3298241322d046b7d6375 --000e0cd3298241322d046b7d6375 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Thank you for your quick reply! [?] if i can login in guest, the filesystem should been mounted yet, but i want to read file in domU kernel space, so i want to find a way to check the time when domU filesystem has mounted. or it will be crashed if i read file before mount complete. 2009/6/4 Joe Jin > On 2009-06-04 11:12, Zhang Shukun wrote: > > hi, does anyone knows which state or flag shows the domU is already mount > > the filesystem? is that XenbusStateConnected or info->is_ready = 1; > Thanks > > > No, state is XenbusStateConnected just meant device available for guest, > could not say it have mounted. > > I guess to check if blk have mounted you have to login guest then check it. > > Regards, > Joe > > > -- Best regards, Zhang Shukun Computer Department,Beijing Institute of Technology,China --000e0cd3298241322d046b7d6375 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thank you for your quick reply!

if i c= an login in guest, the filesystem should been mounted yet, but i want to re= ad file in domU kernel space, so i want to find a way to check the time whe= n domU filesystem has mounted. or it will be crashed if i read file before = mount complete.

2009/6/4 Joe Jin <joe.jin@oracle.com>
On 2009-06-04 11:12, Zhang Shukun wrote:
> hi, does anyone knows which state or flag shows the domU is already mo= unt
> the filesystem? is that =A0XenbusStateConnected or info->is_ready = =3D 1; Thanks
>
No, state is XenbusStateConnected just meant device available for gue= st,
could not say it have mounted.

I guess to check if blk have mounted you have to login guest then check it.=

Regards,
Joe





--
Best regards,Zhang Shukun
Computer Department,Beijing Institute of Technology,China<= br> --000e0cd3298241322d046b7d6375-- --000e0cd3298241323b046b7d6376 Content-Type: image/gif; name="330.gif" Content-Transfer-Encoding: base64 Content-ID: <330@goomoji.gmail> X-Attachment-Id: 330@goomoji.gmail R0lGODlhDAAMAKIFAF5LAP/zxAAAANyuAP/gaP///wAAAAAAACH5BAEAAAUALAAAAAAMAAwAAAMl WLPcGjDKFYi9lxKBOaGcF35DhWHamZUW0K4mAbiwWtuf0uxFAgA7 --000e0cd3298241323b046b7d6376-- --===============0089223089== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0089223089==--