if (d1 == NULL)
return FALSE;
+ uint64_t inum = d1->inum;
+
/* Check that this rename does not cause a directory to be moved into one
* of its descendants, as that would create a loop of directories
* disconnected from the root. */
return FALSE;
bluesky_directory_remove(dir2, name2);
+
+ // TODO: Drop inode reference
}
+ bluesky_directory_remove(dir1, name1);
+ bluesky_directory_insert(dir2, name2, inum);
+
+ return TRUE;
}
/* Dump the contents of a directory to stdout. Debugging only. */