diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/mountd/v4root.c | 7 |
1 files changed, 7 insertions, 0 deletions
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! */ } |