Reserve snapraid- prefix for native ZFS snapshots and introduce fssnapshot_path

This commit is contained in:
Andrea Mazzoleni 2026-08-26 00:37:52 +02:00
parent 0e2d31d9db
commit 6583897fcf
4 changed files with 56 additions and 14 deletions

View file

@ -166,6 +166,17 @@ int fssnapshot_delete(const struct fssnapshot_struct* fss, const char* name);
*/
int fssnapshot_rename(const struct fssnapshot_struct* fss, const char* old_name, const char* new_name);
/**
* Get the path where a logical snapshot is accessible.
*
* @param fss Snapshot context
* @param name Logical snapshot name
* @param path Output path
* @param path_size Size of path
* @return 0 on success, -1 on failure
*/
int fssnapshot_path(const struct fssnapshot_struct* fss, const char* name, char* path, size_t path_size);
/*
* Log file.
*