X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=nfs3%2Fnfsd.c;fp=nfs3%2Fnfsd.c;h=40d7a6e23124d8064e69d874b0191aa538a5fb70;hb=e282bc08ad6c2a69a38af6a9179947af70ac0b17;hp=e95ac7ca69bc5de7114da12543671e350a14a777;hpb=a073843b1f414bf939031abf1b6fdbc5261f1820;p=bluesky.git diff --git a/nfs3/nfsd.c b/nfs3/nfsd.c index e95ac7c..40d7a6e 100644 --- a/nfs3/nfsd.c +++ b/nfs3/nfsd.c @@ -64,6 +64,10 @@ int main(int argc, char *argv[]) store = bluesky_store_new(target); fs = bluesky_init_fs("export", store, key); + const char *stats_output = getenv("BLUESKY_STATS_OUT"); + if (stats_output != NULL) + bluesky_stats_run_periodic_dump(fopen(stats_output, "a")); + bluesky_crypt_random_bytes(nfsd_instance_verf_cookie, sizeof(nfsd_instance_verf_cookie));