Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Dec 2022 11:45:53 +0300
From:      Artem Kuchin <artemkuchin76@gmail.com>
To:        Warner Losh <imp@bsdimp.com>
Cc:        FreeBSD FS <freebsd-fs@freebsd.org>
Subject:   Re: Everchanging bytes at the end of mirror disks
Message-ID:  <f8ecd698-bc03-43f1-9596-8b3ec1432a5e@gmail.com>
In-Reply-To: <CANCZdfrO4M49i_WdidJUujQoJH1pAooTfxFtVjrNLU77EseH7Q@mail.gmail.com>
References:  <85c5a64c-915e-d790-e617-c94f3fb7cd9a@gmail.com> <CANCZdfrO4M49i_WdidJUujQoJH1pAooTfxFtVjrNLU77EseH7Q@mail.gmail.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
11.12.2022 11:22, Warner Losh пишет:
>
>
> On Sat, Dec 10, 2022, 11:52 PM Artem Kuchin <artemkuchin76@gmail.com> 
> wrote:
>
>     Hello!
>
>     I am writing a small utility for myseld and part of it is comparing
>     gmirror disks. After running some tests i realized that some bytes at
>     the very end of disks are constantly changing.
>
>
> The last sector has metadata about the mirror and about the mirror 
> element.  It's this latter data that differs.
>

Thank you for reply. Then there are several question

1) Last SECTOR is not always 512KB or is it? Do i need to get block size 
from diskinfo and subtract its size from disk size?

2) Why its content  is changing so often? On every write? How often? The 
only place to look for description is the gmirror sources?

Artem

[-- Attachment #2 --]
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">11.12.2022 11:22, Warner Losh пишет:<br>
    </div>
    <blockquote type="cite"
cite="mid:CANCZdfrO4M49i_WdidJUujQoJH1pAooTfxFtVjrNLU77EseH7Q@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="auto">
        <div><br>
          <br>
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr">On Sat, Dec 10, 2022,
              11:52 PM Artem Kuchin &lt;<a
                href="mailto:artemkuchin76@gmail.com"
                moz-do-not-send="true" class="moz-txt-link-freetext">artemkuchin76@gmail.com</a>&gt;
              wrote:<br>
            </div>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello!<br>
              <br>
              I am writing a small utility for myseld and part of it is
              comparing <br>
              gmirror disks. After running some tests i realized that
              some bytes at <br>
              the very end of disks are constantly changing.<br>
            </blockquote>
          </div>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">The last sector has metadata about the mirror
          and about the mirror element.  It's this latter data that
          differs.</div>
        <div dir="auto"><br>
        </div>
      </div>
    </blockquote>
    <p><br>
    </p>
    <p>Thank you for reply. Then there are several question</p>
    <p>1) Last SECTOR is not always 512KB or is it? Do i need to get
      block size from diskinfo and subtract its size from disk size?</p>
    <p>2) Why its content  is changing so often? On every write? How
      often? The only place to look for description is the gmirror
      sources?<br>
    </p>
    <p>Artem<br>
    </p>
  </body>
</html>
help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f8ecd698-bc03-43f1-9596-8b3ec1432a5e>