Fail sync if snapshot setup fails on a supported filesystem

This commit is contained in:
Andrea Mazzoleni 2026-08-12 15:03:15 +02:00
parent b71996984f
commit b425ff3a4f
3 changed files with 9 additions and 4 deletions

View file

@ -2177,12 +2177,12 @@ int fssnapshot_mount(const char* path, struct fssnapshot_struct* fss)
} else if (sfs.f_type == ZFS_SUPER_MAGIC) {
return fssnapshot_zfs(path, ZFS_SUPER_MAGIC, fss);
} else {
return -1;
return 1;
}
#else
(void)path;
(void)fss;
return -1;
return 1;
#endif
}