-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
block rm: change "force" option to "ignore" #3709
Conversation
"ignore" just seams like a more appropriate name as nothing is being "forced" License: MIT Signed-off-by: Kevin Atkinson <k@kevina.org>
In the original pull request for @whyrusleeping thoughts? |
'force' is the correct term here i think, we are forcing the removal of a block that we could otherwise not remove |
[note, deleted last comment since it was inaccurate and it was better to start over]
That is incorrect we are not forcing anything. All Reopening since i think there is confusion on what the |
@kevina this is identical to unix rm in this case:
|
Correct. Force also forces the removal of write protected files, this does not. With that understanding if you still prefer |
👎 Not a good enough reason to break existing interfaces. To us it looks like a simple rename, to a program the -f flag is just gone. But I'm wondering why this has to fail on non-existent blocks in the first place. It could be properly idempotent. The result is the same (block non-existent), and if you need to know the block's state there's |
And similarly, |
The only forceable thing I can imagine right now is rm'ing pinned blocks, but I don't think it matters much. We should never ever touch stuff that is pinned. Suddenly pinning would have to deal with blocks that might disappear, and that'd get very messy. |
I think even though ignore may be a marginally better name, we've already named it I'm gonna go ahead and close this |
"ignore" just seams like a more appropriate name as nothing is being
"forced"
License: MIT
Signed-off-by: Kevin Atkinson k@kevina.org