openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/systemd/1_242+AUTOINC+db2e367bfc-r0/git/src/shared/dissect-image.c
static bool device_is_mmc_special_partition(sd_device* d)
{
    const char* sysname;

    assert(d);

    if (sd_device_get_sysname(d, &sysname) < 0)
        return false;

    return startswith(sysname, "mmcblk") &&
           (endswith(sysname, "rpmb") || endswith(sysname, "boot0") ||
            endswith(sysname, "boot1"));
}
/* Detect RPMB and Boot partitions, which are not listed by blkid.
 * See https://github.com/systemd/systemd/issues/5806. */
Detect RPMB and Boot partitions, which are not listed by blkid.
Detect RPMB and Boot partitions which are not listed by blkid .
static bool device_is_mmc_special_partition(sd_device* d)
{
    const char* sysname;
    assert(d);
    if (sd_device_get_sysname(d, &sysname) < 0)
        return false;
    return startswith(sysname, "mmcblk") &&
           (endswith(sysname, "rpmb") || endswith(sysname, "boot0") ||
            endswith(sysname, "boot1"));
}
static bool device_is_mmc_special_partition ( sd_device * d ) { const char * sysname ; assert ( d ) ; if ( sd_device_get_sysname ( d , & sysname ) < 0 ) return false ; return startswith ( sysname , " " ) && ( endswith ( sysname , " " ) || endswith ( sysname , " " ) || endswith ( sysname , " " ) ) ; }
Detect RPMB and Boot partitions, which are not listed by blkid.
Detect RPMB and Boot partitions which are not listed by blkid .