Skip to content

Implement nt.listvolumes #5730

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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];

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