Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset f783081 in mainline


Ignore:
Timestamp:
2021-10-25T00:32:45Z (3 months ago)
Author:
jxsvoboda <5887334+jxsvoboda@…>
Branches:
master
Children:
7aeb52cb
Parents:
4fcc2de
git-author:
Jiri Svoboda <jiri@…> (2021-10-16 21:48:59)
git-committer:
jxsvoboda <5887334+jxsvoboda@…> (2021-10-25 00:32:45)
Message:

libfs's service_get() returns service ID for service-special files

Not the service ID of the owning file system. Any file-system except
locfs should return zero.

Location:
uspace
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ext4/src/ops.c

    r4fcc2de rf783081  
    810810}
    811811
    812 /** Extract device identifier from node.
     812/** Get service ID for a service-special file.
    813813 *
    814814 * @param node Node to extract id from
    815815 *
    816  * @return id of device, where is the filesystem
     816 * @return Service ID for a service-special file, zero for a regular file.
    817817 *
    818818 */
    819819service_id_t ext4_service_get(fs_node_t *fn)
    820820{
    821         ext4_node_t *enode = EXT4_NODE(fn);
    822         return enode->instance->service_id;
     821        return 0;
    823822}
    824823
  • uspace/srv/fs/fat/fat_ops.c

    r4fcc2de rf783081  
    839839service_id_t fat_service_get(fs_node_t *fn)
    840840{
    841         return FAT_NODE(fn)->idx->service_id;
     841        return 0;
    842842}
    843843
  • uspace/srv/fs/mfs/mfs_ops.c

    r4fcc2de rf783081  
    392392mfs_service_get(fs_node_t *fsnode)
    393393{
    394         struct mfs_node *node = fsnode->data;
    395         return node->instance->service_id;
     394        return 0;
    396395}
    397396
  • uspace/srv/fs/udf/udf_ops.c

    r4fcc2de rf783081  
    104104static service_id_t udf_service_get(fs_node_t *node)
    105105{
    106         udf_node_t *udfn = UDF_NODE(node);
    107         if (udfn)
    108                 return udfn->instance->service_id;
    109 
    110106        return 0;
    111107}
Note: See TracChangeset for help on using the changeset viewer.