Skip to content

Commit

Permalink
[vpsAdminOS] Hide ZFS from podman
Browse files Browse the repository at this point in the history
  • Loading branch information
aither64 committed Jan 13, 2022
1 parent d321998 commit 92f6961
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions module/os/linux/zfs/zfs_vfsops.c
Original file line number Diff line number Diff line change
Expand Up @@ -1146,6 +1146,8 @@ zfs_statvfs(struct inode *ip, struct kstatfs *statp)
magic_hack = true;
if (strcmp(current->comm, "lxd") == 0)
magic_hack = true;
if (strcmp(current->comm, "podman") == 0)
magic_hack = true;
if (magic_hack) {
printk(KERN_INFO "ZFS magic faked to %s\n", current->comm);
statp->f_type = ZFS_SHACK_MAGIC;
Expand Down

0 comments on commit 92f6961

Please sign in to comment.