Skip to content

Commit

Permalink
[vpsAdminOS] Hide ZFS from crio
Browse files Browse the repository at this point in the history
  • Loading branch information
aither64 committed Jan 13, 2022
1 parent 92f6961 commit 6dce2ae
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 @@ -1148,6 +1148,8 @@ zfs_statvfs(struct inode *ip, struct kstatfs *statp)
magic_hack = true;
if (strcmp(current->comm, "podman") == 0)
magic_hack = true;
if (strcmp(current->comm, "crio") == 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 6dce2ae

Please sign in to comment.