From 2ab8fedabb7716947edc77958da6d0b5e1040df9 Mon Sep 17 00:00:00 2001 From: arvidn Date: Thu, 25 Jul 2024 10:33:46 -0700 Subject: [PATCH] fix test_copy_file to recognize overlayfs as supporting sparse files. This is probably an approximation, but it seems a reasonable one --- test/test_copy_file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_copy_file.cpp b/test/test_copy_file.cpp index 8e252b8cea4..9a1dfbb2be0 100644 --- a/test/test_copy_file.cpp +++ b/test/test_copy_file.cpp @@ -120,7 +120,7 @@ bool fs_supports_sparse_files() static fsword_t const ufs = 0x00011954; static const std::set sparse_filesystems{ EXT4_SUPER_MAGIC, EXT3_SUPER_MAGIC, XFS_SUPER_MAGIC, fsword_t(BTRFS_SUPER_MAGIC) - , ufs, REISERFS_SUPER_MAGIC, TMPFS_MAGIC + , ufs, REISERFS_SUPER_MAGIC, TMPFS_MAGIC, OVERLAYFS_SUPER_MAGIC }; printf("filesystem: %ld\n", long(st.f_type)); return sparse_filesystems.count(st.f_type);