Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Xen: Devel

xenoutil patch 1.643 in bk rep

 

 

Xen devel RSS feed   Index | Next | Previous | View Threaded


paul at soniq

Dec 4, 2003, 8:36 PM

Post #1 of 6 (60 views)
Permalink
xenoutil patch 1.643 in bk rep

hi,

i've submitted a small patch to xen-unstable that makes the
'/dev/xx' -> devicenumber lookup stuff work on my machine..

basically i'm using os.stat instead of os.popen() hacks.

this is my first bitkeeper checkin ever, so please verify i did this
correctly.

thanks,
paul


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Xen-devel mailing list
Xen-devel [at] lists
https://lists.sourceforge.net/lists/listinfo/xen-devel


Keir.Fraser at cl

Dec 5, 2003, 1:25 AM

Post #2 of 6 (59 views)
Permalink
Re: xenoutil patch 1.643 in bk rep [In reply to]

> hi,
>
> i've submitted a small patch to xen-unstable that makes the
> '/dev/xx' -> devicenumber lookup stuff work on my machine..
>
> basically i'm using os.stat instead of os.popen() hacks.
>
> this is my first bitkeeper checkin ever, so please verify i did this
> correctly.

You cannot check in directly to the master repositories on
bkbits.net. Therefore, what/where did you check your patch into?

-- Keir


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Xen-devel mailing list
Xen-devel [at] lists
https://lists.sourceforge.net/lists/listinfo/xen-devel


paul at soniq

Dec 5, 2003, 1:56 AM

Post #3 of 6 (59 views)
Permalink
Re: xenoutil patch 1.643 in bk rep [In reply to]

On Fri, Dec 05, 2003 at 08:25:38AM +0000, Keir Fraser wrote:
> You cannot check in directly to the master repositories on
> bkbits.net. Therefore, what/where did you check your patch into?

nevermind, i guess i should read the bitkeeper documentation..

patch is attached

regards,
paul
Attachments: xenoutil-stat.patch (0.77 KB)


Ian.Pratt at cl

Dec 5, 2003, 2:31 AM

Post #4 of 6 (59 views)
Permalink
Re: xenoutil patch 1.643 in bk rep [In reply to]

> + return os.stat(name).st_rdev

Cool! This feature must be new in python 2.2, as I couldn't
figure out how to do it without the 'ls -l' hack on earlier
versions that just returned a tuple which didn't contain
the rdev.

We require 2.2 or newer for some other stuff, so its not a
problem.

Thanks,
Ian


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Xen-devel mailing list
Xen-devel [at] lists
https://lists.sourceforge.net/lists/listinfo/xen-devel


Keir.Fraser at cl

Dec 5, 2003, 2:39 AM

Post #5 of 6 (59 views)
Permalink
Re: xenoutil patch 1.643 in bk rep [In reply to]

>
> > + return os.stat(name).st_rdev
>
> Cool! This feature must be new in python 2.2, as I couldn't
> figure out how to do it without the 'ls -l' hack on earlier
> versions that just returned a tuple which didn't contain
> the rdev.
>
> We require 2.2 or newer for some other stuff, so its not a
> problem.
>
> Thanks,
> Ian

Will os.stat work through symlinks? If so I'll check in the fix.

-- Keir


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Xen-devel mailing list
Xen-devel [at] lists
https://lists.sourceforge.net/lists/listinfo/xen-devel


paul at soniq

Dec 5, 2003, 2:42 AM

Post #6 of 6 (59 views)
Permalink
Re: xenoutil patch 1.643 in bk rep [In reply to]

On Fri, Dec 05, 2003 at 09:39:50AM +0000, Keir Fraser wrote:
> Will os.stat work through symlinks? If so I'll check in the fix.

yep, os.stat should work fine, while os.lstat wouldn't.

regards,
paul


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Xen-devel mailing list
Xen-devel [at] lists
https://lists.sourceforge.net/lists/listinfo/xen-devel

Xen devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.