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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
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
> + return os.stat(name).st_rdevCool! 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> > > + 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, > IanWill 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel