Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1493826
 поиск   регистрация   авторизация 
 
Группа :: Графические оболочки/KDE
Пакет: kdelibs

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

Патч: stat-on-media-alt.diff


--- kio/kio/kdirwatch.cpp
+++ kio/kio/kdirwatch.cpp	2004/02/23 13:28:33
@@ -513,7 +513,8 @@
 
 bool KDirWatchPrivate::useStat(Entry* e)
 {
-  if (KIO::probably_slow_mounted(e->path))
+  if ( e->path.startsWith("/mnt/") || (e->path == "/mnt")
+       || (KIO::probably_slow_mounted(e->path)) )
     useFreq(e, m_nfsPollInterval);
   else
     useFreq(e, m_PollInterval);
@@ -631,11 +632,13 @@
   e->msecLeft = 0;
 
 #if defined(HAVE_FAM)
-  if (useFAM(e)) return;
+  if ( ! (path.startsWith("/mnt/") || (path == "/mnt")) )
+     if (useFAM(e)) return;
 #endif
 
 #ifdef HAVE_DNOTIFY
-  if (useDNotify(e)) return;
+  if ( ! (path.startsWith("/mnt/") || (path == "/mnt")) )
+     if (useDNotify(e)) return;
 #endif
 
   useStat(e);
 
design & coding: Vladimir Lettiev aka crux © 2004-2005