Skip to content

Conversation

@arihant2math
Copy link
Collaborator

@arihant2math arihant2math commented Apr 21, 2025

  • nt.listvolumes
  • nt._path_exists and similar causes massive failures

@arihant2math arihant2math force-pushed the more-os branch 2 times, most recently from bfcd5ab to 679af3f Compare April 21, 2025 19:29
@arihant2math arihant2math marked this pull request as draft April 22, 2025 04:57
@arihant2math arihant2math marked this pull request as ready for review April 27, 2025 06:20
@youknowone youknowone changed the title More nt implementation nt.listvolumes Apr 28, 2025
@youknowone
Copy link
Member

nt._path_exists doesn't look like to be included here.
I will not retrigger CI because nt is not related to ubuntu build

Copy link
Member

@youknowone youknowone left a 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?

@arihant2math
Copy link
Collaborator Author

was there any related test for listvolumes?

Yes, but it requires a different os function that doesn't exist, so it still fails.

@arihant2math arihant2math changed the title nt.listvolumes Implement nt.listvolumes Apr 30, 2025
#[pyfunction]
fn listvolumes(vm: &VirtualMachine) -> PyResult<PyListRef> {
let mut volumes = vec![];
let mut buffer = [0u16; 257];
Copy link
Member

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?

Suggested change
let mut buffer = [0u16; 257];
let mut buffer = [0u16; MAX_PATH + 1];

@youknowone
Copy link
Member

Thanks! #6373 added it

@youknowone youknowone closed this Dec 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants