qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

qcow2 merge_cow() question


From: Vladimir Sementsov-Ogievskiy
Subject: qcow2 merge_cow() question
Date: Fri, 21 Aug 2020 15:32:00 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0

Hi!

I'm sorry, I feel I already asked about it, but can't now find the answer.

What are these ifs for?

          /* The data (middle) region must be immediately after the
           * start region */
          if (l2meta_cow_start(m) + m->cow_start.nb_bytes != offset) {
              continue;
          }
/* The end region must be immediately after the data (middle)
           * region */
          if (m->offset + m->cow_end.offset != offset + bytes) {
              continue;
          }

How is it possible that data doesn't immediately follow start cow region or
end cow region doesn't immediately follow data region?


--
Best regards,
Vladimir



reply via email to

[Prev in Thread] Current Thread [Next in Thread]