Timeline for Why does bind mounting a file after unlink fail with ENOENT?
Current License: CC BY-SA 4.0
19 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 24, 2019 at 12:37 | vote | accept | Kenneth Duda | ||
| Aug 24, 2019 at 1:46 | comment | added | user313992 | You're right, it can't be that. | |
| Aug 24, 2019 at 0:52 | comment | added | sourcejedi |
@mosvy My thought is that if path_lookupat() returns ENOENT for this file, then why is it we can still cat this file?
|
|
| Aug 24, 2019 at 0:49 | history | edited | sourcejedi | CC BY-SA 4.0 |
deleted 1 character in body
|
| Aug 24, 2019 at 0:41 | history | edited | sourcejedi | CC BY-SA 4.0 |
added 457 characters in body
|
| Aug 24, 2019 at 0:36 | history | edited | sourcejedi | CC BY-SA 4.0 |
added 457 characters in body
|
| Aug 24, 2019 at 0:33 | comment | added | sourcejedi |
Where do you think kern_path() is returning ENOENT? That's the thing I couldn't find.
|
|
| Aug 24, 2019 at 0:33 | comment | added | sourcejedi | @mosvy Hmm. get_mountpoint() is generally applied to the target, not the source. But in this extract it's called because of mount propagation. It enforces the rule that you can't add mounts on top of a deleted file, for any propagated mounts. But the enforcement is happening eagerly, even if we don't get any mount propagation that would require it. I think the consistent checking is desirable, it's just coded a bit more obscurely than I would prefer. | |
| Aug 24, 2019 at 0:07 | history | edited | sourcejedi | CC BY-SA 4.0 |
deleted 45 characters in body
|
| Aug 23, 2019 at 23:32 | history | edited | sourcejedi | CC BY-SA 4.0 |
deleted 257 characters in body
|
| Aug 23, 2019 at 23:22 | history | edited | sourcejedi | CC BY-SA 4.0 |
added 61 characters in body
|
| Aug 23, 2019 at 23:17 | comment | added | sourcejedi | good point. edited. | |
| Aug 23, 2019 at 23:16 | history | undeleted | sourcejedi | ||
| Aug 23, 2019 at 23:16 | history | edited | sourcejedi | CC BY-SA 4.0 |
deleted 484 characters in body
|
| Aug 23, 2019 at 22:18 | history | deleted | sourcejedi | via Vote | |
| Aug 23, 2019 at 22:18 | history | undeleted | sourcejedi | ||
| Aug 23, 2019 at 22:16 | history | deleted | sourcejedi | via Vote | |
| Aug 23, 2019 at 22:05 | history | edited | sourcejedi | CC BY-SA 4.0 |
added 4 characters in body
|
| Aug 23, 2019 at 21:54 | history | answered | sourcejedi | CC BY-SA 4.0 |