mirror of https://github.com/slicer69/insserv.git
Applied patch from Bloeslaw Tokarski which should improve
performance of insserv in some cases by bypassing unnecessary some fadvise calls. Closes Debian bug #775912
This commit is contained in:
parent
d05c1ad557
commit
eb3a7f8e43
5
CHANGES
5
CHANGES
|
@ -32,7 +32,10 @@ November 2018 - jsmith@resonatingmedia.com
|
||||||
is not executable, to better indicate the script will not
|
is not executable, to better indicate the script will not
|
||||||
be enabled at boot/entering runlevel.
|
be enabled at boot/entering runlevel.
|
||||||
Closes Debian bug 661314.
|
Closes Debian bug 661314.
|
||||||
|
- Applied patch from Bloeslaw Tokarski which should improve
|
||||||
|
performance of insserv in some cases by bypassing unnecessary
|
||||||
|
some fadvise calls.
|
||||||
|
Closes Debian bug #775912
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
October 2018 - jsmith@resonatingmedia.com
|
October 2018 - jsmith@resonatingmedia.com
|
||||||
|
|
|
@ -1900,7 +1900,7 @@ static void scan_script_locations(const char *const path, const char *const over
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
lsb = scan_script_defaults(dfd, d->d_name, override_path, &name, true, ignore);
|
lsb = scan_script_defaults(dfd, d->d_name, override_path, &name, false, ignore);
|
||||||
if (!name) {
|
if (!name) {
|
||||||
warn("warning: script is corrupt or invalid: %s/%s%s\n", path, rcd, d->d_name);
|
warn("warning: script is corrupt or invalid: %s/%s%s\n", path, rcd, d->d_name);
|
||||||
continue;
|
continue;
|
||||||
|
@ -2964,7 +2964,7 @@ int main (int argc, char *argv[])
|
||||||
const char *const name = argv[c];
|
const char *const name = argv[c];
|
||||||
service_t * first = (service_t*)0;
|
service_t * first = (service_t*)0;
|
||||||
char * provides, * begin, * token;
|
char * provides, * begin, * token;
|
||||||
const uchar lsb = scan_script_defaults(dfd, name, override_path, (char**)0, true, ignore);
|
const uchar lsb = scan_script_defaults(dfd, name, override_path, (char**)0, false, ignore);
|
||||||
|
|
||||||
if ((lsb & FOUND_LSB_HEADER) == 0) {
|
if ((lsb & FOUND_LSB_HEADER) == 0) {
|
||||||
if ((lsb & (FOUND_LSB_DEFAULT|FOUND_LSB_OVERRIDE)) == 0)
|
if ((lsb & (FOUND_LSB_DEFAULT|FOUND_LSB_OVERRIDE)) == 0)
|
||||||
|
|
Loading…
Reference in New Issue