Skip to content

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)

@@ -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.


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.

2 participants