]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- added test 904/head
authorArvin Schnell <aschnell@suse.de>
Mon, 22 Apr 2024 06:48:27 +0000 (08:48 +0200)
committerArvin Schnell <aschnell@suse.de>
Mon, 22 Apr 2024 06:48:27 +0000 (08:48 +0200)
testsuite-real/test-btrfsutils.cc

index ac5d6797e439d31d5d70c514530993e5bf2df84c..7e5c034f9c34ee1cc713562d091c6b44747bfad0 100644 (file)
@@ -41,6 +41,21 @@ main()
     }
 
 
+    if (false)
+    {
+       int fddst = open("/btrfs/snaps", O_NOATIME);
+       if (fddst < 0)
+       {
+           cerr << "open failed (" << strerror(errno) << ")" << endl;
+           return EXIT_FAILURE;
+       }
+
+       create_snapshot(fd, fddst, "snap1", true, parse_qgroup("1/0"));
+
+       close(fddst);
+    }
+
+
     if (false)
     {
        quota_enable(fd);