mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-29 03:16:59 -05:00
Add Btrfs snapshot support for atomic sync and recovery consistency
This commit is contained in:
parent
1b45752f90
commit
4f4075eef3
18 changed files with 1094 additions and 39 deletions
|
|
@ -360,6 +360,13 @@ void pathslash(char* dst, size_t size);
|
|||
*/
|
||||
void pathcut(char* dst);
|
||||
|
||||
/**
|
||||
* Given a string ending with slash, remove that ending slash and any char up to the previous slash.
|
||||
*
|
||||
* If there are not more slash, it returns the empty string.
|
||||
*/
|
||||
void pathup(char* dst);
|
||||
|
||||
/**
|
||||
* Compare two paths.
|
||||
* In Windows it's case insensitive and assumes \ equal at /.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue