* 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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user