feat: better rtc framework which aims to remove single rtc restrictions.
[lunaix-os.git] / lunaix-os / kernel / fs / iso9660 / directory.c
index 76262d2f5a5a53d64ec4542c1dca1340d51e00cf..770cd50c078c93b73bb063243fb8dc51a3bbeff8 100644 (file)
@@ -6,7 +6,7 @@
 
 #include <klibc/string.h>
 
 
 #include <klibc/string.h>
 
-#include <sys/dirent_defs.h>
+#include <usr/lunaix/dirent_defs.h>
 
 extern struct cake_pile* drec_cache_pile;
 
 
 extern struct cake_pile* drec_cache_pile;
 
@@ -88,7 +88,8 @@ iso9660_setup_dnode(struct v_dnode* dnode, struct v_inode* inode)
     do {
         if (blk_offset >= ISO9660_BLKSZ - sizeof(struct iso_drecord)) {
             current_pos += ISO9660_BLKSZ;
     do {
         if (blk_offset >= ISO9660_BLKSZ - sizeof(struct iso_drecord)) {
             current_pos += ISO9660_BLKSZ;
-            errno = dev->read(dev, records, blk + current_pos, ISO9660_BLKSZ);
+            errno =
+              dev->ops.read(dev, records, blk + current_pos, ISO9660_BLKSZ);
             if (errno < 0) {
                 errno = EIO;
                 goto done;
             if (errno < 0) {
                 errno = EIO;
                 goto done;