delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/11/14/04:36:13

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Fri, 14 Nov 2008 10:38:38 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Re: 1.7 preallocate issue?
Message-ID: <20081114093838.GD19442@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <001f01c945db$0381c380$0a854a80$@com>
MIME-Version: 1.0
In-Reply-To: <001f01c945db$0381c380$0a854a80$@com>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Nov 13 14:58, Rob Bosch wrote:
> We still get these issues when preallocating large file on our SAN.  It only
> occurs when preallocating (posix_fallocate) files that are 20GB+ in size.
> I'll try to get a trace but this will be difficult to replicating I think.
> Is there any other information I can try to capture?

It shouldn't be hard to replicate if you modify the rsync statement to
rsync only one such file.  The strace would be interesting in the first
place.  You should get an error code from a function called
fhandler_disk_file::ftruncate.

A little detail.  The posix_fallocate function is in the core the same
function as the good old truncate/ftruncate functionality.  They are
calling the same underlying OS functions, with two exceptions:

- posix_fallocate never shrinks files
- posix_fallocate never creates sparse files.

So actually the posix_fallocate is even simpler than ftruncate and
consists of just two OS calls, the first to determine the current file
size and the second to set the requested file size if it's more than
the current file size.  That's all.

- Are you perhaps really out of space?
- Are quotas enabled on the target filesystem and you're hitting your
  quota?
- Is the fiber array a local FS or a remote FS?  NTFS/FAT32?  
  If you don't find any other reason, we would have to check if
  there are some OS or FS restrictions.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019