-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Implement nt.listvolumes #5730
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: main
Are you sure you want to change the base?
Implement nt.listvolumes #5730
Conversation
bfcd5ab
to
679af3f
Compare
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was there any related test for listvolumes?
Yes, but it requires a different os function that doesn't exist, so it still fails. |
#[pyfunction] | ||
fn listvolumes(vm: &VirtualMachine) -> PyResult<PyListRef> { | ||
let mut volumes = vec![]; | ||
let mut buffer = [0u16; 257]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it is related to constant, is this possible?
let mut buffer = [0u16; 257]; | |
let mut buffer = [0u16; MAX_PATH + 1]; |
nt.listvolumes
causes massive failuresnt._path_exists
and similar