]> git.ozlabs.org Git - yaboot.git/commitdiff
Fix partition file search
authorEthan Benson <erbenson@alaska.net>
Sun, 8 Sep 2002 00:13:58 +0000 (00:13 +0000)
committerEthan Benson <erbenson@alaska.net>
Sun, 8 Sep 2002 00:13:58 +0000 (00:13 +0000)
* Change file_block_open() to check for FILE_OK rather then NULL
return from fs_open().  When no partition is specified in a file open
call yaboot will loop through all known partitions until the file is
found, or no more partitions are left.  In older versions fs_open()
would check for FILE_OK, so checking for NULL return from fs_open()
worked, in current versions fs_open() checks for BADFS so proper
errors can be reported.  This only really affects IBM CHRP.

git-archimport-id: erbenson@alaska.net--public/yaboot--devel--1.3--patch-28

ChangeLog
second/file.c

index aabb3757b8cd2ba2905c72b6b1d8276b9b3e7562..54c2c6b9ef3ceaa6c89a1d07c5189baa131d2b3e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,26 @@
 # tag: automatic-ChangeLog--erbenson@alaska.net--public/yaboot--devel--1.3
 #
 
+2002-09-08 00:13:58 GMT        Ethan Benson <erbenson@alaska.net>      patch-28
+
+    Summary:
+      Fix partition file search
+    Revision:
+      yaboot--devel--1.3--patch-28
+
+    * Change file_block_open() to check for FILE_OK rather then NULL
+    return from fs_open().  When no partition is specified in a file open
+    call yaboot will loop through all known partitions until the file is
+    found, or no more partitions are left.  In older versions fs_open()
+    would check for FILE_OK, so checking for NULL return from fs_open()
+    worked, in current versions fs_open() checks for BADFS so proper
+    errors can be reported.  This only really affects IBM CHRP.
+    
+
+    modified files:
+     ChangeLog second/file.c
+
+
 2002-08-18 22:33:31 GMT        Ethan Benson <erbenson@alaska.net>      patch-27
 
     Summary:
index 0278dfaed5302d52050f8da097d0fccbf291c8d5..4a44ba36c9458c37776e635060ffa440ae993e31 100644 (file)
@@ -166,7 +166,7 @@ file_block_open(    struct boot_file_t*     file,
                  p->part_number, p->part_start, p->part_size );
          if (partition == -1) {
               file->fs = fs_open( file, dev_name, p, file_name );
-              if (file->fs != NULL)
+              if (file->fs != FILE_ERR_OK)
                    goto bail;
          }
          if ((partition >= 0) && (partition == p->part_number))