Message ID | 20220217131531.2890-5-richard@nod.at (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | nfs-utils: Improving NFS re-exports | expand |
diff --git a/support/export/cache.c b/support/export/cache.c index 6039745e..b5763b1d 100644 --- a/support/export/cache.c +++ b/support/export/cache.c @@ -967,8 +967,10 @@ static void nfsd_fh(int f) * line. */ qword_addint(&bp, &blen, 0x7fffffff); - if (found) + if (found) { + reexpdb_add_subvolume(found_path); qword_add(&bp, &blen, found_path); + } qword_addeol(&bp, &blen); if (blen <= 0 || cache_write(f, buf, bp - buf) != bp - buf) xlog(L_ERROR, "nfsd_fh: error writing reply");
As soon a client mounts a volume, record it in the database to be able to uncover NFS subvolumes after a reboot. Signed-off-by: Richard Weinberger <richard@nod.at> --- support/export/cache.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)