Flipflip did not post inside the forums but in the bugtracker. He did recomend to fix a bug what is as far as i see not relevant for etrayz but for those who like to be close to flip flip experience i post here his suggestion. I did try the patch and somehow it speeds up my Etrayz scanning process. I was wondering how this comes and do not find out the reason. I strongly suggest to do this patch only for advanced users because i am be shure somehow it will be include in next update. Maybee improved.
http://bugs.slimdevi...ug.cgi?id=17471
diff -ur squeezeboxserver-7.6.1-33110-orig//scanner.pl squeezeboxserver-7.6.1-33110/scanner.pl
--- squeezeboxserver-7.6.1-33110-orig//scanner.pl 2011-08-15 15:58:18.000000000 +0200
+++ squeezeboxserver-7.6.1-33110/scanner.pl 2011-09-19 00:20:22.000000000 +0200
@@ -101,7 +101,7 @@
sub main {
our ($rescan, $playlists, $wipe, $force, $cleanup, $prefsFile, $priority);
- our ($quiet, $dbtype, $logfile, $logdir, $logconf, $debug, $help, $nodebuglog, $noinfolog, $nostatistics);
+ our ($quiet, $dbtype, $logfile, $logdir, $logconf, $debug, $help, $nodebuglog, $noinfolog, $nostatistics, $tmpdir);
our $LogTimestamp = 1;
@@ -133,6 +133,7 @@
'dbtype=s' => \$dbtype,
'LogTimestamp!'=> \$LogTimestamp,
'help' => \$help,
+ 'tmpdir=s', => \$tmpdir,
);
save_pid_file();
@@ -148,6 +149,9 @@
eval "use $sqlHelperClass";
die $@ if $@;
}
+
+ # set TMPDIR environment for SQLite
+ $ENV{TMPDIR} = $tmpdir if ($tmpdir ne '');
# Start a fresh scanner.log on every scan
if ( my $file = Slim::Utils::Log->scannerLogFile() ) {
Only in squeezeboxserver-7.6.1-33110: scanner.pl~
diff -ur squeezeboxserver-7.6.1-33110-orig//Slim/Music/Import.pm squeezeboxserver-7.6.1-33110/Slim/Music/Import.pm
--- squeezeboxserver-7.6.1-33110-orig//Slim/Music/Import.pm 2011-07-25 19:07:31.000000000 +0200
+++ squeezeboxserver-7.6.1-33110/Slim/Music/Import.pm 2011-09-19 00:20:42.000000000 +0200
@@ -142,6 +142,9 @@
unshift @scanArgs, $command;
$command = $Config{'perlpath'};
}
+
+ # pass $ENV{TMPDIR} to scanner.pl process (lost on exec() if we dropped privileges)
+ push(@scanArgs, '--tmpdir', $ENV{TMPDIR}) if ($ENV{TMPDIR});
# Pass debug flags to scanner
my $debugArgs = '';
Only in squeezeboxserver-7.6.1-33110/Slim/Music: Import.pm~
This post has been edited by arztde: 18 September 2011 - 22:45