Quantcast
Viewing latest article 2
Browse Latest Browse All 1267

Kernel Panic in reading raw devices

Shesha Sreenivasamurthy writes: (Summary) If a disk is missing, then after I get a read error I close that devices, remove that device from the proc file system and go on reading the next device. Can any one please help me
understand this.....
-Shesha

-------------------------------------------------------------------------------------------------------------      1  #include <string.h>      2  #include <sys/types.h>      3  #include <unistd.h>      4  #include <sys/stat.h>      5  #include <fcntl.h>      6  #include <linux/fs.h>      7  #include <signal.h>      8  #include <syslog.h>      9  #include <stdio.h>     10     11     12     13  /* Raw devices require the memory to be aligned at sector boundry */     14     15  char * allign_memory(char * buffer, int boundry)     16  {     17      unsigned long addrs, rem;     25  }     26     27     28  void scsi_single_dev(char *cmd, int host, int channel, int id,  int lun)     29  {     30    FILE *fd;

Viewing latest article 2
Browse Latest Browse All 1267

Trending Articles