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@xxxxxx> --- support/export/cache.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"); -- 2.31.1