"Fossies" - the Fresh Open Source Software Archive

Member "glusterfs-8.2/xlators/performance/io-threads/src/io-threads-messages.h" (16 Sep 2020, 1876 Bytes) of package /linux/misc/glusterfs-8.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "io-threads-messages.h" see the Fossies "Dox" file reference documentation.

    1 /*Copyright (c) 2015 Red Hat, Inc. <http://www.redhat.com>
    2   This file is part of GlusterFS.
    3 
    4   This file is licensed to you under your choice of the GNU Lesser
    5   General Public License, version 3 or any later version (LGPLv3 or
    6   later), or the GNU General Public License, version 2 (GPLv2), in all
    7   cases as published by the Free Software Foundation.
    8 */
    9 
   10 #ifndef _IO_THREADS_MESSAGES_H_
   11 #define _IO_THREADS_MESSAGES_H_
   12 
   13 #include <glusterfs/glfs-message-id.h>
   14 
   15 /* To add new message IDs, append new identifiers at the end of the list.
   16  *
   17  * Never remove a message ID. If it's not used anymore, you can rename it or
   18  * leave it as it is, but not delete it. This is to prevent reutilization of
   19  * IDs by other messages.
   20  *
   21  * The component name must match one of the entries defined in
   22  * glfs-message-id.h.
   23  */
   24 
   25 GLFS_MSGID(IO_THREADS, IO_THREADS_MSG_INIT_FAILED,
   26            IO_THREADS_MSG_XLATOR_CHILD_MISCONFIGURED, IO_THREADS_MSG_NO_MEMORY,
   27            IO_THREADS_MSG_VOL_MISCONFIGURED, IO_THREADS_MSG_SIZE_NOT_SET,
   28            IO_THREADS_MSG_OUT_OF_MEMORY, IO_THREADS_MSG_PTHREAD_INIT_FAILED,
   29            IO_THREADS_MSG_WORKER_THREAD_INIT_FAILED);
   30 
   31 #define IO_THREADS_MSG_INIT_FAILED_STR "Thread attribute initialization failed"
   32 #define IO_THREADS_MSG_SIZE_NOT_SET_STR "Using default thread stack size"
   33 #define IO_THREADS_MSG_NO_MEMORY_STR "Memory accounting init failed"
   34 #define IO_THREADS_MSG_XLATOR_CHILD_MISCONFIGURED_STR                          \
   35     "FATAL: iot not configured with exactly one child"
   36 #define IO_THREADS_MSG_VOL_MISCONFIGURED_STR "dangling volume. check volfile"
   37 #define IO_THREADS_MSG_OUT_OF_MEMORY_STR "out of memory"
   38 #define IO_THREADS_MSG_PTHREAD_INIT_FAILED_STR "init failed"
   39 #define IO_THREADS_MSG_WORKER_THREAD_INIT_FAILED_STR                           \
   40     "cannot initialize worker threads, exiting init"
   41 #endif /* _IO_THREADS_MESSAGES_H_ */