]> granicus.if.org Git - vnstat/commitdiff
remove check for available disk space from database creation during testing
authorTeemu Toivola <git@humdi.net>
Fri, 13 Jan 2017 21:19:40 +0000 (23:19 +0200)
committerTeemu Toivola <git@humdi.net>
Fri, 13 Jan 2017 21:19:40 +0000 (23:19 +0200)
src/dbsql.c

index 670c40dcbd8d26d6687cb77141616b72265fc5f5..78e26184b60fe900cb10b289d333b0fabe8495bf 100644 (file)
@@ -48,10 +48,12 @@ int db_open(const int createifnotfound)
        }
 
        if (createdb) {
+#ifndef CHECK_VNSTAT
                if (!spacecheck(cfg.dbdir)) {
                        printf("Error: Not enough free diskspace available in \"%s\", exiting.\n", cfg.dbdir);
                        exit(EXIT_FAILURE);
                }
+#endif
                if (!db_create()) {
                        if (debug)
                                printf("Error: Creating database \"%s\" structure failed\n", dbfilename);