Changeset 7ae01d5 in mainline


Ignore:
Timestamp:
2024-04-30T13:25:56Z (3 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
926d9d9b
Parents:
bdd9e92
git-author:
Jiri Svoboda <jiri@…> (2024-04-29 18:25:36)
git-committer:
Jiri Svoboda <jiri@…> (2024-04-30 13:25:56)
Message:

Remove unused comm_size parameter of block_init()

Location:
uspace
Files:
20 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/blkdump/blkdump.c

    rbdd9e92 r7ae01d5  
    11/*
     2 * Copyright (c) 2024 Jiri Svoboda
    23 * Copyright (c) 2011 Martin Sucha
    3  * Copyright (c) 2013 Jiri Svoboda
    44 * All rights reserved.
    55 *
     
    150150        }
    151151
    152         rc = block_init(service_id, 2048);
     152        rc = block_init(service_id);
    153153        if (rc != EOK)  {
    154154                printf(NAME ": Error initializing libblock.\n");
  • uspace/app/hbench/disk/randread.c

    rbdd9e92 r7ae01d5  
    7373        }
    7474
    75         rc = block_init(svcid, 2048);
     75        rc = block_init(svcid);
    7676        if (rc != EOK) {
    7777                bench_run_fail(run, "failed opening block device '%s'",
  • uspace/app/hbench/disk/seqread.c

    rbdd9e92 r7ae01d5  
    7373        }
    7474
    75         rc = block_init(svcid, 2048);
     75        rc = block_init(svcid);
    7676        if (rc != EOK) {
    7777                bench_run_fail(run, "failed opening block device '%s'",
  • uspace/app/init/untar.c

    rbdd9e92 r7ae01d5  
    11/*
     2 * Copyright (c) 2024 Jiri Svoboda
    23 * Copyright (c) 2018 Martin Decky
    34 * All rights reserved.
     
    5960                return ret;
    6061
    61         ret = block_init(state->sid, 4096);
     62        ret = block_init(state->sid);
    6263        if (ret != EOK)
    6364                return ret;
  • uspace/app/mkexfat/mkexfat.c

    rbdd9e92 r7ae01d5  
    11/*
     2 * Copyright (c) 2024 Jiri Svoboda
    23 * Copyright (c) 2012 Maurizio Lombardi
    34 * All rights reserved.
     
    858859        }
    859860
    860         rc = block_init(service_id, 2048);
     861        rc = block_init(service_id);
    861862        if (rc != EOK) {
    862863                printf(NAME ": Error initializing libblock.\n");
  • uspace/app/mkfat/mkfat.c

    rbdd9e92 r7ae01d5  
    11/*
    2  * Copyright (c) 2010 Jiri Svoboda
     2 * Copyright (c) 2024 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    198198        }
    199199
    200         rc = block_init(service_id, 2048);
     200        rc = block_init(service_id);
    201201        if (rc != EOK)  {
    202202                printf(NAME ": Error initializing libblock.\n");
  • uspace/app/mkmfs/mkmfs.c

    rbdd9e92 r7ae01d5  
    11/*
     2 * Copyright (c) 2024 Jiri Svoboda
    23 * Copyright (c) 2011 Maurizio Lombardi
    34 * All rights reserved.
     
    211212        }
    212213
    213         rc = block_init(service_id, 2048);
     214        rc = block_init(service_id);
    214215        if (rc != EOK)  {
    215216                printf(NAME ": Error initializing libblock.\n");
  • uspace/app/sysinst/sysinst.c

    rbdd9e92 r7ae01d5  
    11/*
    2  * Copyright (c) 2018 Jiri Svoboda
     2 * Copyright (c) 2024 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    361361
    362362        printf("sysinst_copy_boot_blocks: block_init.\n");
    363         rc = block_init(sid, 512);
     363        rc = block_init(sid);
    364364        if (rc != EOK)
    365365                return rc;
  • uspace/lib/bithenge/src/helenos/block.c

    rbdd9e92 r7ae01d5  
    11/*
     2 * Copyright (c) 2024 Jiri Svoboda
    23 * Copyright (c) 2012 Sean Bartell
    34 * All rights reserved.
     
    103104        // Initialize libblock
    104105        errno_t rc;
    105         rc = block_init(service_id, 2048);
     106        rc = block_init(service_id);
    106107        if (rc != EOK)
    107108                return rc;
  • uspace/lib/block/block.c

    rbdd9e92 r7ae01d5  
    11/*
     2 * Copyright (c) 2024 Jiri Svoboda
    23 * Copyright (c) 2008 Jakub Jermar
    34 * Copyright (c) 2008 Martin Decky
     
    145146}
    146147
    147 errno_t block_init(service_id_t service_id, size_t comm_size)
     148errno_t block_init(service_id_t service_id)
    148149{
    149150        bd_t *bd;
  • uspace/lib/block/block.h

    rbdd9e92 r7ae01d5  
    11/*
     2 * Copyright (c) 2024 Jiri Svoboda
    23 * Copyright (c) 2008 Jakub Jermar
    34 * Copyright (c) 2008 Martin Decky
     
    99100};
    100101
    101 extern errno_t block_init(service_id_t, size_t);
     102extern errno_t block_init(service_id_t);
    102103extern void block_fini(service_id_t);
    103104
  • uspace/lib/ext4/src/filesystem.c

    rbdd9e92 r7ae01d5  
    11/*
    2  * Copyright (c) 2018 Jiri Svoboda
     2 * Copyright (c) 2024 Jiri Svoboda
    33 * Copyright (c) 2011 Martin Sucha
    44 * Copyright (c) 2012 Frantisek Princ
     
    8383
    8484        /* Initialize block library (4096 is size of communication channel) */
    85         rc = block_init(fs->device, 4096);
     85        rc = block_init(fs->device);
    8686        if (rc != EOK)
    8787                goto err;
     
    265265
    266266        /* Initialize block library (4096 is size of communication channel) */
    267         rc = block_init(service_id, 4096);
     267        rc = block_init(service_id);
    268268        if (rc != EOK)
    269269                goto err;
  • uspace/srv/bd/vbd/disk.c

    rbdd9e92 r7ae01d5  
    11/*
    2  * Copyright (c) 2023 Jiri Svoboda
     2 * Copyright (c) 2024 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    499499
    500500        log_msg(LOG_DEFAULT, LVL_DEBUG, "block_init(%zu)", sid);
    501         rc = block_init(sid, 2048);
     501        rc = block_init(sid);
    502502        if (rc != EOK) {
    503503                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed opening block device %s.",
  • uspace/srv/fs/cdfs/cdfs_ops.c

    rbdd9e92 r7ae01d5  
    11/*
     2 * Copyright (c) 2024 Jiri Svoboda
    23 * Copyright (c) 2011 Martin Decky
    34 * All rights reserved.
     
    10931094
    10941095        /* Initialize the block layer */
    1095         errno_t rc = block_init(service_id, BLOCK_SIZE);
     1096        errno_t rc = block_init(service_id);
    10961097        if (rc != EOK)
    10971098                return rc;
     
    11501151{
    11511152        /* Initialize the block layer */
    1152         errno_t rc = block_init(service_id, BLOCK_SIZE);
     1153        errno_t rc = block_init(service_id);
    11531154        if (rc != EOK)
    11541155                return rc;
  • uspace/srv/fs/exfat/exfat_ops.c

    rbdd9e92 r7ae01d5  
    11/*
     2 * Copyright (c) 2024 Jiri Svoboda
    23 * Copyright (c) 2008 Jakub Jermar
    34 * Copyright (c) 2011 Oleg Romanenko
     
    10201021
    10211022        /* initialize libblock */
    1022         rc = block_init(service_id, BS_SIZE);
     1023        rc = block_init(service_id);
    10231024        if (rc != EOK)
    10241025                return rc;
  • uspace/srv/fs/fat/fat_ops.c

    rbdd9e92 r7ae01d5  
    11/*
     2 * Copyright (c) 2024 Jiri Svoboda
    23 * Copyright (c) 2008 Jakub Jermar
    34 * Copyright (c) 2011 Oleg Romanenko
     
    916917
    917918        /* initialize libblock */
    918         rc = block_init(service_id, BS_SIZE);
     919        rc = block_init(service_id);
    919920        if (rc != EOK)
    920921                return rc;
  • uspace/srv/fs/mfs/mfs_ops.c

    rbdd9e92 r7ae01d5  
    11/*
     2 * Copyright (c) 2024 Jiri Svoboda
    23 * Copyright (c) 2011 Maurizio Lombardi
    34 * All rights reserved.
     
    283284
    284285        /* Initialize libblock */
    285         rc = block_init(service_id, 4096);
     286        rc = block_init(service_id);
    286287        if (rc != EOK)
    287288                return rc;
     
    310311
    311312        /* Initialize libblock */
    312         rc = block_init(service_id, 4096);
     313        rc = block_init(service_id);
    313314        if (rc != EOK)
    314315                return rc;
  • uspace/srv/fs/udf/udf.h

    rbdd9e92 r7ae01d5  
    11/*
     2 * Copyright (c) 2024 Jiri Svoboda
    23 * Copyright (c) 2008 Jakub Jermar
    34 * Copyright (c) 2012 Julia Medvedeva
     
    5152
    5253#define BS_BLOCK     0
    53 #define MIN_SIZE     512
    54 #define MAX_SIZE     8192
    5554#define DEFAULT_VOL  0
    5655
  • uspace/srv/fs/udf/udf_ops.c

    rbdd9e92 r7ae01d5  
    11/*
     2 * Copyright (c) 2024 Jiri Svoboda
    23 * Copyright (c) 2008 Jakub Jermar
    34 * Copyright (c) 2012 Julia Medvedeva
     
    323324
    324325        /* initialize block cache */
    325         errno_t rc = block_init(service_id, MAX_SIZE);
     326        errno_t rc = block_init(service_id);
    326327        if (rc != EOK) {
    327328                free(instance);
  • uspace/srv/volsrv/empty.c

    rbdd9e92 r7ae01d5  
    11/*
    2  * Copyright (c) 2015 Jiri Svoboda
     2 * Copyright (c) 2024 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    6262        label_bd_t lbd;
    6363
    64         rc = block_init(sid, 2048);
     64        rc = block_init(sid);
    6565        if (rc != EOK) {
    6666                log_msg(LOG_DEFAULT, LVL_ERROR, "Error opening "
     
    8383        label_bd_t lbd;
    8484
    85         rc = block_init(sid, 2048);
     85        rc = block_init(sid);
    8686        if (rc != EOK) {
    8787                log_msg(LOG_DEFAULT, LVL_ERROR, "Error opening "
Note: See TracChangeset for help on using the changeset viewer.