mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-21 07:26:29 -05:00
Marks FUSE filesystem as with not persistent inodes,
disabling inode use in such case.
This commit is contained in:
parent
4fb96c0dec
commit
e4e13a669b
8 changed files with 65 additions and 35 deletions
20
state.c
20
state.c
|
|
@ -113,26 +113,6 @@ static void state_config_check(struct snapraid_state* state, const char* path)
|
|||
#endif
|
||||
|
||||
if (!state->opt.force_device) {
|
||||
int ret;
|
||||
|
||||
ret = fstype(disk->dir);
|
||||
if (ret < 0) {
|
||||
fprintf(stderr, "Error accessing disk '%s' to get the filesystem type. %s.\n", disk->dir, strerror(errno));
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
if (ret == FSTYPE_FUSE) {
|
||||
fprintf(stderr, "Disk '%s' has a filesystem managed by FUSE.\n", disk->dir);
|
||||
fprintf(stderr, "FUSE doesn't support persistent inodes, and it cannot be\n");
|
||||
fprintf(stderr, "used safely with SnapRAID.\n");
|
||||
|
||||
/* in "fix" we allow to continue anyway */
|
||||
if (strcmp(state->command, "fix") == 0) {
|
||||
fprintf(stderr, "You can '%s' anyway, using 'snapraid --force-device %s'.\n", state->command, state->command);
|
||||
}
|
||||
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
for(j=i->next;j!=0;j=j->next) {
|
||||
struct snapraid_disk* other = j->data;
|
||||
if (disk->device == other->device) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue