From nobody Sun Dec 11 08:45:53 2022 X-Original-To: freebsd-fs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NVJJ46jxqz4jlh6 for ; Sun, 11 Dec 2022 08:45:56 +0000 (UTC) (envelope-from artemkuchin76@gmail.com) Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NVJJ42hkpz3vLL for ; Sun, 11 Dec 2022 08:45:56 +0000 (UTC) (envelope-from artemkuchin76@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lf1-x133.google.com with SMTP id p36so13672206lfa.12 for ; Sun, 11 Dec 2022 00:45:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=dHaI7HkvI1TjmuLmEYHftwpHsbQTb9WB8HPobGtvZSE=; b=GGPExDhRsXmp/k1+BfiQi613hRoFBxSuFJWYOKGHmyTG+nU8Cjw65MJtYFo73oeH0G EZ/4teerzUoqVdsgL5nl7mMuymCOG6U4nmZ3uiy+iLfI4sEUeewp8C8UjXSFm87HDS7G 4SNokn7+2sIdrgAeO+P2XmB0B/gJiiVndQS7WRry9+IoheQSVA6lcpoA2jOfWR7mtwq4 88GjlyWM2uWBhIYZk2+NToxSE3nTikMQTeweWXN8H1fYi0j9UNgrTgFWObPOfBRhns5o u9yDKk3XGOku879cXhLAQGt+zs8ivOXs/QQW2f8r47sCeYDSDFw8ugB0yM7LBu3PJPUG YQPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=dHaI7HkvI1TjmuLmEYHftwpHsbQTb9WB8HPobGtvZSE=; b=fYFJE37/HqmKOlnqA81C5Ro+XA1iys/uPr33trcpz+WQis340t3j59lpTANSDH2HEy 5rRBRvyZv25IlHZ3CmJjEdQCwE1ZdzZP11SqBkNWj2i5C8Ygiu/PCmz7e2Y+Bpim9jJQ rrHoRCEt20ALNbUW3TQTafom2nnvSyWrlJSRjCTJC1bPiPbY41ctdxiW+e9mvWvrPfNQ x/Qt2sTgOHo5EehHkJEUo2ofSg2HloHDZqE6PTnYdbcTndFSVUTRY4i+tlYSwTneH79/ VI/F2fv7GQ7shQ/s3BKCoegEjXODHXbLtfg2YHqnld9rM/wx2xvc2nJBykd1McEo3CFj Dqkw== X-Gm-Message-State: ANoB5pldsFcaaF8MczwLnTOZGDHUfeF60pjv3fku5ghp4hxk1gIbFsQ3 U1O4vg1/uz/tDRDAQDa0qKZ8bNnIe9Q= X-Google-Smtp-Source: AA0mqf7+h9KMbLUsaO+6tUv3Z2ho40Rh+cyVXl4mrtGMYl85VReSPMPv0nWmdE/dlN8wEE4mmQZo7g== X-Received: by 2002:a05:6512:b8e:b0:4b5:a5c7:3286 with SMTP id b14-20020a0565120b8e00b004b5a5c73286mr4940428lfv.9.1670748354733; Sun, 11 Dec 2022 00:45:54 -0800 (PST) Received: from [192.168.0.12] ([185.22.24.200]) by smtp.googlemail.com with ESMTPSA id s4-20020a056512314400b004b5872a7003sm1095587lfi.98.2022.12.11.00.45.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 11 Dec 2022 00:45:54 -0800 (PST) Content-Type: multipart/alternative; boundary="------------d7HYquhKCAiWk0mEi15vtdVA" Message-ID: Date: Sun, 11 Dec 2022 11:45:53 +0300 List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: Everchanging bytes at the end of mirror disks Content-Language: ru, en-US To: Warner Losh Cc: FreeBSD FS References: <85c5a64c-915e-d790-e617-c94f3fb7cd9a@gmail.com> From: Artem Kuchin In-Reply-To: X-Rspamd-Queue-Id: 4NVJJ42hkpz3vLL X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N This is a multi-part message in MIME format. --------------d7HYquhKCAiWk0mEi15vtdVA Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 11.12.2022 11:22, Warner Losh пишет: > > > On Sat, Dec 10, 2022, 11:52 PM Artem Kuchin > 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 --------------d7HYquhKCAiWk0mEi15vtdVA Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
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

--------------d7HYquhKCAiWk0mEi15vtdVA--