openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/nbd/3.19-r0/nbd-3.19/nbd-server.c
void dump_section(SERVER* serve, gchar* section_header)
{
    printf("[%s]\n", section_header);
    printf("\texportname = %s\n", serve->exportname);
    printf("\tlistenaddr = %s\n", serve->listenaddr);
    if (serve->flags & F_READONLY)
    {
        printf("\treadonly = true\n");
    }
    if (serve->flags & F_MULTIFILE)
    {
        printf("\tmultifile = true\n");
    }
    if (serve->flags & F_TREEFILES)
    {
        printf("\ttreefiles = true\n");
    }
    if (serve->flags & F_COPYONWRITE)
    {
        printf("\tcopyonwrite = true\n");
    }
    if (serve->expected_size)
    {
        printf("\tfilesize = %lld\n", (long long int)serve->expected_size);
    }
    if (serve->authname)
    {
        printf("\tauthfile = %s\n", serve->authname);
    }
    exit(EXIT_SUCCESS);
}
/* Dumps a config file section of the given SERVER*, and exits. */
Dumps a config file section of the given SERVER*, and exits.
Dumps a config file section of the given SERVER * and exits .
void dump_section(SERVER* serve, gchar* section_header)
{
    printf("[%s]\n", section_header);
    printf("\texportname = %s\n", serve->exportname);
    printf("\tlistenaddr = %s\n", serve->listenaddr);
    if (serve->flags & F_READONLY)
    {
        printf("\treadonly = true\n");
    }
    if (serve->flags & F_MULTIFILE)
    {
        printf("\tmultifile = true\n");
    }
    if (serve->flags & F_TREEFILES)
    {
        printf("\ttreefiles = true\n");
    }
    if (serve->flags & F_COPYONWRITE)
    {
        printf("\tcopyonwrite = true\n");
    }
    if (serve->expected_size)
    {
        printf("\tfilesize = %lld\n", (long long int)serve->expected_size);
    }
    if (serve->authname)
    {
        printf("\tauthfile = %s\n", serve->authname);
    }
    exit(EXIT_SUCCESS);
}
void dump_section ( SERVER * serve , gchar * section_header ) { printf ( " \n " , section_header ) ; printf ( " \t \n " , serve -> exportname ) ; printf ( " \t \n " , serve -> listenaddr ) ; if ( serve -> flags & F_READONLY ) { printf ( " \t \n " ) ; } if ( serve -> flags & F_MULTIFILE ) { printf ( " \t \n " ) ; } if ( serve -> flags & F_TREEFILES ) { printf ( " \t \n " ) ; } if ( serve -> flags & F_COPYONWRITE ) { printf ( " \t \n " ) ; } if ( serve -> expected_size ) { printf ( " \t \n " , ( long long int ) serve -> expected_size ) ; } if ( serve -> authname ) { printf ( " \t \n " , serve -> authname ) ; } exit ( EXIT_SUCCESS ) ; }
Dumps a config file section of the given SERVER*, and exits.
Dumps a config file section of the given SERVER * and exits .