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

Port fs commands to the new shell #10103

Merged
merged 1 commit into from
Oct 15, 2018

Conversation

nordic-krch
Copy link
Contributor

Post shell fs commands to the new shell.

It has changes on top of #9362

Fixes #8874.

@nordic-krch nordic-krch mentioned this pull request Sep 19, 2018
@nordic-krch nordic-krch changed the title Shell fs Port fs commands to the new shell Sep 19, 2018
@codecov-io
Copy link

codecov-io commented Sep 19, 2018

Codecov Report

Merging #10103 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #10103   +/-   ##
=======================================
  Coverage   53.18%   53.18%           
=======================================
  Files         210      210           
  Lines       25816    25816           
  Branches     5682     5682           
=======================================
  Hits        13731    13731           
  Misses       9780     9780           
  Partials     2305     2305

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2a103ea...f07b920. Read the comment docs.

buf[i] > 127 ? '.' : buf[i]);
}

printk("\n");
shell_fprintf(shell, SHELL_NORMAL, "\n");
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 it shall be \r\n

return res;
shell_fprintf(shell, SHELL_ERROR,
"Error creating dir[%d]\r\n", res);
return;
Copy link
Contributor

Choose a reason for hiding this comment

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

obsolete return

@nordic-krch
Copy link
Contributor Author

nordic-krch commented Sep 26, 2018

@nvlsianpu can you take a look at this?

@nvlsianpu
Copy link
Collaborator

sure

@@ -147,20 +265,24 @@ static int cmd_read(int argc, char *argv[])

err = fs_stat(path, &dirent);
if (err) {
printk("Failed to stat %s (%d)\n", path, err);
return err;
shell_fprintf(shell, SHELL_ERROR, "Failed to stat %s (%d)\r\n",
Copy link
Collaborator

@nvlsianpu nvlsianpu Sep 27, 2018

Choose a reason for hiding this comment

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

error message: "Failed to obtain/get file/file-system object status"

Copy link
Collaborator

Choose a reason for hiding this comment

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

I understand that message was inherited :D

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, i didn't touch messages but i fixed that one on your request :)

@jakub-uC
Copy link
Contributor

jakub-uC commented Oct 2, 2018

@nordic-krch : May you plesae rebase to this PR:#10322?

Copy link
Contributor

@jakub-uC jakub-uC left a comment

Choose a reason for hiding this comment

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

Please rebase to PR#10322.

Port existing commands to the new shell subsystem.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
@nordic-krch
Copy link
Contributor Author

rebased on master (including #10322

@carlescufi carlescufi merged commit 0ac7f76 into zephyrproject-rtos:master Oct 15, 2018
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.

6 participants