bindfs
bindfs copied to clipboard
Initial code for reporting fake fs size as suggested in #32
Hello, this is first step for size limiting ( #32 )
Cool! I'd rather wait for the whole feature to be complete in your branch before merging anything, so please continue developing on this PR. I don't mind if the PR grows large, and I'm happy to comment on intermediate steps if you'd like. Thanks!
Well i don't have time to code real limit right now as it would be quite complex piece. However it may be interesting to have this fake size merged anyway...
Is there a use case for just this part? I'd rather not merge it yet if not.
@mpartel sure. it can be used for cases where you want the client to clearly see that his resources are limited, but not crash if he gets behind the boundaries. also it can be used for debugging of other programs.
Sorry I forgot to get back to you .. over 4 years ago :flushed: :man_facepalming:
I'd still like a more concrete description of a use-case before merging something like this. How exactly would this be used to debug a program? If it's only "does the program correctly process what df
returns", that can be accomplished more cleanly (IMO) with a loopback mount.