]> code.delx.au - refind/blobdiff - filesystems/fsw_iso9660.c
Sort Fedora's rescue kernel (vmlinuz-0-rescue*) to the end of the list
[refind] / filesystems / fsw_iso9660.c
index 271c92459949045d3e3b1dbb090dbcc0834730c9..9962cb7f7cf6ad28f03b69aee94029ef7e55fa66 100644 (file)
@@ -282,7 +282,6 @@ static fsw_status_t fsw_iso9660_volume_mount(struct fsw_iso9660_volume *vol)
     struct iso9660_dirrec rootdir;
     int sua_pos;
     char *sig;
-    int skip;
     struct fsw_rock_ridge_susp_entry *entry;
 
     // read through the Volume Descriptor Set
@@ -323,8 +322,8 @@ static fsw_status_t fsw_iso9660_volume_mount(struct fsw_iso9660_volume *vol)
     if (vol->primary_voldesc == NULL)
         return FSW_UNSUPPORTED;
     pvoldesc = vol->primary_voldesc;
-    if (ISOINT(pvoldesc->logical_block_size) != 2048)
-        return FSW_UNSUPPORTED;
+//     if (ISOINT(pvoldesc->logical_block_size) != 2048)
+//         return FSW_UNSUPPORTED;
 
     // get volume name
     for (i = 32; i > 0; i--)
@@ -363,7 +362,6 @@ static fsw_status_t fsw_iso9660_volume_mount(struct fsw_iso9660_volume *vol)
 #if 1
     status = fsw_block_get(vol, ISOINT(rootdir.extent_location), 0, &buffer);
     sig = (char *)buffer + sua_pos;
-    skip = 0;
     entry = (struct fsw_rock_ridge_susp_entry *)sig;
     if (   entry->sig[0] == 'S'
         && entry->sig[1] == 'P')
@@ -376,7 +374,6 @@ static fsw_status_t fsw_iso9660_volume_mount(struct fsw_iso9660_volume *vol)
  //           FSW_MSG_DEBUG((FSW_MSGSTR("fsw_iso9660_volume_mount: SP magic isn't valid\n")));
 //          DBG("fsw_iso9660_volume_mount: SP magic isn't valid\n");
         }
-        skip = sp->skip;
     }
 #endif
     // release volume descriptors
@@ -455,10 +452,10 @@ static fsw_status_t fsw_iso9660_dnode_stat(struct fsw_iso9660_volume *vol, struc
 {
     sb->used_bytes = (dno->g.size + (ISO9660_BLOCKSIZE-1)) & ~(ISO9660_BLOCKSIZE-1);
     /*
-    sb->store_time_posix(sb, FSW_DNODE_STAT_CTIME, dno->raw->i_ctime);
-    sb->store_time_posix(sb, FSW_DNODE_STAT_ATIME, dno->raw->i_atime);
-    sb->store_time_posix(sb, FSW_DNODE_STAT_MTIME, dno->raw->i_mtime);
-    sb->store_attr_posix(sb, dno->raw->i_mode);
+    fsw_store_time_posix(sb, FSW_DNODE_STAT_CTIME, dno->raw->i_ctime);
+    fsw_store_time_posix(sb, FSW_DNODE_STAT_ATIME, dno->raw->i_atime);
+    fsw_store_time_posix(sb, FSW_DNODE_STAT_MTIME, dno->raw->i_mtime);
+    fsw_store_attr_posix(sb, dno->raw->i_mode);
     */
 
     return FSW_SUCCESS;