1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-05 13:18:06 +03:00

mountpoint-util: clarify that EOVERFLOW is visible on nfs4/autofs mounts

This commit is contained in:
Lennart Poettering 2024-06-25 12:46:19 +02:00
parent 4c39ab9b40
commit 2ed5bd5738

View File

@ -106,9 +106,9 @@ int name_to_handle_at_loop(
return 0;
}
/* If name_to_handle_at() didn't increase the byte size, then this EOVERFLOW is caused by something
* else (apparently EOVERFLOW is returned for untriggered nfs4 mounts sometimes), not by the too small
* buffer. In that case propagate EOVERFLOW */
/* If name_to_handle_at() didn't increase the byte size, then this EOVERFLOW is caused by
* something else (apparently EOVERFLOW is returned for untriggered nfs4 autofs mounts
* sometimes), not by the too small buffer. In that case propagate EOVERFLOW */
if (h->handle_bytes <= n)
return -EOVERFLOW;