Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37405427
en ru br
Репозитории ALT

Группа :: Система/Серверы
Пакет: udisks2

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

Патч: udisks-2.10.0-up-empty_loop_devices.patch
Скачать


commit 521265ae0e71426a608cdc6bff5f828c7b788dc0
Author: Tomas Bzatek <tbzatek@redhat.com>
Date:   Tue Jul 18 17:33:01 2023 +0200
    udiskslinuxloop: Avoid warnings on empty loop devices
    
    By default no device node is created upon loading the 'loop' kernel
    module unless overriden by the max_loop module parameter in which
    case device nodes are created up to the specified limit. This causes
    udisks to report nasty warning about as ENXIO is reported upon
    calling a LOOP_GET_STATUS64 ioctl().
diff --git a/src/udiskslinuxloop.c b/src/udiskslinuxloop.c
index 3eaeb2fc..5f162f1d 100644
--- a/src/udiskslinuxloop.c
+++ b/src/udiskslinuxloop.c
@@ -137,11 +137,14 @@ udisks_linux_loop_update (UDisksLinuxLoop        *loop,
         {
           if (error != NULL)
             {
-              udisks_warning ("Error getting '%s' information: %s (%s, %d)",
-                              g_udev_device_get_name (device->udev_device),
-                              error->message,
-                              g_quark_to_string (error->domain),
-                              error->code);
+              if (! g_error_matches (error, BD_LOOP_ERROR, BD_LOOP_ERROR_DEVICE))
+                {
+                  udisks_warning ("Error getting '%s' information: %s (%s, %d)",
+                                  g_udev_device_get_name (device->udev_device),
+                                  error->message,
+                                  g_quark_to_string (error->domain),
+                                  error->code);
+                }
               g_clear_error (&error);
             }
           udisks_loop_set_backing_file (UDISKS_LOOP (loop), "");
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin