Skip to content

Commit

Permalink
fix test_copy_file to recognize overlayfs as supporting sparse files.…
Browse files Browse the repository at this point in the history
… This is probably an approximation, but it seems a reasonable one
  • Loading branch information
arvidn committed Aug 2, 2024
1 parent 8fa55e5 commit 2ab8fed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_copy_file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ bool fs_supports_sparse_files()
static fsword_t const ufs = 0x00011954;
static const std::set<fsword_t> 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);
Expand Down

0 comments on commit 2ab8fed

Please sign in to comment.