Skip to content

miscfs/fullfs: add disk-full simulation layerfs based on miscfs/nullfs#79

Draft
dalpra-hcd wants to merge 2 commits intoNetBSD:trunkfrom
dalpra-hcd:implement-fullfs
Draft

miscfs/fullfs: add disk-full simulation layerfs based on miscfs/nullfs#79
dalpra-hcd wants to merge 2 commits intoNetBSD:trunkfrom
dalpra-hcd:implement-fullfs

Conversation

@dalpra-hcd
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
Contributor

@zoulasc zoulasc left a comment

Choose a reason for hiding this comment

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

Looks good minor nits.

Comment thread sbin/fullfsctl/fullfsctl.c Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

would probably use strtoi()

Comment thread sbin/fullfsctl/fullfsctl.c Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

all the 1's should be EXIT_FAILURE.

Comment thread sbin/fullfsctl/fullfsctl.c Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

we have estrdup() in libutil... and other e-functions.

Comment thread sbin/fullfsctl/fullfsctl.c Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

strtoi again...

Comment thread sbin/fullfsctl/fullfsctl.c Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

you can put the index declaration in the loop.

Comment thread sbin/fullfsctl/fullfsctl.c Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

PRIu64

Comment thread sys/miscfs/fullfs/full_vnops.c Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

you don't want to allow it to be 0 again?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I thought it didn't make sense setting mode to failing after 0 write counts, you might as well set to fail straight. So requiring mode count + positive doom seems logical.

Comment thread sys/miscfs/fullfs/full_ioctl.h Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

unsigned?

Comment thread sys/miscfs/fullfs/full_ioctl.h Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

unsigned?

@dalpra-hcd
Copy link
Copy Markdown
Author

Hello @zoulasc,

Thanks for your review, will work on those and let you know once it is ready again!

@dalpra-hcd
Copy link
Copy Markdown
Author

Didn't have time to run the atf test yet, will confirm everything is still passing and re-request the review.

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