mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-05 14:20:05 -05:00
Adds a new file_mode setting to control the access flags.
This commit is contained in:
parent
6d4d75ad0b
commit
d1d4abaf31
10 changed files with 53 additions and 29 deletions
|
|
@ -81,6 +81,7 @@ void state_init(struct snapraid_state* state)
|
|||
state->checked_read = 0;
|
||||
state->block_size = 256 * 1024; /* default 256 KiB */
|
||||
state->raid_mode = RAID_MODE_CAUCHY;
|
||||
state->file_mode = MODE_SEQUENTIAL;
|
||||
for(l=0;l<LEV_MAX;++l) {
|
||||
state->parity_path[l][0] = 0;
|
||||
state->parity_device[l] = 0;
|
||||
|
|
@ -368,7 +369,12 @@ void state_config(struct snapraid_state* state, const char* path, const char* co
|
|||
/* if unsed, sort by physical order */
|
||||
if (!state->opt.force_order)
|
||||
state->opt.force_order = SORT_PHYSICAL;
|
||||
|
||||
|
||||
/* adjust file mode */
|
||||
if (state->opt.skip_sequential)
|
||||
state->file_mode &= ~MODE_SEQUENTIAL;
|
||||
|
||||
/* store current command */
|
||||
state->command = command;
|
||||
|
||||
fprintf(stdlog, "conf:%s\n", path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue