commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

hurd/fatfs ChangeLog fat.c


From: Marcus Brinkmann
Subject: hurd/fatfs ChangeLog fat.c
Date: Mon, 04 Aug 2003 18:26:14 -0400

CVSROOT:        /cvsroot/hurd
Module name:    hurd
Branch:         
Changes by:     Marcus Brinkmann <address@hidden>       03/08/04 18:26:14

Modified files:
        fatfs          : ChangeLog fat.c 

Log message:
        2003-08-05  Marcus Brinkmann  <address@hidden>
        
        * fat.c (fat_read_sblock): Catch error from store_read.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/hurd/hurd/fatfs/ChangeLog.diff?tr1=1.7&tr2=1.8&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/hurd/hurd/fatfs/fat.c.diff?tr1=1.4&tr2=1.5&r1=text&r2=text

Patches:
Index: hurd/fatfs/ChangeLog
diff -u hurd/fatfs/ChangeLog:1.7 hurd/fatfs/ChangeLog:1.8
--- hurd/fatfs/ChangeLog:1.7    Sun Aug  3 16:53:54 2003
+++ hurd/fatfs/ChangeLog        Mon Aug  4 18:26:14 2003
@@ -1,3 +1,7 @@
+2003-08-05  Marcus Brinkmann  <address@hidden>
+
+       * fat.c (fat_read_sblock): Catch error from store_read.
+
 2003-08-03  Marco Gerards  <address@hidden>
 
        * inode.c (read_node): Fix typo.
Index: hurd/fatfs/fat.c
diff -u hurd/fatfs/fat.c:1.4 hurd/fatfs/fat.c:1.5
--- hurd/fatfs/fat.c:1.4        Sat Aug  2 17:32:52 2003
+++ hurd/fatfs/fat.c    Mon Aug  4 18:26:14 2003
@@ -68,10 +68,14 @@
 void
 fat_read_sblock (void)
 {
+  error_t err;
   int read;
 
   sblock = malloc (sizeof (struct boot_sector));
-  store_read (store, 0, sizeof (struct boot_sector), (void **) &sblock, &read);
+  err = store_read (store, 0, sizeof (struct boot_sector),
+                   (void **) &sblock, &read);
+  if (err)
+    error (1, err, "Could not read superblock");
 
   if (read_word(sblock->id) != BOOT_SECTOR_ID)
     error (1, 0, "Could not find valid superblock");




reply via email to

[Prev in Thread] Current Thread [Next in Thread]