* fhandler.h (fhandler_base::utimes_fs): New method.

* fhandler.cc (fhandler_base::utimes): Call utimes_fs if on-disk special file.
* fhandler_disk_file.cc (fhandler_disk_file::utimes): Use utimes_fs.
(fhandler_base::utimes_fs): Handle on-disk device files.
This commit is contained in:
Christopher Faylor
2005-04-13 16:17:37 +00:00
parent 726fe41807
commit f134945dcb
4 changed files with 29 additions and 4 deletions

View File

@@ -1635,6 +1635,9 @@ fhandler_base::link (const char *newpath)
int
fhandler_base::utimes (const struct timeval *tvp)
{
if (is_fs_special ())
return utimes_fs (tvp);
set_errno (EINVAL);
return -1;
}