* dir.cc (readdir_worker): Turn off expensive inode calculation.

This commit is contained in:
Christopher Faylor 2006-01-24 19:03:20 +00:00
parent 4aac2d2709
commit aac74926dd
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2006-01-24 Christopher Faylor <cgf@timesys.com>
* dir.cc (readdir_worker): Turn off expensive inode calculation.
2006-01-24 Corinna Vinschen <corinna@vinschen.de>
* fhandler_process.cc (fhandler_process::fill_filebuf): Disable

View File

@ -123,6 +123,7 @@ readdir_worker (DIR *dir, dirent *de)
de->__dirent_internal = 0;
else
{
#if 0
size_t len = strlen (dir->__d_dirname) + strlen (de->d_name);
char *path = (char *) alloca (len);
char *p = strchr (strcpy (path, dir->__d_dirname), '\0');
@ -132,9 +133,12 @@ readdir_worker (DIR *dir, dirent *de)
de->__dirent_internal = st.st_ino;
else
{
#endif
de->__dirent_internal = hash_path_name (0, dir->__d_dirname);
de->__dirent_internal = hash_path_name (de->__dirent_internal, de->d_name);
#if 0
}
#endif
}
de->__dirent_internal1 = de->__dirent_internal;
}