Skip to content
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

[PARTMGR] Implement IOCTL_VOLUME_QUERY_VOLUME_NUMBER and IOCTL_VOLUME_IS_PARTITION #6911

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

HBelusca
Copy link
Contributor

Purpose

Used by some 3rd-party software (see example link below). Also, IOCTL_VOLUME_IS_PARTITION is an easy way to know whether a \Device\HarddiskVolumeN (or whatever other volume) device corresponds to one single disk partition.

Proposed changes

@HBelusca HBelusca added enhancement For PRs with an enhancement/new feature. drivers Kernel mode drivers and frameworks labels May 19, 2024
@HBelusca HBelusca self-assigned this May 19, 2024
HBelusca added a commit to HBelusca/reactos that referenced this pull request May 19, 2024
…_IS_PARTITION (reactos#6911)

- Implement IOCTL_VOLUME_QUERY_VOLUME_NUMBER:
  See usage example in:
  https://github.com/dansdrivers/ndas4windows/blob/7241cebfa2a2076de546b8841c2ccda8ca599a8d/mayfield/branches/spr/src/umapps/ndassvc/service/drivematch.cpp#L627

- Stubplement IOCTL_VOLUME_IS_PARTITION:
  The only type of volume we support right now is disk partition
  so we just return success. A more robust algorithm would be
  to check whether the volume has only one single extent, that
  covers the whole partition on which it lies upon. If this is
  not the case, return STATUS_UNSUCCESSFUL instead.
@HBelusca HBelusca force-pushed the partmgr_simple_volmgr_ioctls branch from 3c5a6bc to 6a36456 Compare May 19, 2024 18:35
…_IS_PARTITION (reactos#6911)

- Implement IOCTL_VOLUME_QUERY_VOLUME_NUMBER:
  See usage example in:
  https://github.com/dansdrivers/ndas4windows/blob/7241cebfa2a2076de546b8841c2ccda8ca599a8d/mayfield/branches/spr/src/umapps/ndassvc/service/drivematch.cpp#L627

- Stubplement IOCTL_VOLUME_IS_PARTITION:
  The only type of volume we support right now is disk partition
  so we just return success. A more robust algorithm would be
  to check whether the volume has only one single extent, that
  covers the whole partition on which it lies upon. If this is
  not the case, return STATUS_UNSUCCESSFUL instead.
@HBelusca HBelusca force-pushed the partmgr_simple_volmgr_ioctls branch from 6a36456 to 0a8b421 Compare June 10, 2024 19:33
@HBelusca HBelusca merged commit 0a8b421 into reactos:master Jun 10, 2024
34 checks passed
@HBelusca HBelusca deleted the partmgr_simple_volmgr_ioctls branch June 10, 2024 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1st stage GUI setup drivers Kernel mode drivers and frameworks enhancement For PRs with an enhancement/new feature.
Projects
None yet
6 participants