Code of lamvak's pull request to lizardfs/lizardfs