Changeset fe61181 in mainline for uspace/srv/fs/ext4fs/ext4fs_ops.c
- Timestamp:
- 2012-07-21T08:19:33Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0b293a6
- Parents:
- 34bc2fe
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/ext4fs/ext4fs_ops.c
r34bc2fe rfe61181 553 553 } 554 554 555 /* Handle orphans */556 // TODO this code should be deleted557 // ext4_filesystem_t *fs = enode->instance->filesystem;558 // uint32_t rev_level = ext4_superblock_get_rev_level(fs->superblock);559 // uint16_t lnk_count = ext4_inode_get_links_count(inode_ref->inode);560 // if ((rev_level > 0) && (lnk_count == 0)) {561 // rc = ext4_filesystem_delete_orphan(inode_ref);562 // if (rc != EOK) {563 // EXT4FS_DBG("delete orphan error, rc = \%d", rc);564 // }565 // }566 567 555 // TODO set real deletion time when it will be supported, temporary set fake time 568 556 // time_t now = time(NULL); … … 704 692 parent->dirty = true; 705 693 } 706 707 // ext4_filesystem_t *fs = EXT4FS_NODE(pfn)->instance->filesystem;708 // uint32_t rev_level = ext4_superblock_get_rev_level(fs->superblock);709 // if ((rev_level > 0) && (lnk_count == 0)) {710 // rc = ext4_filesystem_add_orphan(child_inode_ref);711 // if (rc != EOK) {712 // EXT4FS_DBG("add orphan error, rc = \%d", rc);713 // }714 // }715 694 716 695 // TODO set timestamps for parent (when we have wall-clock time)
Note:
See TracChangeset
for help on using the changeset viewer.