summaryrefslogtreecommitdiff
path: root/mkfs/mkfs.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-07-21 20:22:04 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-07-21 20:22:04 +0200
commit2a05bf5bc660bfebb35e42f1f8a0c0ac56e0f9d9 (patch)
tree07492d6744db580ba487503a7a4572d4a92ae0c1 /mkfs/mkfs.c
parent80cc3970e97ec71b5e645ca5132bebf115423fb2 (diff)
Implement generating an inode table for NFS export
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'mkfs/mkfs.c')
-rw-r--r--mkfs/mkfs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mkfs/mkfs.c b/mkfs/mkfs.c
index f1c1f1b..91cb9bd 100644
--- a/mkfs/mkfs.c
+++ b/mkfs/mkfs.c
@@ -185,6 +185,11 @@ int main(int argc, char **argv)
if (data_writer_write_fragment_table(data))
goto out_data;
+ if (opt.exportable) {
+ if (write_export_table(outfd, &fs, &super, cmp))
+ goto out_data;
+ }
+
if (id_table_write(&idtbl, outfd, &super, cmp))
goto out_data;