[sheepdog] [PATCH 5/7 v4 UPDATE] sheep: rename journal_file.c as journal.c

Liu Yuan namei.unix at gmail.com
Fri Apr 5 11:36:09 CEST 2013


On 04/05/2013 04:51 PM, Hitoshi Mitake wrote:
> do_recover should return here if a condition st.st_size == 0 is true.
> If st.st_size == 0, the below mmap() fails with Invalid argument.

if st.st_size == 0, then error handling of mmap() will return by

        if (map == MAP_FAILED) {
                sd_eprintf("%m");
                return -1;
        }

no?

Thanks,
Yuan



More information about the sheepdog mailing list