| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:mime-version:in-reply-to:references:from:date | |
| :message-id:subject:to:content-type; q=dns; s=default; b=FQiv94S | |
| bTaxQfqBPg7rZqhqagH1Srs3lqKLW084WEsVAJPAKSv+TNT9TSv6EGmiJAc5jH8y | |
| EvqwybauMP8aaoL7K3krjgo81C0rxIDiExoKSM/NuHX173lWH3ifCbyw7X7SkMZq | |
| CcEeduH+y3qfMQBd5k44JcgBfoi+VpLmwiAY= | |
| DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:mime-version:in-reply-to:references:from:date | |
| :message-id:subject:to:content-type; s=default; bh=pHtnGSoa1277I | |
| kJ6YyLz59Q49kg=; b=J4eTAiphPbazvXZsLil6mwxo2eHPOP96M1A4KOThe8lxP | |
| 5w704j1MbZtHWGTtiOymG367Lf+YUTgujCYwMgI6MigNTKmOFESqUC6dLwpvqe8P | |
| 4eyOR+WckHhHuzbrrScvg0GvhiQNiXz//Kwha2RWUmWeckE8qfaja+0JTqY5HE= | |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Authentication-Results: | sourceware.org; auth=none |
| X-Virus-Found: | No |
| X-Spam-SWARE-Status: | No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy= |
| X-HELO: | mail-qt0-f181.google.com |
| X-Google-DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=4qO+IUbXpkOXbTJSXgwtYDE4AXzbCsE0LQhQz+vzt60=; b=b0HlQ5HpIOZzM4qwDkoDR78B+j2ZneYIf+cB9xeGmY8bh2qCSQQdyQcojqVfY6EGxN EXzDIZQh2Ki3mmiEbVzoWavrXvAkkcv2qfgmHAKPndj9Nlay7mKi3Ou9YzpYwmmb6x/y iudfeqqL2PVND+bDQCwl9MRJ8r5WcEE3MouhETTwmZ5p17vXt6MNzCfnFfDQ4a+p1hOr 5exSClLWLnfxktbi97tE//H5FpSQPw0WglUFa4CjdxDYQ+MK+l+l42m0Hz5JH5TMLqgg x/B3m2qtoB4tJolmIRUeC2cpYJtVs00KU2LeLHdHk5ttAdPhOZURmEym5mmpWQgtP4MZ s09Q== |
| X-Gm-Message-State: | AKGB3mLQTM3U41IcxHMV7TV35glKUeyN/NxAnKQaJfDu+24u2tAABfUU Oha06Jm4fHRs/x6DJcoAKWki5fUlvcKBuH6DJL8mmqYT |
| X-Google-Smtp-Source: | ACJfBosVdvpkQXVywhyxX3R/u8EhvFl1mlLnF/5BUvj2LDT9UwkXhvO7lUICRo+KTDdGk6zFpbc7gax//kNXIYo+N9Q= |
| X-Received: | by 10.200.63.208 with SMTP id v16mr6286512qtk.249.1513709139017; Tue, 19 Dec 2017 10:45:39 -0800 (PST) |
| MIME-Version: | 1.0 |
| In-Reply-To: | <20171219181914.GE19986@calimero.vinschen.de> |
| References: | <20171218131035 DOT GB11285 AT calimero DOT vinschen DOT de> <5a385ced DOT 195b9d0a DOT d434 DOT 5400 AT mx DOT google DOT com> <20171219091431 DOT GF11285 AT calimero DOT vinschen DOT de> <CAKyntiLyTBGcAx3iwhq7dX0wqiE3S685kwmhMg+U2A3huXVzUQ AT mail DOT gmail DOT com> <9f29d418-10af-1dc7-2636-89cae1eb16f4 AT redhat DOT com> <CAKyntiLJTjk+5Qs0jAjxAUPJTzfY4R57GRaQjZLwBBeuMM++0Q AT mail DOT gmail DOT com> <20171219181914 DOT GE19986 AT calimero DOT vinschen DOT de> |
| From: | Ivan Kozik <ivan AT ludios DOT org> |
| Date: | Tue, 19 Dec 2017 18:45:07 +0000 |
| Message-ID: | <CAKyntiLdwdaPewnyhNKC=yZJJ2Hc_BOrd9-j2HGmjLmiox3z1Q@mail.gmail.com> |
| Subject: | Re: Wrong file position after writing 65537 bytes to block device |
| To: | cygwin AT cygwin DOT com |
| X-IsSubscribed: | yes |
On Tue, Dec 19, 2017 at 6:19 PM, Corinna Vinschen <corinna-cygwin AT cygwin DOT com> wrote: > On Dec 19 16:35, Ivan Kozik wrote: >> From what I observe on Linux, it supports writing at any offset to the >> block device because it does a read-modify-write behind the scenes, >> with accompanying nasty overhead (e.g. writes going at 64MB/s instead >> of an "expected" 180MB/s). > > That's what Cygwin was trying to emulate as well. Debugging pointed out > that it only works for reading, not for writing, because the latter > neglected to fix up buffer pointers. Those are used in lseek to report > the Linux-like byte-exact file position. > > I pushed a patch and uploaded new developer snapshots to > https://cygwin.com/snapshts/ > > Please give them a test. Hi Corinna, It is writing correctly now, thank you for the fix! Ivan -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |