[sheepdog] [PATCH UPDATE] sheep: read journal head first in journal_recover

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Thu Jul 5 18:59:04 CEST 2012


At Thu,  5 Jul 2012 15:21:53 +0800,
levin li wrote:
> 
> From: levin li <xingke.lwp at taobao.com>
> 
> Sheep doesn't read the journal head in journal_recover which
> always leaves all the fields of journal head uninitialized,
> so the target_path is something random.
> 
> Also we use xpread/xpwrite to get rid of short read/write.
> 
> Signed-off-by: levin li <xingke.lwp at taobao.com>
> ---
>  sheep/journal.c |   20 +++++++++++++-------
>  1 files changed, 13 insertions(+), 7 deletions(-)

Applied, thanks!

Kazutaka



More information about the sheepdog mailing list