Ticket #6582: mythtv-6582-skip_special_storage_groups_in_status_page.2.patch
| File mythtv-6582-skip_special_storage_groups_in_status_page.2.patch, 1.4 KB (added by , 16 years ago) |
|---|
-
programs/mythbackend/backendutil.cpp
old new 21 21 #include "util.h" 22 22 #include "decodeencode.h" 23 23 #include "compat.h" 24 #include "storagegroup.h" 24 25 25 26 static QMap<QString, int> fsID_cache; 26 27 static QMutex cache_lock; … … 73 74 QString driveKey; 74 75 QString localStr = "1"; 75 76 struct statfs statbuf; 77 QStringList groups(StorageGroup::kSpecialGroups); 78 groups.removeAll("LiveTV"); 79 QString specialGroups = groups.join("', '"); 80 QString sql = QString("SELECT MIN(id),dirname " 81 "FROM storagegroup " 82 "WHERE hostname = :HOSTNAME " 83 "AND groupname NOT IN ( '%1' ) " 84 "GROUP BY dirname;").arg(specialGroups); 76 85 MSqlQuery query(MSqlQuery::InitCon()); 77 query.prepare("SELECT MIN(id),dirname " 78 "FROM storagegroup " 79 "WHERE hostname = :HOSTNAME " 80 "AND groupname <> :BACKUPGRP " 81 "GROUP BY dirname;"); 86 query.prepare(sql); 82 87 query.bindValue(":HOSTNAME", gContext->GetHostName()); 83 query.bindValue(":BACKUPGRP", "DB Backups");84 88 85 89 if (query.exec() && query.isActive()) 86 90 {
