* path.h (path_conv::fs_type): New method.

* syscalls.cc (rename): Check for cross-device situation before
	touching anything.  Explain why.  Workaround NFS bug in call to
	NtSetInformationFile(FileRenameInformation).
This commit is contained in:
Corinna Vinschen
2013-01-10 15:08:22 +00:00
parent 211f1ec717
commit 34ce80888a
3 changed files with 74 additions and 8 deletions

View File

@ -362,6 +362,7 @@ class path_conv
bool fs_is_cifs () const {return fs.is_cifs ();}
bool fs_is_nwfs () const {return fs.is_nwfs ();}
bool fs_is_ncfsd () const {return fs.is_ncfsd ();}
fs_info_type fs_type () const {return fs.what_fs ();}
ULONG fs_serial_number () const {return fs.serial_number ();}
inline const char *set_path (const char *p)
{