Changeset f783081 in mainline for uspace/lib/ext4/src/ops.c


Ignore:
Timestamp:
2021-10-25T00:32:45Z (3 years ago)
Author:
jxsvoboda <5887334+jxsvoboda@…>
Branches:
master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
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.

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.