forked from vitalif/vitastor
Disable stdout/stderr buffering
parent
53832d184a
commit
6e72cf2732
23
lp/mon.js
23
lp/mon.js
|
@ -58,6 +58,29 @@ class Mon
|
||||||
recovery_queue_depth: 4,
|
recovery_queue_depth: 4,
|
||||||
readonly: false,
|
readonly: false,
|
||||||
print_stats_interval: 3,
|
print_stats_interval: 3,
|
||||||
|
// blockstore - fixed in superblock
|
||||||
|
block_size,
|
||||||
|
disk_alignment,
|
||||||
|
journal_block_size,
|
||||||
|
meta_block_size,
|
||||||
|
bitmap_granularity,
|
||||||
|
journal_device,
|
||||||
|
journal_offset,
|
||||||
|
journal_size,
|
||||||
|
disable_journal_fsync,
|
||||||
|
data_device,
|
||||||
|
data_offset,
|
||||||
|
data_size,
|
||||||
|
disable_data_fsync,
|
||||||
|
meta_device,
|
||||||
|
meta_offset,
|
||||||
|
disable_meta_fsync,
|
||||||
|
disable_device_lock,
|
||||||
|
// blockstore - configurable
|
||||||
|
flusher_count,
|
||||||
|
inmemory_metadata,
|
||||||
|
inmemory_journal,
|
||||||
|
journal_sector_buffer_count,
|
||||||
}, */
|
}, */
|
||||||
global: {},
|
global: {},
|
||||||
/* node_placement: {
|
/* node_placement: {
|
||||||
|
|
|
@ -18,6 +18,8 @@ static void handle_sigint(int sig)
|
||||||
|
|
||||||
int main(int narg, char *args[])
|
int main(int narg, char *args[])
|
||||||
{
|
{
|
||||||
|
setvbuf(stdout, NULL, _IONBF, 0);
|
||||||
|
setvbuf(stderr, NULL, _IONBF, 0);
|
||||||
if (sizeof(osd_any_op_t) > OSD_PACKET_SIZE ||
|
if (sizeof(osd_any_op_t) > OSD_PACKET_SIZE ||
|
||||||
sizeof(osd_any_reply_t) > OSD_PACKET_SIZE)
|
sizeof(osd_any_reply_t) > OSD_PACKET_SIZE)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue