]> git.ozlabs.org Git - yaboot.git/blobdiff - second/fs_iso.c
Commit yaboot 1.3.5-pre1
[yaboot.git] / second / fs_iso.c
index 9f52a3da5fd103541e928cc04102b84990e91015..e1435490bd0b74d2d85cdbed45d248b5dc088d4c 100644 (file)
@@ -24,7 +24,7 @@
 #include "string.h"
 #include "partition.h"
 #include "fs.h"
-
+#include "errors.h"
 
 static int iso_open(   struct boot_file_t*     file,
                        const char*             dev_name,
@@ -39,11 +39,11 @@ static int iso_close(       struct boot_file_t*     file);
 
 struct fs_t iso_filesystem =
 {
-    "iso9660",
-    iso_open,
-    iso_read,
-    iso_seek,
-    iso_close
+     "iso9660",
+     iso_open,
+     iso_read,
+     iso_seek,
+     iso_close
 };
 
 static int
@@ -52,7 +52,7 @@ iso_open(     struct boot_file_t*     file,
                struct partition_t*     part,
                const char*             file_name)
 {
-       return FILE_ERR_NOTFOUND;
+     return FILE_ERR_BAD_FSYS;
 }
 
 static int
@@ -60,18 +60,25 @@ iso_read(   struct boot_file_t*     file,
                unsigned int            size,
                void*                   buffer)
 {
-       return FILE_ERR_NOTFOUND;
+     return FILE_ERR_BAD_FSYS;
 }
 
 static int
 iso_seek(      struct boot_file_t*     file,
                unsigned int            newpos)
 {
-       return FILE_ERR_NOTFOUND;
+     return FILE_ERR_BAD_FSYS;
 }
 
 static int
 iso_close(     struct boot_file_t*     file)
 {
-       return 0;
+     return 0;
 }
+
+/* 
+ * Local variables:
+ * c-file-style: "k&r"
+ * c-basic-offset: 5
+ * End:
+ */