Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37732532
en ru br
ALT Linux repositórios
S:2.10.1-alt1

Group :: Sistema/Servidores
RPM: udisks2

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: udisks-2.10.0-up-empty_loop_devices.patch
Download


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), "");
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009