mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 02:49:02 -04:00
Reserve snapraid- prefix for native ZFS snapshots and introduce fssnapshot_path
This commit is contained in:
parent
0e2d31d9db
commit
6583897fcf
4 changed files with 56 additions and 14 deletions
|
|
@ -743,6 +743,16 @@ int fssnapshot_rename(const struct fssnapshot_struct* fss, const char* old_name,
|
|||
return 0;
|
||||
}
|
||||
|
||||
int fssnapshot_path(const struct fssnapshot_struct* fss, const char* name, char* path, size_t path_size)
|
||||
{
|
||||
pathcpy(path, path_size, fss->snapshot_dir);
|
||||
pathcat(path, path_size, name);
|
||||
pathcatc(path, path_size, '/');
|
||||
pathcat(path, path_size, fss->sub_dir);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void fssnapshot_unmount(const struct fssnapshot_struct* fss)
|
||||
{
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue