Commit 3e08695
mount: clean up mount APIs
Change the Repository::mount() API to return the mounted filesystem as
an fd rather than taking the mountpoint as an argument. Create a new
mount_at() API to replace the old one, replacing the canicalize() and
mount_at() calls that used to be in mount_composefs_at(), which we
remove.
Update the various users.
Making this change lets us simplify the logic in composefs-setup-root:
it no longer has to manually open the image in order to perform the
fsmount operation: it can use the new API on the repository.
This allows us to make Repository::open_image() private, so do that too.
Co-authored-by: Sanne Raymaekers <[email protected]>
Signed-off-by: Allison Karlitskaya <[email protected]>1 parent 8051480 commit 3e08695
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
342 | | - | |
| 342 | + | |
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
| |||
0 commit comments