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

Filesystem PR #428

Open
wants to merge 16 commits into
base: loader
Choose a base branch
from
Open

Filesystem PR #428

wants to merge 16 commits into from

Conversation

msdx321
Copy link
Member

@msdx321 msdx321 commented Sep 26, 2021

Summary of this Pull Request (PR)

This PR contains interface for block device and filesystem, along with two simple implementation.

Intent for your PR

Choose one (Mandatory):

  • This PR is for a code-review and is intended to get feedback, but not to be pulled yet.
  • This PR is mature, and ready to be integrated into the repo.

Reviewers (Mandatory):

(Specify @<github.com username(s)> of the reviewers. Ex: @user1, @user2)

Code Quality

As part of this pull request, I've considered the following:

Style:

  • Comments adhere to the Style Guide (SG)
  • Spacing adhere's to the SG
  • Naming adhere's to the SG
  • All other aspects of the SG are adhered to, or exceptions are justified in this pull request
  • I have run the auto formatter on my code before submitting this PR (see doc/auto_formatter.md for instructions)

Code Craftsmanship:

  • I've made an attempt to remove all redundant code
  • I've considered ways in which my changes might impact existing code, and cleaned it up
  • I've formatted the code in an effort to make it easier to read (proper error handling, function use, etc...)
  • I've commented appropriately where code is tricky
  • I agree that there is no "throw-away" code, and that code in this PR is of high quality

Testing

I've tested the code using the following test programs (provide list here):

  • micro_booter
  • unit_pingpong
  • unit_schedtests
  • ...(add others here)

Signed-off-by: msdx321 <msdx321@gmail.com>
Signed-off-by: msdx321 <msdx321@gmail.com>
Signed-off-by: msdx321 <msdx321@gmail.com>
Signed-off-by: msdx321 <msdx321@gmail.com>
Signed-off-by: msdx321 <msdx321@gmail.com>
Signed-off-by: msdx321 <msdx321@gmail.com>
Signed-off-by: msdx321 <msdx321@gmail.com>
Signed-off-by: msdx321 <msdx321@gmail.com>
Signed-off-by: msdx321 <msdx321@gmail.com>
Signed-off-by: msdx321 <msdx321@gmail.com>
Signed-off-by: msdx321 <msdx321@gmail.com>
Signed-off-by: msdx321 <msdx321@gmail.com>
Signed-off-by: msdx321 <msdx321@gmail.com>
Signed-off-by: msdx321 <msdx321@gmail.com>
Signed-off-by: msdx321 <msdx321@gmail.com>
Signed-off-by: msdx321 <msdx321@gmail.com>
@@ -1,6 +1,9 @@
[submodule "src/components/lib/ps/ps"]
path = src/components/lib/ps/ps
url = https://github.com/gwsystems/ps.git
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we could first update the ps port, so we don't need to change the url here

int ret = ext4_fopen(file, path, flags);
//printc("ret %d\n", ret);

//printc("mp %p\n", file->mp);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing debug print or using printd() looks better.

void
cos_init(void)
{
for (int i = 0; i < 64; i++) { ns[i] = ps_nsptr_create_slab_fd(); }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Define 64 to be a meaningful symbol should be better.

@@ -263,23 +272,27 @@ cos_set_tid_address(int *tidptr)
* };
*/

void* backing_data[SL_MAX_NUM_THDS];
//void* backing_data[SL_MAX_NUM_THDS];
void* backing_data[1];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Define 1 to be a meaningful symbol.

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.

None yet

2 participants