* fhandler_netdrive.cc (fhandler_netdrive::fstat): Create unambiguous
inode number. (fhandler_netdrive::readdir): Ditto.
This commit is contained in:
parent
640fc41415
commit
47a5b664e5
|
@ -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>
|
2006-02-24 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
* sigproc.cc (sigheld): Define new variable.
|
* sigproc.cc (sigheld): Define new variable.
|
||||||
|
|
|
@ -143,6 +143,7 @@ fhandler_netdrive::fstat (struct __stat64 *buf)
|
||||||
fhandler_base::fstat (buf);
|
fhandler_base::fstat (buf);
|
||||||
|
|
||||||
buf->st_mode = S_IFDIR | STD_RBITS | STD_XBITS;
|
buf->st_mode = S_IFDIR | STD_RBITS | STD_XBITS;
|
||||||
|
buf->st_ino = get_namehash ();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -205,6 +206,8 @@ fhandler_netdrive::readdir (DIR *dir, dirent *de)
|
||||||
dir->__d_position++;
|
dir->__d_position++;
|
||||||
char *bs = strrchr (nro->lpRemoteName, '\\');
|
char *bs = strrchr (nro->lpRemoteName, '\\');
|
||||||
strcpy (de->d_name, bs ? bs + 1 : nro->lpRemoteName);
|
strcpy (de->d_name, bs ? bs + 1 : nro->lpRemoteName);
|
||||||
|
de->d_ino = hash_path_name (get_namehash (), de->d_name);
|
||||||
|
|
||||||
res = 0;
|
res = 0;
|
||||||
}
|
}
|
||||||
out:
|
out:
|
||||||
|
|
Loading…
Reference in New Issue