We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6a74818 + 6e3a73f commit ebf5c4fCopy full SHA for ebf5c4f
snapper/FileUtils.cc
@@ -1,6 +1,6 @@
1
/*
2
* Copyright (c) [2011-2014] Novell, Inc.
3
- * Copyright (c) [2018-2023] SUSE LLC
+ * Copyright (c) [2018-2024] SUSE LLC
4
*
5
* All Rights Reserved.
6
@@ -388,6 +388,10 @@ namespace snapper
388
SDir::statvfs() const
389
{
390
struct statvfs fsbuf;
391
+
392
+ static_assert(sizeof(fsbuf.f_blocks) == 8);
393
+ static_assert(sizeof(fsbuf.f_bavail) == 8);
394
395
if (fstatvfs(dirfd, &fsbuf) != 0)
396
SN_THROW(IOErrorException(sformat("statvfs failed path:%s errno:%d (%s)", base_path.c_str(),
397
errno, stringerror(errno).c_str())));
0 commit comments