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

RFC: disk versus blockdev #24745

Closed
The-Loeki opened this issue Jun 17, 2015 · 4 comments
Closed

RFC: disk versus blockdev #24745

The-Loeki opened this issue Jun 17, 2015 · 4 comments
Labels
Question The issue is more of a question rather than a bug or a feature request
Milestone

Comments

@The-Loeki
Copy link
Contributor

I'm preparing two physical disk related functions for contribution, but I have to say I'm utterly stumped by the difference between the blockdev module and the disk module; What's (supposed) to be the difference and/or advantage splitting between the two?
Sure, there's a minimal difference between a disk and a blockdev, but the modules don't reflect that difference in any way.

I propose that as part of my contribution, I merge blockdev and disk, deprecating one of the two and add my contributions to the other.

Thoughts?

@jfindlay jfindlay added the Question The issue is more of a question rather than a bug or a feature request label Jun 18, 2015
@jfindlay jfindlay added this to the Approved milestone Jun 18, 2015
@jfindlay
Copy link
Contributor

@The-Loeki, I am in favor of combining counterusefully similar and conflicting modules. If you deprecate one in favor of another, however you do it, the old behavior will need to be preserved for a few releases and warnings need to be raised when it is accessed until it is removed.

@The-Loeki
Copy link
Contributor Author

@jfindlay I've committed the changes now, but the unit tests for blockdev are now failing because the unit tests don't include the disk module, or something... I have no idea how unittesting works (yet) :(

I've migrated the blockdev unit tests to disk in my latest commit, shall I just remove the blockdev ones or can you help me fix them?

@jfindlay
Copy link
Contributor

@The-Loeki, I will look at the unit test failures there. I don't want to remove any of the old tests or code until the release advertised for removal. Thanks for your work on this.

@The-Loeki
Copy link
Contributor Author

After #25267 and #24893 this can now be closed. tnx again @jfindlay :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question The issue is more of a question rather than a bug or a feature request
Projects
None yet
Development

No branches or pull requests

2 participants