* fhandler_netdrive.cc (fhandler_netdrive::fstat): Create unambiguous

inode number.
	(fhandler_netdrive::readdir): Ditto.
This commit is contained in:
Corinna Vinschen 2006-02-27 17:46:29 +00:00
parent 640fc41415
commit 47a5b664e5
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2006-02-27 Corinna Vinschen <corinna@vinschen.de>
* fhandler_netdrive.cc (fhandler_netdrive::fstat): Create unambiguous
inode number.
(fhandler_netdrive::readdir): Ditto.
2006-02-24 Christopher Faylor <cgf@timesys.com>
* sigproc.cc (sigheld): Define new variable.

View File

@ -143,6 +143,7 @@ fhandler_netdrive::fstat (struct __stat64 *buf)
fhandler_base::fstat (buf);
buf->st_mode = S_IFDIR | STD_RBITS | STD_XBITS;
buf->st_ino = get_namehash ();
return 0;
}
@ -205,6 +206,8 @@ fhandler_netdrive::readdir (DIR *dir, dirent *de)
dir->__d_position++;
char *bs = strrchr (nro->lpRemoteName, '\\');
strcpy (de->d_name, bs ? bs + 1 : nro->lpRemoteName);
de->d_ino = hash_path_name (get_namehash (), de->d_name);
res = 0;
}
out: