Ignore:
Timestamp:
Jul 1, 2010, 2:39:39 PM (10 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.10
Children:
e8cec9e
Parents:
615d8cc
Message:

2010-06-10 Sebastian Huber <sebastian.huber@…>

  • libcsupport/src/unmount.c: Removed obsolete declarations. Fixed invalid memory free.

2010-06-10 Sebastian Huber <sebastian.huber@…>

  • libnetworking/rtems/ftpfs.h, libnetworking/lib/ftpfs.c: Removed rtems_ftpfs_mount().

2010-06-10 Sebastian Huber <sebastian.huber@…>

  • libcsupport/src/mount-mktgt.c: New file.
  • libcsupport/Makefile.am: Reflect change above.
  • libcsupport/include/rtems/libio.h: Declare mount_and_make_target_path().

2010-06-09 Sebastian Huber <sebastian.huber@…>

  • libnetworking/rtems/ftpfs.h, libnetworking/lib/ftpfs.c: Added rtems_ftpfs_mount() again. Documentation.

2010-06-09 Sebastian Huber <sebastian.huber@…>

  • libcsupport/include/rtems/libio.h, sapi/include/confdefs.h: Added and use defines for file system types.

2010-06-09 Sebastian Huber <sebastian.huber@…>

  • libcsupport/src/mount.c: Fixed NULL pointer access.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libnetworking/lib/ftpfs.c

    r615d8cc r3d3a18e6  
    100100} rtems_ftpfs_mount_entry;
    101101
     102static const rtems_filesystem_operations_table rtems_ftpfs_ops;
     103
    102104static const rtems_filesystem_file_handlers_r rtems_ftpfs_handlers;
    103105
     
    130132  return 0;
    131133}
    132 
    133 #if 0
    134 CCJ_REMOVE_MOUNT
    135 rtems_status_code rtems_ftpfs_mount(const char *mount_point)
    136 {
    137   int rv = 0;
    138 
    139   if (mount_point == NULL) {
    140     mount_point = RTEMS_FTPFS_MOUNT_POINT_DEFAULT;
    141   }
    142 
    143   rv = mkdir(mount_point, S_IRWXU | S_IRWXG | S_IRWXO);
    144   if (rv != 0) {
    145     return RTEMS_IO_ERROR;
    146   }
    147 
    148   rv = mount(
    149     NULL,
    150     &rtems_ftpfs_ops,
    151     RTEMS_FILESYSTEM_READ_WRITE,
    152     NULL,
    153     mount_point
    154   );
    155   if (rv != 0) {
    156     return RTEMS_IO_ERROR;
    157   }
    158 
    159   return RTEMS_SUCCESSFUL;
    160 }
    161 #endif
    162134
    163135static rtems_status_code rtems_ftpfs_do_ioctl(
     
    13191291}
    13201292
    1321 const rtems_filesystem_operations_table rtems_ftpfs_ops = {
     1293static const rtems_filesystem_operations_table rtems_ftpfs_ops = {
    13221294  .evalpath_h = rtems_ftpfs_eval_path,
    13231295  .evalformake_h = NULL,
Note: See TracChangeset for help on using the changeset viewer.