Skip to content

Return numeric descriptor from create#9

Open
3n-mb wants to merge 1 commit intodirektspeed:masterfrom
3n-mb:patch-1
Open

Return numeric descriptor from create#9
3n-mb wants to merge 1 commit intodirektspeed:masterfrom
3n-mb:patch-1

Conversation

@3n-mb
Copy link

@3n-mb 3n-mb commented Jun 7, 2020

If you don't create nice unique numeric descriptor in create, then you are in for agony of pain when creating a file system that uses numeric descriptors.
If you rely only on paths', then old example that omitted passing out descriptor will do.

Without explicit descriptor, zero is silently passed to FUSE, and FUSE will come to you back with zero. All simplicity of uniqueness goes out the window, and agony starts to burn.

If you don't create nice unique numeric descriptor in create, then you are in for agony of pain when creating an fs that uses numeric descriptors. If you rely only on paths', then old example that omitted passing out descriptor will do.
Without explicit descriptor, zero is silently passed to FUSE, and FUSE will come to you back with zero. All simplicity of uniqueness goes out the window.
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.

1 participant