Lines Matching refs:directory
70 static void yaffs_AddObjectToDirectory(yaffs_Object * directory,
1369 /* Add it to the lost and found directory.
1820 newDir = obj->parent; /* use the old directory */
1826 ("tragendy: yaffs_ChangeObjectName: newDir is not a directory"
1843 /* If the object is a file going into the unlinked directory,
1846 * it into a directory.
1906 /* There is a target that is a non-empty directory, so we fail */
4347 /* Move to the unlinked directory so we have a record that it was deleted. */
4433 /* First check that the directory is empty. */
4496 * - Unhook it from its parent directory (so that the rename can work)
4936 /* We only load some info, don't fiddle with directory structure */
4985 /* directory stuff...
4995 /* Set up as a directory */
5005 * We're trying to use a non-directory as a directory
5010 ("yaffs tragedy: attempting to use non-directory as"
5011 " a directory in scan. Put in lost+found."
5578 /* We only load some info, don't fiddle with directory structure */
5666 /* directory stuff...
5672 /* Set up as a directory */
5682 * We're trying to use a non-directory as a directory
5687 ("yaffs tragedy: attempting to use non-directory as"
5688 " a directory in scan. Put in lost+found."
5828 /*------------------------------ Directory Functions ----------------------------- */
5842 static void yaffs_AddObjectToDirectory(yaffs_Object * directory,
5846 if (!directory) {
5849 ("tragedy: Trying to add an object to a null pointer directory"
5853 if (directory->variantType != YAFFS_OBJECT_TYPE_DIRECTORY) {
5856 ("tragedy: Trying to add an object to a non-directory"
5870 list_add(&obj->siblings, &directory->variant.directoryVariant.children);
5871 obj->parent = directory;
5873 if (directory == obj->myDev->unlinkedDir
5874 || directory == obj->myDev->deletedDir) {
5881 yaffs_Object *yaffs_FindObjectByName(yaffs_Object * directory,
5895 if (!directory) {
5898 ("tragedy: yaffs_FindObjectByName: null pointer directory"
5902 if (directory->variantType != YAFFS_OBJECT_TYPE_DIRECTORY) {
5905 ("tragedy: yaffs_FindObjectByName: non-directory" TENDSTR)));
5911 list_for_each(i, &directory->variant.directoryVariant.children) {
5951 ("tragedy: yaffs_FindObjectByName: null pointer directory"
5958 ("tragedy: yaffs_FindObjectByName: non-directory" TENDSTR)));
6044 /* Only a directory should drop through to here */