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

Define missing unifycr_gfid replacements for various unifycr_fid functions #262

Open
adammoody opened this issue Feb 5, 2019 · 0 comments

Comments

@adammoody
Copy link
Collaborator

In CRUISE, the fid was used as both a file identification number and a reference into data structures holding the file's metadata and storage. However, each process "owned" its file and files were not shared across processes.

In UnifyCR, the fid was carried over from CRUISE, and also a new global file id was created to uniquely identify a file across all processes. The fid is still useful given the context of a particular client, as a reference into data structures for the file, e.g., the list of storage blocks allocated to a file.

However, many of the old unifycr_fid_* functions, like unifycr_fid_truncate() and unifycr_fid_unlink() need to be updated to account for global ids. This can be accomplished by replacing many of these calls with gfid equivalents or by keeping with fids. Alternatively, we could keep using fid values here, but we need to add a function so a process can allocate a fid for a file if it does not already have one assigned to that file.

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

No branches or pull requests

1 participant