"Fossies" - the Fresh Open Source Software Archive

Member "scsiadd-1.97/TODO" (16 Jun 2009, 462 Bytes) of package /linux/misc/old/scsiadd-1.97.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 - use sysfs with linux 2.6
    2 
    3 static int
    4 _kernel_reread_part_table (PedDevice* dev)
    5 {
    6         int     retry_count = 5;
    7 
    8         sync();
    9         while (ioctl (dev->fd, BLKRRPART)) {
   10                 retry_count--;
   11                 sync();
   12                 if (!retry_count)
   13                         return 0;
   14         }
   15 
   16         return 1;
   17 }
   18 
   19 
   20 - look if we can initiate a partition table reread if a disc is mounted
   21 - look if other unix variants have a similar mechanism