Changeset acec386 in rtems


Ignore:
Timestamp:
Nov 22, 2012, 4:28:41 PM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
39aa75e7
Parents:
f1738ed
git-author:
Sebastian Huber <sebastian.huber@…> (11/22/12 16:28:41)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/22/12 16:33:13)
Message:

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.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/defaults/default_statvfs.c

    rf1738ed racec386  
    2020)
    2121{
    22   rtems_set_errno_and_return_minus_one( ENOTSUP );
     22  rtems_set_errno_and_return_minus_one( ENOSYS );
    2323}
  • testsuites/psxtests/psxstat/psxstat.scn

    rf1738ed racec386  
    17051705...st_blksize 0
    17061706...st_blocks  0
    1707 statvfs, with invalid path - expect ENOTSUP
     1707statvfs, with invalid path - expect ENOSYS
    17081708create /tmp -- OK
    1709 statvfs, with valid path - expect ENOTSUP
     1709statvfs, with valid path - expect ENOSYS
    17101710statvfs tested!
    17111711Exercise the reentrant version - _stat_r - expect EFAULT
  • testsuites/psxtests/psxstat/test.c

    rf1738ed racec386  
    796796  rtems_test_assert( status == 0 );
    797797
    798   puts( "statvfs, with valid path - expect ENOTSUP" );
     798  puts( "statvfs, with valid path - expect ENOSYS" );
    799799  status = statvfs( "/tmp", &stat );
    800800  rtems_test_assert( status == -1 );
    801   rtems_test_assert( errno == ENOTSUP );
     801  rtems_test_assert( errno == ENOSYS );
    802802
    803803  puts( "statvfs tested!" );
Note: See TracChangeset for help on using the changeset viewer.