Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@localhost src]# tools/findconf.sh
- config_item = gpfs_params
- CONF_ITEM_BOOL("link_support", true, fsal_staticfsinfo_t, link_support);
- CONF_ITEM_BOOL("symlink_support", true, fsal_staticfsinfo_t, symlink_support);
- CONF_ITEM_BOOL("cansettime", true, fsal_staticfsinfo_t, cansettime);
- CONF_ITEM_MODE("umask", 0, 0777, 0, fsal_staticfsinfo_t, umask);
- CONF_ITEM_BOOL("auth_xdev_export", false, fsal_staticfsinfo_t, auth_exportpath_xdev);
- CONF_ITEM_MODE("xattr_access_rights", 0, 0777, 0400, fsal_staticfsinfo_t, xattr_access_rights);
- CONF_ITEM_ENUM_BITS("Delegations", FSAL_OPTION_FILE_READ_DELEG; FSAL_OPTION_FILE_DELEGATIONS; deleg_types, fsal_staticfsinfo_t, delegations);
- CONF_ITEM_BOOL("PNFS_MDS", true, fsal_staticfsinfo_t, pnfs_mds);
- CONF_ITEM_BOOL("PNFS_DS", true, fsal_staticfsinfo_t, pnfs_ds);
- CONF_ITEM_BOOL("fsal_trace", true, fsal_staticfsinfo_t, fsal_trace);
- CONF_ITEM_BOOL("fsal_grace", false, fsal_staticfsinfo_t, fsal_grace);
- CONFIG_EOL
- config_block = gpfs_param
- dbus_interface_name = org.ganesha.nfsd.config.fsal.gpfs
- name = GPFS
- params = gpfs_params
- config_item = ds_params
- CONF_MAND_IPV4_ADDR("DS_Addr", "127.0.0.1", lustre_pnfs_ds_parameter, ipaddr);
- CONF_MAND_INET_PORT("DS_Port", 1024, UINT16_MAX, 3260, lustre_pnfs_ds_parameter, ipport), /* use iscsi port */
- CONF_MAND_UI32("DS_Id", 1, UINT32_MAX, 1, lustre_pnfs_ds_parameter, id);
- CONFIG_EOL
- config_item = pnfs_params
- CONF_ITEM_BLOCK("DataServer", ds_params, dataserver_init, dataserver_commit; lustre_pnfs_parameter, ds_list);
- CONFIG_EOL
- config_item = lustre_params
- CONF_ITEM_BOOL("link_support", true, lustre_fsal_module, fs_info.link_support);
- CONF_ITEM_BOOL("symlink_support", true, lustre_fsal_module, fs_info.symlink_support);
- CONF_ITEM_BOOL("cansettime", true, lustre_fsal_module, fs_info.cansettime);
- CONF_ITEM_UI64("maxread", 512, FSAL_MAXIOSIZE, FSAL_MAXIOSIZE, lustre_fsal_module, fs_info.maxread);
- CONF_ITEM_UI64("maxwrite", 512, FSAL_MAXIOSIZE, FSAL_MAXIOSIZE, lustre_fsal_module, fs_info.maxwrite);
- CONF_ITEM_MODE("umask", 0, 0777, 0, lustre_fsal_module, fs_info.umask);
- CONF_ITEM_BOOL("auth_xdev_export", false, lustre_fsal_module, fs_info.auth_exportpath_xdev);
- CONF_ITEM_MODE("xattr_access_rights", 0, 0777, 0400, lustre_fsal_module, fs_info.xattr_access_rights);
- CONF_ITEM_BLOCK("PNFS", pnfs_params, noop_conf_init, lustre_conf_pnfs_commit; lustre_fsal_module, pnfs_param);
- CONFIG_EOL
- config_block = lustre_param
- dbus_interface_name = org.ganesha.nfsd.config.fsal.lustre
- name = LUSTRE
- params = lustre_params
- config_item = pnfs_params
- CONF_MAND_UI32("Stripe_Unit", 8192, 1024*1024, 1024, lustre_exp_pnfs_parameter, stripe_unit);
- CONF_ITEM_BOOL("pnfs_enabled", false, lustre_exp_pnfs_parameter, pnfs_enabled);
- CONFIG_EOL
- config_item = export_params
- CONF_ITEM_NOOP("name"),
- CONF_ITEM_BLOCK("PNFS", pnfs_params, noop_conf_init, noop_conf_commit; lustre_fsal_export, pnfs_param);
- CONFIG_EOL
- config_block = export_param
- dbus_interface_name = org.ganesha.nfsd.config.fsal.lustre
- name = FSAL
- params = export_params
- config_item = export_params
- CONF_ITEM_NOOP("name"),
- CONF_MAND_STR("volume", 1, MAXPATHLEN, NULL, glexport_params, glvolname);
- CONF_MAND_STR("hostname", 1, MAXPATHLEN, NULL, glexport_params, glhostname);
- CONF_ITEM_PATH("volpath", 1, MAXPATHLEN, "/", glexport_params, glvolpath);
- CONF_ITEM_PATH("glfs_log", 1, MAXPATHLEN, "/tmp/gfapi.log", glexport_params, glfs_log);
- CONFIG_EOL
- config_block = export_param
- dbus_interface_name = org.ganesha.nfsd.config.fsal.gluster-export%d
- name = FSAL
- params = export_params
- config_item = ceph_items
- CONF_ITEM_MODE("umask", 0, 0777, 0, ceph_fsal_module, fs_info.umask);
- CONF_ITEM_MODE("xattr_access_rights", 0, 0777, 0, ceph_fsal_module, fs_info.xattr_access_rights);
- CONFIG_EOL
- config_block = ceph_block
- dbus_interface_name = org.ganesha.nfsd.config.fsal.ceph
- name = Ceph
- params = ceph_items
- config_item = xfs_params
- CONF_ITEM_BOOL("link_support", true, fsal_staticfsinfo_t, link_support);
- CONF_ITEM_BOOL("symlink_support", true, fsal_staticfsinfo_t, symlink_support);
- CONF_ITEM_BOOL("cansettime", true, fsal_staticfsinfo_t, cansettime);
- CONF_ITEM_UI64("maxread", 512, FSAL_MAXIOSIZE, FSAL_MAXIOSIZE, fsal_staticfsinfo_t, maxread);
- CONF_ITEM_UI64("maxwrite", 512, FSAL_MAXIOSIZE, FSAL_MAXIOSIZE, fsal_staticfsinfo_t, maxwrite);
- CONF_ITEM_MODE("umask", 0, 0777, 0, fsal_staticfsinfo_t, umask);
- CONF_ITEM_BOOL("auth_xdev_export", false, fsal_staticfsinfo_t, auth_exportpath_xdev);
- CONF_ITEM_MODE("xattr_access_rights", 0, 0777, 0400, fsal_staticfsinfo_t, xattr_access_rights);
- CONFIG_EOL
- config_block = xfs_param
- dbus_interface_name = org.ganesha.nfsd.config.fsal.xfs
- name = XFS
- params = xfs_params
- config_item = export_params
- CONF_ITEM_NOOP("name"),
- CONFIG_EOL
- config_block = export_param_block
- dbus_interface_name = org.ganesha.nfsd.config.fsal.xfs-export%d
- name = FSAL
- params = export_params
- config_item = panfs_params
- CONF_ITEM_BOOL("link_support", true, fsal_staticfsinfo_t, link_support);
- CONF_ITEM_BOOL("symlink_support", true, fsal_staticfsinfo_t, symlink_support);
- CONF_ITEM_BOOL("cansettime", true, fsal_staticfsinfo_t, cansettime);
- CONF_ITEM_UI64("maxread", 512, FSAL_MAXIOSIZE, FSAL_MAXIOSIZE, fsal_staticfsinfo_t, maxread);
- CONF_ITEM_UI64("maxwrite", 512, FSAL_MAXIOSIZE, FSAL_MAXIOSIZE, fsal_staticfsinfo_t, maxwrite);
- CONF_ITEM_MODE("umask", 0, 0777, 0, fsal_staticfsinfo_t, umask);
- CONF_ITEM_BOOL("auth_xdev_export", false, fsal_staticfsinfo_t, auth_exportpath_xdev);
- CONF_ITEM_MODE("xattr_access_rights", 0, 0777, 0400, fsal_staticfsinfo_t, xattr_access_rights);
- CONFIG_EOL
- config_block = panfs_param
- dbus_interface_name = org.ganesha.nfsd.config.fsal.panfs
- name = PANFS
- params = panfs_params
- config_item_list = fsid_types
- CONFIG_LIST_TOK("None", FSID_NO_TYPE),
- CONFIG_LIST_TOK("One64", FSID_ONE_UINT64),
- CONFIG_LIST_TOK("Major64", FSID_MAJOR_64),
- CONFIG_LIST_TOK("Two64", FSID_TWO_UINT64),
- CONFIG_LIST_TOK("uuid", FSID_TWO_UINT64),
- CONFIG_LIST_TOK("Two32", FSID_TWO_UINT32),
- CONFIG_LIST_TOK("Dev", FSID_DEVICE),
- CONFIG_LIST_TOK("Device", FSID_DEVICE),
- CONFIG_LIST_EOL
- config_item = export_params
- CONF_ITEM_NOOP("name"),
- CONF_ITEM_BOOL("pnfs", false, panfs_fsal_export, pnfs_enabled);
- CONF_ITEM_ENUM("fsid_type", -1, fsid_types; panfs_fsal_export, vfs_export.fsid_type);
- CONFIG_EOL
- config_block = export_param_block
- dbus_interface_name = org.ganesha.nfsd.config.fsal.panfs-export%d
- name = FSAL
- params = export_params
- config_item = vfs_params
- CONF_ITEM_BOOL("link_support", true, fsal_staticfsinfo_t, link_support);
- CONF_ITEM_BOOL("symlink_support", true, fsal_staticfsinfo_t, symlink_support);
- CONF_ITEM_BOOL("cansettime", true, fsal_staticfsinfo_t, cansettime);
- CONF_ITEM_UI64("maxread", 512, FSAL_MAXIOSIZE, FSAL_MAXIOSIZE, fsal_staticfsinfo_t, maxread);
- CONF_ITEM_UI64("maxwrite", 512, FSAL_MAXIOSIZE, FSAL_MAXIOSIZE, fsal_staticfsinfo_t, maxwrite);
- CONF_ITEM_MODE("umask", 0, 0777, 0, fsal_staticfsinfo_t, umask);
- CONF_ITEM_BOOL("auth_xdev_export", false, fsal_staticfsinfo_t, auth_exportpath_xdev);
- CONF_ITEM_MODE("xattr_access_rights", 0, 0777, 0400, fsal_staticfsinfo_t, xattr_access_rights);
- CONFIG_EOL
- config_block = vfs_param
- dbus_interface_name = org.ganesha.nfsd.config.fsal.vfs
- name = VFS
- params = vfs_params
- config_item_list = fsid_types
- CONFIG_LIST_TOK("None", FSID_NO_TYPE),
- CONFIG_LIST_TOK("One64", FSID_ONE_UINT64),
- CONFIG_LIST_TOK("Major64", FSID_MAJOR_64),
- CONFIG_LIST_TOK("Two64", FSID_TWO_UINT64),
- CONFIG_LIST_TOK("uuid", FSID_TWO_UINT64),
- CONFIG_LIST_TOK("Two32", FSID_TWO_UINT32),
- CONFIG_LIST_TOK("Dev", FSID_DEVICE),
- CONFIG_LIST_TOK("Device", FSID_DEVICE),
- CONFIG_LIST_EOL
- config_item = export_params
- CONF_ITEM_NOOP("name"),
- CONF_ITEM_ENUM("fsid_type", -1, fsid_types; vfs_fsal_export, fsid_type);
- CONFIG_EOL
- config_block = export_param_block
- dbus_interface_name = org.ganesha.nfsd.config.fsal.vfs-export%d
- name = FSAL
- params = export_params
- config_item = pt_params
- CONF_ITEM_BOOL("link_support", true, fsal_staticfsinfo_t, link_support);
- CONF_ITEM_BOOL("symlink_support", true, fsal_staticfsinfo_t, symlink_support);
- CONF_ITEM_BOOL("cansettime", true, fsal_staticfsinfo_t, cansettime);
- CONF_ITEM_UI64("maxread", 512, FSAL_MAXIOSIZE, FSAL_MAXIOSIZE, fsal_staticfsinfo_t, maxread);
- CONF_ITEM_UI64("maxwrite", 512, FSAL_MAXIOSIZE, FSAL_MAXIOSIZE, fsal_staticfsinfo_t, maxwrite);
- CONF_ITEM_MODE("umask", 0, 0777, 0, fsal_staticfsinfo_t, umask);
- CONF_ITEM_BOOL("auth_xdev_export", false, fsal_staticfsinfo_t, auth_exportpath_xdev);
- CONF_ITEM_MODE("xattr_access_rights", 0, 0777, 0400, fsal_staticfsinfo_t, xattr_access_rights);
- CONFIG_EOL
- config_block = pt_param
- dbus_interface_name = org.ganesha.nfsd.config.fsal.pt
- name = PT
- params = pt_params
- config_item = export_params
- CONF_ITEM_NOOP("name"),
- CONF_ITEM_I64("pt_export_id", INT64_MIN, INT64_MAX, 1, pt_fsal_export, pt_export_id);
- CONFIG_EOL
- config_block = export_param
- dbus_interface_name = org.ganesha.nfsd.config.fsal.pt-export%d
- name = FSAL
- params = export_params
- config_item = sub_fsal_params
- CONF_ITEM_STR("name", 1, 10, NULL, subfsal_args, name);
- CONFIG_EOL
- config_item = export_params
- CONF_ITEM_NOOP("name"),
- CONF_RELAX_BLOCK("FSAL", sub_fsal_params, noop_conf_init, subfsal_commit; nullfsal_args, subfsal);
- CONFIG_EOL
- config_block = export_param
- dbus_interface_name = org.ganesha.nfsd.config.fsal.nullfs-export%d
- name = FSAL
- params = export_params
- config_item = zfs_params
- CONF_ITEM_BOOL("link_support", true, zfs_fsal_module, fs_info.link_support);
- CONF_ITEM_BOOL("symlink_support", true, zfs_fsal_module, fs_info.symlink_support);
- CONF_ITEM_BOOL("cansettime", true, zfs_fsal_module, fs_info.cansettime);
- CONF_ITEM_UI32("maxread", 512, FSAL_MAXIOSIZE, FSAL_MAXIOSIZE, zfs_fsal_module, fs_info.maxread);
- CONF_ITEM_UI32("maxwrite", 512, FSAL_MAXIOSIZE, FSAL_MAXIOSIZE, zfs_fsal_module, fs_info.maxwrite);
- CONF_ITEM_MODE("umask", 0, 0777, 0, zfs_fsal_module, fs_info.umask);
- CONF_ITEM_BOOL("auth_xdev_export", false, zfs_fsal_module, fs_info.auth_exportpath_xdev);
- CONF_ITEM_MODE("xattr_access_rights", 0, 0777, 0400, zfs_fsal_module, fs_info.xattr_access_rights);
- CONFIG_EOL
- config_block = zfs_param
- dbus_interface_name = org.ganesha.nfsd.config.fsal.zfs
- name = ZFS
- params = zfs_params
- config_item = export_params
- CONF_ITEM_NOOP("name"),
- CONF_MAND_STR("zpool", 1, MAXNAMLEN, "tank", zfs_fsal_export, zpool);
- CONFIG_EOL
- config_block = export_param
- dbus_interface_name = org.ganesha.nfsd.config.fsal.zfs-export
- name = FSAL
- params = export_params
- config_item_list = sec_types
- CONFIG_LIST_TOK("krb5", RPCSEC_GSS_SVC_NONE),
- CONFIG_LIST_TOK("krb5i", RPCSEC_GSS_SVC_INTEGRITY),
- CONFIG_LIST_TOK("krb5p", RPCSEC_GSS_SVC_PRIVACY),
- CONFIG_LIST_EOL
- config_item = proxy_remote_params
- CONF_ITEM_UI32("Retry_SleepTime", 0, 60, 10, pxy_client_params, retry_sleeptime);
- CONF_MAND_IPV4_ADDR("Srv_Addr", "127.0.0.1", pxy_client_params, srv_addr);
- CONF_ITEM_UI32("NFS_Service", 0, UINT32_MAX, 100003, pxy_client_params, srv_prognum);
- CONF_ITEM_UI32("NFS_SendSize", 512, FSAL_MAXIOSIZE, 32768, pxy_client_params, srv_sendsize);
- CONF_ITEM_UI32("NFS_RecvSize", 512, FSAL_MAXIOSIZE, 32768, pxy_client_params, srv_recvsize);
- CONF_ITEM_INET_PORT("NFS_Port", 0, UINT16_MAX, 2049, pxy_client_params, srv_port);
- CONF_ITEM_BOOL("Use_Privileged_Client_Port", false, pxy_client_params, use_privileged_client_port);
- CONF_ITEM_UI32("RPC_Client_Timeout", 1, 60*4, 60, pxy_client_params, srv_timeout);
- CONF_ITEM_STR("Remote_PrincipalName", 0, MAXNAMLEN, NULL, pxy_client_params, remote_principal);
- CONF_ITEM_STR("KeytabPath", 0, MAXPATHLEN, "/etc/krb5.keytab" pxy_client_params, keytab);
- CONF_ITEM_UI32("Credential_LifeTime", 0, 86400*2, 86400, pxy_client_params, cred_lifetime);
- CONF_ITEM_ENUM("Sec_Type", RPCSEC_GSS_SVC_NONE, sec_types, pxy_client_params, sec_type);
- CONF_ITEM_BOOL("Active_krb5", false, pxy_client_params, active_krb5);
- CONF_ITEM_BOOL("Enable_Handle_Mapping", false, pxy_client_params, enable_handle_mapping);
- CONF_ITEM_STR("HandleMap_DB_Dir", 0, MAXPATHLEN, "/var/ganesha/handlemap"; pxy_client_params, hdlmap.databases_directory);
- CONF_ITEM_STR("HandleMap_Tmp_Dir", 0, MAXPATHLEN, "/var/ganesha/tmp"; pxy_client_params, hdlmap.temp_directory);
- CONF_ITEM_UI32("HandleMap_DB_Count", 1, 16, 8, pxy_client_params, hdlmap.database_count);
- CONF_ITEM_UI32("HandleMap_HashTable_Size", 1, 127, 103, pxy_client_params, hdlmap.hashtable_size);
- CONFIG_EOL
- config_item = proxy_params
- CONF_ITEM_BOOL("link_support", true, pxy_fsal_module, fsinfo.link_support);
- CONF_ITEM_BOOL("symlink_support", true, pxy_fsal_module, fsinfo.symlink_support);
- CONF_ITEM_BOOL("cansettime", true, pxy_fsal_module, fsinfo.cansettime);
- CONF_ITEM_UI64("maxread", 512, FSAL_MAXIOSIZE, FSAL_MAXIOSIZE, pxy_fsal_module, fsinfo.maxread);
- CONF_ITEM_UI64("maxwrite", 512, FSAL_MAXIOSIZE, FSAL_MAXIOSIZE, pxy_fsal_module, fsinfo.maxwrite);
- CONF_ITEM_MODE("umask", 0, 0777, 0, pxy_fsal_module, fsinfo.umask);
- CONF_ITEM_BOOL("auth_xdev_export", false, pxy_fsal_module, fsinfo.auth_exportpath_xdev);
- CONF_ITEM_MODE("xattr_access_rights", 0, 0777, 0400, pxy_fsal_module, fsinfo.xattr_access_rights);
- CONF_ITEM_BLOCK("Remote_Server", proxy_remote_params, noop_conf_init, remote_commit; pxy_fsal_module, special);
- CONFIG_EOL
- config_block = proxy_param
- dbus_interface_name = org.ganesha.nfsd.config.fsal.proxy
- name = PROXY
- params = proxy_params
- config_item = _9p_params
- CONF_ITEM_UI16("_9P_TCP_Port", 1, UINT16_MAX, _9P_TCP_PORT, _9p_param, _9p_tcp_port);
- CONF_ITEM_UI16("_9P_RDMA_Port", 1, UINT16_MAX, _9P_RDMA_PORT, _9p_param, _9p_rdma_port);
- CONF_ITEM_UI32("_9P_TCP_Msize", 1024, UINT32_MAX, _9P_TCP_MSIZE, _9p_param, _9p_tcp_msize);
- CONF_ITEM_UI32("_9P_RDMA_Msize", 1024, UINT32_MAX, _9P_RDMA_MSIZE, _9p_param, _9p_rdma_msize);
- CONF_ITEM_UI16("_9P_RDMA_Backlog", 1, UINT16_MAX, _9P_RDMA_BACKLOG, _9p_param, _9p_rdma_backlog);
- CONF_ITEM_UI16("_9P_RDMA_Inpool_size", 1, UINT16_MAX, _9P_RDMA_INPOOL_SIZE, _9p_param, _9p_rdma_inpool_size);
- CONF_ITEM_UI16("_9P_RDMA_Outpool_Size", 1, UINT16_MAX, _9P_RDMA_OUTPOOL_SIZE; _9p_param, _9p_rdma_outpool_size);
- CONFIG_EOL
- config_block = _9p_param_blk
- dbus_interface_name = org.ganesha.nfsd.config.9p
- name = _9P
- params = _9p_params
- config_item = fsal_params
- CONF_ITEM_STR("Name", 1, 10, NULL, fsal_args, name), /* cheater union */
- CONFIG_EOL
- config_item = pds_items
- CONF_ITEM_UI16("Number", 0, UINT16_MAX, 0, fsal_pnfs_ds, id_servers);
- CONF_RELAX_BLOCK("FSAL", fsal_params, fsal_init, fsal_commit; fsal_pnfs_ds, fsal);
- CONFIG_EOL
- config_block = pds_block
- dbus_interface_name = org.ganesha.nfsd.config.ds.%d
- name = DS
- params = pds_items
- config_item = ip_name_params
- CONF_ITEM_UI32("Index_Size", 1, 51, PRIME_IP_NAME, ip_name_cache, hash_param.index_size);
- CONF_ITEM_UI32("Expiration_Time", 1, 60*60*24, IP_NAME_EXPIRATION, ip_name_cache, expiration_time);
- CONFIG_EOL
- config_block = nfs_ip_name
- dbus_interface_name = org.ganesha.nfsd.config.ip_name
- name = NFS_IP_Name
- params = ip_name_params
- config_item_list = protocols
- CONFIG_LIST_TOK("3", CORE_OPTION_NFSV3),
- CONFIG_LIST_TOK("nfs3", CORE_OPTION_NFSV3),
- CONFIG_LIST_TOK("4", CORE_OPTION_NFSV4),
- CONFIG_LIST_TOK("nfs4", CORE_OPTION_NFSV4),
- CONFIG_LIST_TOK("9p", CORE_OPTION_9P),
- CONFIG_LIST_EOL
- config_item = core_params
- CONF_ITEM_UI16("NFS_Port", 0, UINT16_MAX, NFS_PORT, nfs_core_param, port[P_NFS]);
- CONF_ITEM_UI16("MNT_Port", 0, UINT16_MAX, 0, nfs_core_param, port[P_MNT]);
- CONF_ITEM_UI16("NLM_Port", 0, UINT16_MAX, 0, nfs_core_param, port[P_NLM]);
- CONF_ITEM_UI16("Rquota_Port", 0, UINT16_MAX, RQUOTA_PORT, nfs_core_param, port[P_RQUOTA]);
- CONF_ITEM_IPV4_ADDR("Bind_Addr", "0.0.0.0", nfs_core_param, bind_addr);
- CONF_ITEM_UI32("NFS_Program", 1, INT32_MAX, NFS_PROGRAM, nfs_core_param, program[P_NFS]);
- CONF_ITEM_UI32("MNT_Program", 1, INT32_MAX, MOUNTPROG, nfs_core_param, program[P_MNT]);
- CONF_ITEM_UI32("NLM_Program", 1, INT32_MAX, NLMPROG, nfs_core_param, program[P_NLM]);
- CONF_ITEM_UI32("Rquota_Program", 1, INT32_MAX, RQUOTAPROG, nfs_core_param, program[P_RQUOTA]);
- CONF_ITEM_UI32("Nb_Worker", 1, 1024*128, NB_WORKER_THREAD_DEFAULT, nfs_core_param, nb_worker);
- CONF_ITEM_BOOL("Drop_IO_Errors", false, nfs_core_param, drop_io_errors);
- CONF_ITEM_BOOL("Drop_Inval_Errors", false, nfs_core_param, drop_inval_errors);
- CONF_ITEM_BOOL("Drop_Delay_Errors", false, nfs_core_param, drop_delay_errors);
- CONF_ITEM_UI32("Dispatch_Max_Reqs", 1, 10000, 5000, nfs_core_param, dispatch_max_reqs);
- CONF_ITEM_UI32("Dispatch_Max_Reqs_Xprt", 1, 2048, 512, nfs_core_param, dispatch_max_reqs_xprt);
- CONF_ITEM_BOOL("DRC_Disabled", false, nfs_core_param, drc.disabled);
- CONF_ITEM_UI32("DRC_TCP_Npart", 1, 20, DRC_TCP_NPART, nfs_core_param, drc.tcp.npart);
- CONF_ITEM_UI32("DRC_TCP_Size", 1, 32767, DRC_TCP_SIZE, nfs_core_param, drc.tcp.size);
- CONF_ITEM_UI32("DRC_TCP_Cachesz", 1, 255, DRC_TCP_CACHESZ, nfs_core_param, drc.tcp.cachesz);
- CONF_ITEM_UI32("DRC_TCP_Hiwat", 1, 256, DRC_TCP_HIWAT, nfs_core_param, drc.tcp.hiwat);
- CONF_ITEM_UI32("DRC_TCP_Recycle_Npart", 1, 20, DRC_TCP_RECYCLE_NPART, nfs_core_param, drc.tcp.recycle_npart);
- CONF_ITEM_UI32("DRC_TCP_Recycle_Expire_S", 0, 60*60, 600, nfs_core_param, drc.tcp.recycle_expire_s);
- CONF_ITEM_BOOL("DRC_TCP_Checksum", DRC_TCP_CHECKSUM, nfs_core_param, drc.tcp.checksum);
- CONF_ITEM_UI32("DRC_UDP_Npart", 1, 100, DRC_UDP_NPART, nfs_core_param, drc.udp.npart);
- CONF_ITEM_UI32("DRC_UDP_Size", 512, 32768, DRC_UDP_SIZE, nfs_core_param, drc.udp.size);
- CONF_ITEM_UI32("DRC_UDP_Cachesz", 1, 2047, DRC_UDP_CACHESZ, nfs_core_param, drc.udp.cachesz);
- CONF_ITEM_UI32("DRC_UDP_Hiwat", 1, 32768, DRC_UDP_HIWAT, nfs_core_param, drc.udp.hiwat);
- CONF_ITEM_BOOL("DRC_UDP_Checksum", DRC_UDP_CHECKSUM, nfs_core_param, drc.udp.checksum);
- CONF_ITEM_UI32("RPC_Debug_Flags", 0, UINT32_MAX, TIRPC_DEBUG_FLAGS, nfs_core_param, rpc.debug_flags);
- CONF_ITEM_UI32("RPC_Max_Connections", 1, 10000, 1024, nfs_core_param, rpc.max_connections);
- CONF_ITEM_UI32("RPC_Idle_Timeout_S", 0, 60*60, 300, nfs_core_param, rpc.idle_timeout_s);
- CONF_ITEM_UI32("MaxRPCSendBufferSize", 1, 1048576*9, NFS_DEFAULT_SEND_BUFFER_SIZE; nfs_core_param, rpc.max_send_buffer_size);
- CONF_ITEM_UI32("MaxRPCRecvBufferSize", 1, 1048576*9, NFS_DEFAULT_RECV_BUFFER_SIZE; nfs_core_param, rpc.max_recv_buffer_size);
- CONF_ITEM_UI32("RPC_Ioq_ThrdMax", 1, 1024*128, 200, nfs_core_param, rpc.ioq_thrd_max);
- CONF_ITEM_I64("Decoder_Fridge_Expiration_Delay", 0, 7200, 600, nfs_core_param, decoder_fridge_expiration_delay);
- CONF_ITEM_I64("Decoder_Fridge_Block_Timeout", 0, 7200, 600, nfs_core_param, decoder_fridge_block_timeout);
- CONF_ITEM_LIST("NFS_Protocols", CORE_OPTION_ALL_VERS, protocols, nfs_core_param, core_options);
- CONF_ITEM_LIST("Protocols", CORE_OPTION_ALL_VERS, protocols, nfs_core_param, core_options);
- CONF_ITEM_BOOL("NSM_Use_Caller_Name", false, nfs_core_param, nsm_use_caller_name);
- CONF_ITEM_BOOL("Clustered", true, nfs_core_param, clustered);
- CONF_ITEM_BOOL("Enable_NLM", true, nfs_core_param, enable_NLM);
- CONF_ITEM_BOOL("Enable_RQUOTA", true, nfs_core_param, enable_RQUOTA);
- CONF_ITEM_BOOL("Enable_Fast_Stats", false, nfs_core_param, enable_FASTSTATS);
- CONF_ITEM_I64("Manage_Gids_Expiration", 0, 7*24*60*60, 30*60, nfs_core_param, manage_gids_expiration);
- CONF_ITEM_PATH("Plugins_Dir", 1, MAXPATHLEN, FSAL_MODULE_LOC, nfs_core_param, ganesha_modules_loc);
- CONF_ITEM_UI32("heartbeat_freq", 0, 5000, 1000, nfs_core_param, heartbeat_freq);
- CONFIG_EOL
- config_block = nfs_core
- dbus_interface_name = org.ganesha.nfsd.config.core
- name = NFS_Core_Param
- params = core_params
- config_item = krb5_params
- CONF_ITEM_STR("PrincipalName", 1, MAXPATHLEN, DEFAULT_NFS_PRINCIPAL; nfs_krb5_param, svc.principal);
- CONF_ITEM_PATH("KeytabPath", 1, MAXPATHLEN, DEFAULT_NFS_KEYTAB; nfs_krb5_param, keytab);
- CONF_ITEM_PATH("CCacheDir", 1, MAXPATHLEN, DEFAULT_NFS_CCACHE_DIR; nfs_krb5_param, ccache_dir);
- CONF_ITEM_BOOL("Active_krb5", true, nfs_krb5_param, active_krb5);
- CONFIG_EOL
- config_block = krb5_param
- dbus_interface_name = org.ganesha.nfsd.config.krb5
- name = NFS_KRB5
- params = krb5_params
- config_item = version4_params
- CONF_ITEM_BOOL("Graceless", false, nfs_version4_parameter, graceless);
- CONF_ITEM_UI32("Lease_Lifetime", 0, 120, LEASE_LIFETIME_DEFAULT, nfs_version4_parameter, lease_lifetime);
- CONF_ITEM_UI32("Grace_Period", 0, 180, GRACE_PERIOD_DEFAULT, nfs_version4_parameter, grace_period);
- CONF_ITEM_STR("DomainName", 1, MAXPATHLEN, DOMAINNAME_DEFAULT, nfs_version4_parameter, domainname);
- CONF_ITEM_PATH("IdmapConf", 1, MAXPATHLEN, "/etc/idmapd.conf", nfs_version4_parameter, idmapconf);
- CONF_ITEM_BOOL("UseGetpwnam", GETPWNAMDEF, nfs_version4_parameter, use_getpwnam);
- CONF_ITEM_BOOL("Allow_Numeric_Owners", true, nfs_version4_parameter, allow_numeric_owners);
- CONF_ITEM_BOOL("Delegations", false, nfs_version4_parameter, allow_delegations);
- CONF_ITEM_UI32("Deleg_Recall_Retry_Delay", 0, 10, DELEG_RECALL_RETRY_DELAY_DEFAULT; nfs_version4_parameter, deleg_recall_retry_delay);
- CONF_ITEM_BOOL("PNFS_MDS", true, nfs_version4_parameter, pnfs_mds);
- CONF_ITEM_BOOL("PNFS_DS", true, nfs_version4_parameter, pnfs_ds);
- CONFIG_EOL
- config_block = version4_param
- dbus_interface_name = org.ganesha.nfsd.config.nfsv4
- name = NFSv4
- params = version4_params
- config_item_list = access_types
- CONFIG_LIST_TOK("NONE", 0),
- CONFIG_LIST_TOK("RW", (EXPORT_OPTION_RW_ACCESS | EXPORT_OPTION_MD_ACCESS));
- CONFIG_LIST_TOK("RO", (EXPORT_OPTION_READ_ACCESS | EXPORT_OPTION_MD_READ_ACCESS));
- CONFIG_LIST_TOK("MDONLY", EXPORT_OPTION_MD_ACCESS),
- CONFIG_LIST_TOK("MDONLY_RO", EXPORT_OPTION_MD_READ_ACCESS),
- CONFIG_LIST_EOL
- config_item_list = nfs_protocols
- CONFIG_LIST_TOK("3", EXPORT_OPTION_NFSV3),
- CONFIG_LIST_TOK("4", EXPORT_OPTION_NFSV4),
- CONFIG_LIST_TOK("NFS3", EXPORT_OPTION_NFSV3),
- CONFIG_LIST_TOK("NFS4", EXPORT_OPTION_NFSV4),
- CONFIG_LIST_TOK("V3", EXPORT_OPTION_NFSV3),
- CONFIG_LIST_TOK("V4", EXPORT_OPTION_NFSV4),
- CONFIG_LIST_TOK("NFSV3", EXPORT_OPTION_NFSV3),
- CONFIG_LIST_TOK("NFSV4", EXPORT_OPTION_NFSV4),
- CONFIG_LIST_TOK("9P", EXPORT_OPTION_9P),
- CONFIG_LIST_EOL
- config_item_list = transports
- CONFIG_LIST_TOK("UDP", EXPORT_OPTION_UDP),
- CONFIG_LIST_TOK("TCP", EXPORT_OPTION_TCP),
- CONFIG_LIST_EOL
- config_item_list = sec_types
- CONFIG_LIST_TOK("none", EXPORT_OPTION_AUTH_NONE),
- CONFIG_LIST_TOK("sys", EXPORT_OPTION_AUTH_UNIX),
- CONFIG_LIST_TOK("krb5", EXPORT_OPTION_RPCSEC_GSS_NONE),
- CONFIG_LIST_TOK("krb5i", EXPORT_OPTION_RPCSEC_GSS_INTG),
- CONFIG_LIST_TOK("krb5p", EXPORT_OPTION_RPCSEC_GSS_PRIV),
- CONFIG_LIST_EOL
- config_item_list = squash_types
- CONFIG_LIST_TOK("Root", EXPORT_OPTION_ROOT_SQUASH),
- CONFIG_LIST_TOK("Root_Squash", EXPORT_OPTION_ROOT_SQUASH),
- CONFIG_LIST_TOK("RootSquash", EXPORT_OPTION_ROOT_SQUASH),
- CONFIG_LIST_TOK("All", EXPORT_OPTION_ALL_ANONYMOUS),
- CONFIG_LIST_TOK("All_Squash", EXPORT_OPTION_ALL_ANONYMOUS),
- CONFIG_LIST_TOK("AllSquash", EXPORT_OPTION_ALL_ANONYMOUS),
- CONFIG_LIST_TOK("All_Anonymous", EXPORT_OPTION_ALL_ANONYMOUS),
- CONFIG_LIST_TOK("AllAnonymous", EXPORT_OPTION_ALL_ANONYMOUS),
- CONFIG_LIST_TOK("No_Root_Squash", EXPORT_OPTION_ROOT),
- CONFIG_LIST_TOK("None", EXPORT_OPTION_ROOT),
- CONFIG_LIST_TOK("NoIdSquash", EXPORT_OPTION_ROOT),
- CONFIG_LIST_EOL
- config_item_list = delegations
- CONFIG_LIST_TOK("NONE", EXPORT_OPTION_NO_DELEGATIONS),
- CONFIG_LIST_TOK("Read", EXPORT_OPTION_READ_DELEG),
- CONFIG_LIST_TOK("Write", EXPORT_OPTION_WRITE_DELEG),
- CONFIG_LIST_TOK("Readwrite", EXPORT_OPTION_DELEGATIONS),
- CONFIG_LIST_TOK("R", EXPORT_OPTION_READ_DELEG),
- CONFIG_LIST_TOK("W", EXPORT_OPTION_WRITE_DELEG),
- CONFIG_LIST_TOK("RW", EXPORT_OPTION_DELEGATIONS),
- CONFIG_LIST_EOL
- config_item_list = deleg_types
- CONFIG_LIST_TOK("NONE", FSAL_OPTION_NO_DELEGATIONS),
- CONFIG_LIST_TOK("Read", FSAL_OPTION_FILE_READ_DELEG),
- CONFIG_LIST_TOK("Write", FSAL_OPTION_FILE_WRITE_DELEG),
- CONFIG_LIST_TOK("Readwrite", FSAL_OPTION_FILE_DELEGATIONS),
- CONFIG_LIST_TOK("R", FSAL_OPTION_FILE_READ_DELEG),
- CONFIG_LIST_TOK("W", FSAL_OPTION_FILE_WRITE_DELEG),
- CONFIG_LIST_TOK("RW", FSAL_OPTION_FILE_DELEGATIONS),
- CONFIG_LIST_EOL
- CONF_EXPORT_PERMS(_struct_, _perms_) \ /* Note: Access_Type defaults to None on purpose */ \
- CONF_ITEM_ENUM_BITS_SET("Access_Type", \ EXPORT_OPTION_NO_ACCESS; EXPORT_OPTION_ACCESS_TYPE; access_types, _struct_, _perms_.options, _perms_.set);
- CONF_ITEM_LIST_BITS_SET("Protocols", \ EXPORT_OPTION_PROTOCOLS, EXPORT_OPTION_PROTOCOLS; nfs_protocols, _struct_, _perms_.options, _perms_.set);
- CONF_ITEM_LIST_BITS_SET("Transports", \ EXPORT_OPTION_TRANSPORTS, EXPORT_OPTION_TRANSPORTS; transports, _struct_, _perms_.options, _perms_.set);
- CONF_ITEM_ANONID("Anonymous_uid", \ ANON_UID, _struct_, _perms_.anonymous_uid; EXPORT_OPTION_ANON_UID_SET, _perms_.set);
- CONF_ITEM_ANONID("Anonymous_gid", \ ANON_GID, _struct_, _perms_.anonymous_gid; EXPORT_OPTION_ANON_GID_SET, _perms_.set);
- CONF_ITEM_LIST_BITS_SET("SecType", \ EXPORT_OPTION_AUTH_NONE | EXPORT_OPTION_AUTH_UNIX; EXPORT_OPTION_AUTH_TYPES; sec_types, _struct_, _perms_.options, _perms_.set);
- CONF_ITEM_BOOLBIT_SET("PrivilegedPort", \ false, EXPORT_OPTION_PRIVILEGED_PORT; _struct_, _perms_.options, _perms_.set);
- CONF_ITEM_BOOLBIT_SET("Manage_Gids", \ false, EXPORT_OPTION_MANAGE_GIDS; _struct_, _perms_.options, _perms_.set);
- CONF_ITEM_LIST_BITS_SET("Squash", \ EXPORT_OPTION_ROOT_SQUASH, EXPORT_OPTION_SQUASH_TYPES; squash_types, _struct_, _perms_.options, _perms_.set);
- CONF_ITEM_BOOLBIT_SET("NFS_Commit", \ false, EXPORT_OPTION_COMMIT; _struct_, _perms_.options, _perms_.set);
- CONF_ITEM_ENUM_BITS_SET("Delegations", \ EXPORT_OPTION_NO_DELEGATIONS, EXPORT_OPTION_DELEGATIONS; delegations, _struct_, _perms_.options, _perms_.set);
- CONF_ITEM_BOOLBIT_SET("Disable_ACL", \ false, EXPORT_OPTION_DISABLE_ACL; _struct_, _perms_.options, _perms_.set) /** * @brief Table of client sub-block parameters * * NOTE: node discovery is ordered by this table! * "Access" is last because we must have all other params processed * before we walk the list of accessing clients! */
- config_item = client_params
- CONF_EXPORT_PERMS(exportlist_client_entry__, client_perms),
- CONF_ITEM_STR("Clients", 1, MAXPATHLEN, NULL, exportlist_client_entry__, client.raw_client_str);
- CONFIG_EOL
- config_item = export_defaults_params
- CONF_EXPORT_PERMS(global_export_perms, conf),
- CONFIG_EOL
- config_item = fsal_params
- CONF_ITEM_STR("Name", 1, 10, NULL, fsal_args, name), /* cheater union */
- CONFIG_EOL
- config_item = export_params
- CONF_MAND_UI16("Export_id", 0, UINT16_MAX, 1, gsh_export, export_id);
- CONF_MAND_PATH("Path", 1, MAXPATHLEN, NULL, gsh_export, fullpath), /* must chomp '/' */
- CONF_UNIQ_PATH("Pseudo", 1, MAXPATHLEN, NULL, gsh_export, pseudopath);
- CONF_ITEM_UI64("MaxRead", 512, FSAL_MAXIOSIZE, FSAL_MAXIOSIZE, gsh_export, MaxRead);
- CONF_ITEM_UI64("MaxWrite", 512, FSAL_MAXIOSIZE, FSAL_MAXIOSIZE, gsh_export, MaxWrite);
- CONF_ITEM_UI64("PrefRead", 512, FSAL_MAXIOSIZE, FSAL_MAXIOSIZE, gsh_export, PrefRead);
- CONF_ITEM_UI64("PrefWrite", 512, FSAL_MAXIOSIZE, FSAL_MAXIOSIZE, gsh_export, PrefWrite);
- CONF_ITEM_UI64("PrefReaddir", 512, FSAL_MAXIOSIZE, 16384, gsh_export, PrefReaddir);
- CONF_ITEM_FSID_SET("Filesystem_id", 666, 666, gsh_export, filesystem_id, /* major.minor */
- CONF_ITEM_STR("Tag", 1, MAXPATHLEN, NULL, gsh_export, FS_tag);
- CONF_ITEM_UI64("MaxOffsetWrite", 512, UINT64_MAX, UINT64_MAX, gsh_export, MaxOffsetWrite);
- CONF_ITEM_UI64("MaxOffsetRead", 512, UINT64_MAX, UINT64_MAX, gsh_export, MaxOffsetRead);
- CONF_ITEM_BOOLBIT_SET("UseCookieVerifier", true, EXPORT_OPTION_USE_COOKIE_VERIFIER; gsh_export, options, options_set);
- CONF_ITEM_BOOLBIT_SET("DisableReaddirPlus", false, EXPORT_OPTION_NO_READDIR_PLUS; gsh_export, options, options_set);
- CONF_ITEM_BOOLBIT_SET("Trust_Readdir_Negative_Cache", false, EXPORT_OPTION_TRUST_READIR_NEGATIVE_CACHE; gsh_export, options, options_set);
- CONF_EXPORT_PERMS(gsh_export, export_perms),
- CONF_ITEM_BLOCK("Client", client_params, client_init, client_commit; gsh_export, clients);
- CONF_ITEM_I32_SET("Attr_Expiration_Time", -1, INT32_MAX, 60, gsh_export, expire_time_attr; EXPORT_OPTION_EXPIRE_SET, options_set);
- CONF_RELAX_BLOCK("FSAL", fsal_params, fsal_init, fsal_commit; gsh_export, fsal_export);
- CONFIG_EOL
- config_block = export_param
- dbus_interface_name = org.ganesha.nfsd.config.%d
- name = EXPORT
- params = export_params
- config_block = add_export_param
- dbus_interface_name = org.ganesha.nfsd.config.%d
- name = EXPORT
- params = export_params
- config_block = export_defaults_param
- dbus_interface_name = org.ganesha.nfsd.config.defaults
- name = EXPORT_DEFAULTS
- params = export_defaults_params
- config_item = cache_inode_params
- CONF_ITEM_UI32("NParts", 1, 20, 7, cache_inode_parameter, nparts);
- CONF_ITEM_I32("Attr_Expiration_Time", -1, INT32_MAX, 60, cache_inode_parameter, expire_time_attr);
- CONF_ITEM_BOOL("Use_Getattr_Directory_Invalidation", false, cache_inode_parameter, getattr_dir_invalidation);
- CONF_ITEM_UI32("Entries_HWMark", 1, UINT32_MAX, 100000, cache_inode_parameter, entries_hwmark);
- CONF_ITEM_UI32("LRU_Run_Interval", 1, 24 * 3600, 90, cache_inode_parameter, lru_run_interval);
- CONF_ITEM_BOOL("Cache_FDs", true, cache_inode_parameter, use_fd_cache);
- CONF_ITEM_UI32("FD_Limit_Percent", 0, 100, 99, cache_inode_parameter, fd_limit_percent);
- CONF_ITEM_UI32("FD_HWMark_Percent", 0, 100, 90, cache_inode_parameter, fd_hwmark_percent);
- CONF_ITEM_UI32("FD_LWMark_Percent", 0, 100, 50, cache_inode_parameter, fd_lwmark_percent);
- CONF_ITEM_UI32("Reaper_Work", 1, 2000, 1000, cache_inode_parameter, reaper_work);
- CONF_ITEM_UI32("Biggest_Window", 1, 100, 40, cache_inode_parameter, biggest_window);
- CONF_ITEM_UI32("Required_Progress", 1, 50, 5, cache_inode_parameter, required_progress);
- CONF_ITEM_UI32("Futility_Count", 1, 50, 8, cache_inode_parameter, futility_count);
- CONF_ITEM_BOOL("Retry_Readdir", false, cache_inode_parameter, retry_readdir);
- CONFIG_EOL
- config_block = cache_inode_param_blk
- dbus_interface_name = org.ganesha.nfsd.config.cache_inode
- name = CacheInode
- params = cache_inode_params
- config_item_list = timeformats
- CONFIG_LIST_TOK("ganesha", TD_GANESHA),
- CONFIG_LIST_TOK("true", TD_GANESHA),
- CONFIG_LIST_TOK("local", TD_LOCAL),
- CONFIG_LIST_TOK("8601", TD_8601),
- CONFIG_LIST_TOK("ISO-8601", TD_8601),
- CONFIG_LIST_TOK("ISO 8601", TD_8601),
- CONFIG_LIST_TOK("ISO", TD_8601),
- CONFIG_LIST_TOK("syslog", TD_SYSLOG),
- CONFIG_LIST_TOK("syslog_usec", TD_SYSLOG_USEC),
- CONFIG_LIST_TOK("false", TD_NONE),
- CONFIG_LIST_TOK("none", TD_NONE),
- CONFIG_LIST_TOK("user_defined", TD_USER),
- CONFIG_LIST_EOL
- config_item = format_options
- CONF_ITEM_ENUM("date_format", TD_GANESHA, timeformats, logfields, datefmt);
- CONF_ITEM_ENUM("time_format", TD_GANESHA, timeformats, logfields, timefmt);
- CONF_ITEM_STR("user_date_format", 1, MAX_TD_FMT_LEN, NULL, logfields, user_date_fmt);
- CONF_ITEM_STR("user_time_format", 1, MAX_TD_FMT_LEN, NULL, logfields, user_time_fmt);
- CONF_ITEM_BOOL("EPOCH", true, logfields, disp_epoch);
- CONF_ITEM_BOOL("CLIENTIP", false, logfields, disp_clientip);
- CONF_ITEM_BOOL("HOSTNAME", true, logfields, disp_host);
- CONF_ITEM_BOOL("PROGNAME", true, logfields, disp_prog);
- CONF_ITEM_BOOL("PID", true, logfields, disp_pid);
- CONF_ITEM_BOOL("THREAD_NAME", true, logfields, disp_threadname);
- CONF_ITEM_BOOL("FILE_NAME", true, logfields, disp_filename);
- CONF_ITEM_BOOL("LINE_NUM", true, logfields, disp_linenum);
- CONF_ITEM_BOOL("FUNCTION_NAME", true, logfields, disp_funct);
- CONF_ITEM_BOOL("COMPONENT", true, logfields, disp_comp);
- CONF_ITEM_BOOL("LEVEL", true, logfields, disp_level);
- CONFIG_EOL
- config_item_list = log_levels
- CONFIG_LIST_TOK("NULL", NIV_NULL),
- CONFIG_LIST_TOK("FATAL", NIV_FATAL),
- CONFIG_LIST_TOK("MAJ", NIV_MAJ),
- CONFIG_LIST_TOK("CRIT", NIV_CRIT),
- CONFIG_LIST_TOK("WARN", NIV_WARN),
- CONFIG_LIST_TOK("EVENT", NIV_EVENT),
- CONFIG_LIST_TOK("INFO", NIV_INFO),
- CONFIG_LIST_TOK("DEBUG", NIV_DEBUG),
- CONFIG_LIST_TOK("MID_DEBUG", NIV_MID_DEBUG),
- CONFIG_LIST_TOK("M_DBG", NIV_MID_DEBUG),
- CONFIG_LIST_TOK("FULL_DEBUG", NIV_FULL_DEBUG),
- CONFIG_LIST_TOK("F_DBG", NIV_FULL_DEBUG),
- CONFIG_LIST_EOL
- config_item = component_levels
- CONF_INDEX_TOKEN("ALL", NB_LOG_LEVEL, log_levels, COMPONENT_ALL, int);
- CONF_INDEX_TOKEN("LOG", NB_LOG_LEVEL, log_levels, COMPONENT_LOG, int);
- CONF_INDEX_TOKEN("LOG_EMERG", NB_LOG_LEVEL, log_levels, COMPONENT_LOG_EMERG, int);
- CONF_INDEX_TOKEN("MEMLEAKS", NB_LOG_LEVEL, log_levels, COMPONENT_MEMLEAKS, int);
- CONF_INDEX_TOKEN("LEAKS", NB_LOG_LEVEL, log_levels, COMPONENT_MEMLEAKS, int);
- CONF_INDEX_TOKEN("FSAL", NB_LOG_LEVEL, log_levels, COMPONENT_FSAL, int);
- CONF_INDEX_TOKEN("NFSPROTO", NB_LOG_LEVEL, log_levels, COMPONENT_NFSPROTO, int);
- CONF_INDEX_TOKEN("NFS3", NB_LOG_LEVEL, log_levels, COMPONENT_NFSPROTO, int);
- CONF_INDEX_TOKEN("NFS_V4", NB_LOG_LEVEL, log_levels, COMPONENT_NFS_V4, int);
- CONF_INDEX_TOKEN("NFS4", NB_LOG_LEVEL, log_levels, COMPONENT_NFS_V4, int);
- CONF_INDEX_TOKEN("EXPORT", NB_LOG_LEVEL, log_levels, COMPONENT_EXPORT, int);
- CONF_INDEX_TOKEN("FILEHANDLE", NB_LOG_LEVEL, log_levels, COMPONENT_FILEHANDLE, int);
- CONF_INDEX_TOKEN("FH", NB_LOG_LEVEL, log_levels, COMPONENT_FILEHANDLE, int);
- CONF_INDEX_TOKEN("DISPATCH", NB_LOG_LEVEL, log_levels, COMPONENT_DISPATCH, int);
- CONF_INDEX_TOKEN("DISP", NB_LOG_LEVEL, log_levels, COMPONENT_DISPATCH, int);
- CONF_INDEX_TOKEN("CACHE_INODE", NB_LOG_LEVEL, log_levels, COMPONENT_CACHE_INODE, int);
- CONF_INDEX_TOKEN("INODE", NB_LOG_LEVEL, log_levels, COMPONENT_CACHE_INODE, int);
- CONF_INDEX_TOKEN("CACHE_INODE_LRU", NB_LOG_LEVEL, log_levels, COMPONENT_CACHE_INODE_LRU, int);
- CONF_INDEX_TOKEN("INODE_LRU", NB_LOG_LEVEL, log_levels, COMPONENT_CACHE_INODE_LRU, int);
- CONF_INDEX_TOKEN("HASHTABLE", NB_LOG_LEVEL, log_levels, COMPONENT_HASHTABLE, int);
- CONF_INDEX_TOKEN("HT", NB_LOG_LEVEL, log_levels, COMPONENT_HASHTABLE, int);
- CONF_INDEX_TOKEN("HASHTABLE_CACHE", NB_LOG_LEVEL, log_levels, COMPONENT_HASHTABLE_CACHE, int);
- CONF_INDEX_TOKEN("HT_CACHE", NB_LOG_LEVEL, log_levels, COMPONENT_HASHTABLE_CACHE, int);
- CONF_INDEX_TOKEN("DUPREQ", NB_LOG_LEVEL, log_levels, COMPONENT_DUPREQ, int);
- CONF_INDEX_TOKEN("INIT", NB_LOG_LEVEL, log_levels, COMPONENT_INIT, int);
- CONF_INDEX_TOKEN("NFS_STARTUP", NB_LOG_LEVEL, log_levels, COMPONENT_INIT, int);
- CONF_INDEX_TOKEN("MAIN", NB_LOG_LEVEL, log_levels, COMPONENT_MAIN, int);
- CONF_INDEX_TOKEN("IDMAPPER", NB_LOG_LEVEL, log_levels, COMPONENT_IDMAPPER, int);
- CONF_INDEX_TOKEN("NFS_READDIR", NB_LOG_LEVEL, log_levels, COMPONENT_NFS_READDIR, int);
- CONF_INDEX_TOKEN("NFS_V4_LOCK", NB_LOG_LEVEL, log_levels, COMPONENT_NFS_V4_LOCK, int);
- CONF_INDEX_TOKEN("NFS4_LOCK", NB_LOG_LEVEL, log_levels, COMPONENT_NFS_V4_LOCK, int);
- CONFIG, int);
- CONF_INDEX_TOKEN("CLIENTID", NB_LOG_LEVEL, log_levels, COMPONENT_CLIENTID, int);
- CONF_INDEX_TOKEN("SESSIONS", NB_LOG_LEVEL, log_levels, COMPONENT_SESSIONS, int);
- CONF_INDEX_TOKEN("PNFS", NB_LOG_LEVEL, log_levels, COMPONENT_PNFS, int);
- CONF_INDEX_TOKEN("RW_LOCK", NB_LOG_LEVEL, log_levels, COMPONENT_RW_LOCK, int);
- CONF_INDEX_TOKEN("NLM", NB_LOG_LEVEL, log_levels, COMPONENT_NLM, int);
- CONF_INDEX_TOKEN("RPC", NB_LOG_LEVEL, log_levels, COMPONENT_RPC, int);
- CONF_INDEX_TOKEN("NFS_CB", NB_LOG_LEVEL, log_levels, COMPONENT_NFS_CB, int);
- CONF_INDEX_TOKEN("THREAD", NB_LOG_LEVEL, log_levels, COMPONENT_THREAD, int);
- CONF_INDEX_TOKEN("NFS_V4_ACL", NB_LOG_LEVEL, log_levels, COMPONENT_NFS_V4_ACL, int);
- CONF_INDEX_TOKEN("NFS4_ACL", NB_LOG_LEVEL, log_levels, COMPONENT_NFS_V4_ACL, int);
- CONF_INDEX_TOKEN("STATE", NB_LOG_LEVEL, log_levels, COMPONENT_STATE, int);
- CONF_INDEX_TOKEN("_9P", NB_LOG_LEVEL, log_levels, COMPONENT_9P, int);
- CONF_INDEX_TOKEN("_9P_DISPATCH", NB_LOG_LEVEL, log_levels, COMPONENT_9P_DISPATCH, int);
- CONF_INDEX_TOKEN("_9P_DISP", NB_LOG_LEVEL, log_levels, COMPONENT_9P_DISPATCH, int);
- CONF_INDEX_TOKEN("FSAL_UP", NB_LOG_LEVEL, log_levels, COMPONENT_FSAL_UP, int);
- CONF_INDEX_TOKEN("DBUS", NB_LOG_LEVEL, log_levels, COMPONENT_DBUS, int);
- CONF_INDEX_TOKEN("COMPONENT_NFS_MSK", NB_LOG_LEVEL, log_levels, COMPONENT_NFS_MSK, int);
- CONFIG_EOL
- config_item_list = header_options
- CONFIG_LIST_TOK("none", LH_NONE),
- CONFIG_LIST_TOK("component", LH_COMPONENT),
- CONFIG_LIST_TOK("all", LH_ALL),
- CONFIG_LIST_EOL
- config_item_list = enable_options
- CONFIG_LIST_TOK("idle", FAC_IDLE),
- CONFIG_LIST_TOK("active", FAC_ACTIVE),
- CONFIG_LIST_TOK("default", FAC_DEFAULT),
- CONFIG_LIST_EOL
- config_item = facility_params
- CONF_ITEM_STR("name", 1, 20, NULL, facility_config, facility_name);
- CONF_MAND_STR("destination", 1, MAXPATHLEN, NULL, facility_config, dest);
- CONF_ITEM_TOKEN("max_level", NB_LOG_LEVEL, log_levels, facility_config, max_level);
- CONF_ITEM_TOKEN("headers", NB_LH_TYPES, header_options, facility_config, headers);
- CONF_ITEM_TOKEN("enable", FAC_IDLE, enable_options, facility_config, state);
- CONFIG_EOL
- config_item = logging_params
- CONF_ITEM_TOKEN("Default_log_level", NB_LOG_LEVEL, log_levels, logger_config, default_level);
- CONF_ITEM_BLOCK("Facility", facility_params, facility_init, facility_commit; logger_config, facility_list);
- CONF_ITEM_BLOCK("Format", format_options, format_init, format_commit; logger_config, logfields);
- CONF_ITEM_BLOCK("Components", component_levels, component_init, component_commit; logger_config, comp_log_level);
- CONFIG_EOL
- /*/ test
- config_block = logging_param
- dbus_interface_name = org.ganesha.nfsd.config.log
- name = LOG
- params = logging_params
- config_item = describing
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement