X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmountd%2Fv4root.c;fp=utils%2Fmountd%2Fv4root.c;h=b4fdcce611d1fe3e6e7662d8731dc87693e58224;hp=81f813bde067777d4b357c86a2ea30a7d1bf0eee;hb=91bb95f2689e84856ecdf6fac365489d36709cf9;hpb=12a31b8011ab258fc726300dcfbb7a03af74adb3 diff --git a/utils/mountd/v4root.c b/utils/mountd/v4root.c index 81f813b..b4fdcce 100644 --- a/utils/mountd/v4root.c +++ b/utils/mountd/v4root.c @@ -192,6 +192,13 @@ v4root_set() */ continue; + if (strcmp(exp->m_export.e_path, "/") == 0 && + !(exp->m_export.e_flags & NFSEXP_FSID)) { + /* Force '/' to be exported as fsid == 0*/ + exp->m_export.e_flags |= NFSEXP_FSID; + exp->m_export.e_fsid = 0; + } + v4root_add_parents(exp); /* XXX: error handling! */ }