On Wed, 13 Jul 2016 03:26:34 +0200, Alexander Hall wrote: > Then wouldn't EINVAL be a reasonable response? Am I missing something?
We typically ignore flags that don't make sense. For example, chmod(2) doesn't return an error if you pass in a mode with the directory bit set, it just masks it out. Since unmount(2) uses the same flags as mount(2) it seems reasonable to just ignore the ones that don't make sense. - todd