int bdrv_get_backing_file_depth(BlockDriverState *bs)

{

    if (!bs->drv) {

        return 0;

    }



    if (!bs->backing_hd) {

        return 0;

    }



    return 1 + bdrv_get_backing_file_depth(bs->backing_hd);

}

int bdrv_get_backing_file_depth(BlockDriverState *bs)

{

    if (!bs->drv) {

        return 0;

    }



    if (!bs->backing_hd) {

        return 0;

    }



    return 1 + bdrv_get_backing_file_depth(bs->backing_hd);

}

int FUNC_0(BlockDriverState *VAR_0)

{

    if (!VAR_0->drv) {

        return 0;

    }



    if (!VAR_0->backing_hd) {

        return 0;

    }



    return 1 + FUNC_0(VAR_0->backing_hd);

}

int FUNC_0(BlockDriverState *VAR_0)
{ if (!VAR_0->drv) { return 0; } if (!VAR_0->backing_hd) { return 0; } return 1 + FUNC_0(VAR_0->backing_hd); }