Changeset ab96aec in rtems


Ignore:
Timestamp:
Aug 4, 2018, 8:56:46 AM (15 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
b152d33
Parents:
dd66fda
git-author:
Sebastian Huber <sebastian.huber@…> (08/04/18 08:56:46)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/07/18 05:17:18)
Message:

dosfs: Avoid deprecated routine

Update #3358.

Location:
cpukit/libfs/src/dosfs
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/dosfs/fat.c

    rdd66fda rab96aec  
    505505        rtems_set_errno_and_return_minus_one(ENXIO);
    506506    }
     507
     508    vol->dev = stat_buf.st_dev;
    507509
    508510    /* Read boot record */
  • cpukit/libfs/src/dosfs/fat.h

    rdd66fda rab96aec  
    332332    int                fd;             /* the disk device file descriptor */
    333333    rtems_disk_device *dd;             /* disk device (see libblock) */
     334    dev_t              dev;            /* device identifier of disk */
    334335    void              *private_data;   /* reserved */
    335336} fat_vol_t;
  • cpukit/libfs/src/dosfs/msdos_dir.c

    rdd66fda rab96aec  
    384384    msdos_fs_lock(fs_info);
    385385
    386     buf->st_dev = rtems_disk_get_device_identifier(fs_info->fat.vol.dd);
     386    buf->st_dev = fs_info->fat.vol.dev;
    387387    buf->st_ino = fat_fd->ino;
    388388    buf->st_mode  = S_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO;
  • cpukit/libfs/src/dosfs/msdos_file.c

    rdd66fda rab96aec  
    131131    msdos_fs_lock(fs_info);
    132132
    133     buf->st_dev = rtems_disk_get_device_identifier(fs_info->fat.vol.dd);
     133    buf->st_dev = fs_info->fat.vol.dev;
    134134    buf->st_ino = fat_fd->ino;
    135135    buf->st_mode  = S_IFREG | S_IRWXU | S_IRWXG | S_IRWXO;
Note: See TracChangeset for help on using the changeset viewer.