Replicated filesystem using voting protocol