Filesystem: PR1619: Use ENOSYS for default statvfs

POSIX does not specify an error number in case the file system does not
support this call.  Use the Linux value.
This commit is contained in:
Sebastian Huber
2012-11-22 17:28:41 +01:00
parent f1738ed619
commit acec386c75
3 changed files with 5 additions and 5 deletions

View File

@@ -795,10 +795,10 @@ void test_statvfs(void)
status = mkdir( "/tmp", 0777 );
rtems_test_assert( status == 0 );
puts( "statvfs, with valid path - expect ENOTSUP" );
puts( "statvfs, with valid path - expect ENOSYS" );
status = statvfs( "/tmp", &stat );
rtems_test_assert( status == -1 );
rtems_test_assert( errno == ENOTSUP );
rtems_test_assert( errno == ENOSYS );
puts( "statvfs tested!" );
}