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

Skip device if parent is a file and not a dir #33

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

zestrada
Copy link

This PR skips creation of a device from the devtable file if the parent of that device is not a directory.

Ran into this when rebuilding a filesystem extracted from an existing image. We use a devtable to add back devices that might be missed during extraction. Sometimes you'll get stuff like /dev/mtd0 in the existing image but the default devtable has entries like /dev/mtd/0. This change allows genext2fs to be a little more robust in use cases like ours.

@AndrewFasano AndrewFasano force-pushed the master branch 6 times, most recently from 14d6f12 to 613425d Compare December 16, 2023 13:49
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