Parcourir la source

fix(vfs): wrong comment of dentry flags

greatbridf il y a 2 ans
Parent
commit
0f4efff41e
2 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 2 0
      include/fs/fat.hpp
  2. 1 1
      include/kernel/vfs.hpp

+ 2 - 0
include/fs/fat.hpp

@@ -100,6 +100,7 @@ struct PACKED directory_entry {
     uint32_t size;
 };
 
+// TODO: deallocate inodes when dentry is destroyed
 class fat32 : public virtual fs::vfs {
 private:
     constexpr static uint32_t SECTOR_SIZE = 512;
@@ -113,6 +114,7 @@ private:
     uint32_t next_free_cluster_hint;
     cluster_t root_dir;
     cluster_t data_region_offset;
+    // TODO: use block device special node id
     inode* device;
     uint16_t reserved_sectors;
     uint8_t fat_copies;

+ 1 - 1
include/kernel/vfs.hpp

@@ -83,7 +83,7 @@ public:
     public:
         dentry* parent;
         inode* ind;
-        // if the entry is not a file, this flag is ignored
+        // if the entry is a file, this flag is ignored
         union {
             uint32_t v;
             struct {