containers / composefs

a file system for mounting container images
GNU General Public License v2.0
421 stars 29 forks source link

Propagate logs for mount errors when using the new mount api #311

Open alexlarsson opened 1 month ago

alexlarsson commented 1 month ago

It seems that the new mount API supports getting access to the errors during mount by reading from the fs_open fd. Example in: https://github.com/torvalds/linux/blob/master/samples/vfs/test-fsmount.c#L20

It would be very nice if lcfs_mount() could extract these and give some kind of better errors.