mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-02 21:00:16 -05:00
Fixes scrub with -p0.
This commit is contained in:
parent
78591a1e65
commit
60cdf39bb9
3 changed files with 8 additions and 3 deletions
5
HISTORY
5
HISTORY
|
|
@ -1,6 +1,11 @@
|
||||||
SnapRAID HISTORY
|
SnapRAID HISTORY
|
||||||
================
|
================
|
||||||
|
|
||||||
|
4.3 2013/10
|
||||||
|
===========
|
||||||
|
* Fixed the scrub command with the -p0 option. Now it really scrubs
|
||||||
|
only the blocks marked as bad and not the full array.
|
||||||
|
|
||||||
4.2 2013/10
|
4.2 2013/10
|
||||||
===========
|
===========
|
||||||
* Fixed the wrong warning about physical offsets not supported caused
|
* Fixed the wrong warning about physical offsets not supported caused
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
dnl Process this file with autoconf to produce a configure script.
|
dnl Process this file with autoconf to produce a configure script.
|
||||||
AC_PREREQ([2.65])
|
AC_PREREQ([2.65])
|
||||||
AC_INIT([snapraid], [4.2], [], [], [http://snapraid.sourceforge.net])
|
AC_INIT([snapraid], [4.3], [], [], [http://snapraid.sourceforge.net])
|
||||||
AM_INIT_AUTOMAKE([foreign no-dependencies -Wall])
|
AM_INIT_AUTOMAKE([foreign no-dependencies -Wall])
|
||||||
AC_CONFIG_SRCDIR([snapraid.c])
|
AC_CONFIG_SRCDIR([snapraid.c])
|
||||||
AC_CONFIG_HEADER([config.h])
|
AC_CONFIG_HEADER([config.h])
|
||||||
|
|
|
||||||
4
scrub.c
4
scrub.c
|
|
@ -524,8 +524,8 @@ int state_scrub(struct snapraid_state* state, int percentage, int olderthan)
|
||||||
timelimit = recentlimit;
|
timelimit = recentlimit;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* we don't have a time limit based on quota */
|
/* if we select a 0 percentage, disable also the time limit */
|
||||||
timelimit = recentlimit;
|
timelimit = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* free the temp vector */
|
/* free the temp vector */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue