src/filed/fd_snapshot.c
static int compare_entries(void *item1, void *item2)
{
   fs_device *dev1 = (fs_device *) item1;
   fs_device *dev2 = (fs_device *) item2;
   if (dev1->dev > dev2->dev) {
      return 1;

   } else if (dev1->dev < dev2->dev) {
      return -1;

   } else {
      return 0;
   }
}
/* The device list is stored in a rblist, using the
 * dev no as key. The devno can be found in every stat()
 * packet.
 */
The device list is stored in a rblist, using the
dev no as key. The devno can be found in every stat()
packet.
The device list is stored in a rblist using the dev no as key . The devno can be found in every stat () packet .
static int compare_entries(void *item1, void *item2)
{
   fs_device *dev1 = (fs_device *) item1;
   fs_device *dev2 = (fs_device *) item2;
   if (dev1->dev > dev2->dev) {
      return 1;
   } else if (dev1->dev < dev2->dev) {
      return -1;
   } else {
      return 0;
   }
}
static int compare_entries ( void * item1 , void * item2 ) { fs_device * dev1 = ( fs_device * ) item1 ; fs_device * dev2 = ( fs_device * ) item2 ; if ( dev1 -> dev > dev2 -> dev ) { return 1 ; } else if ( dev1 -> dev < dev2 -> dev ) { return -1 ; } else { return 0 ; } }
The device list is stored in a rblist, using the
 dev no as key.
The device list is stored in a rblist using the dev no as key .