Welcome! Log In Create A New Profile

Advanced

Re: Bug?

All files from this thread

File Name File Size   Posted by Date  
patch.short.write 3.9 KB open | download Igor Sysoev 09/25/2009 Read message
patch.short.write1 4.7 KB open | download Igor Sysoev 09/25/2009 Read message
September 25, 2009 01:44AM
On Thu, Sep 24, 2009 at 10:34:38PM +0200, Alejandro Mart??nez wrote:

> > pwrite() on file system should write all data at once (at least I see it
> > for the first time). What file system do you use ?
>
>
> Return Value
> value pwrite() was successful. The value returned is the number of
> bytes actually written. This number is less than or equal to nbyte.
> -1 pwrite() was not successful. The errno global variable is set to
> indicate the error.
>
> I don't see anywhere that the data should be written all at once. If it
> was like that, then why whould it return the bytes written?

The partial or short write/pwrite/writev()s are usual for sockets, pipes,
etc. However, they are not so usual for disk files and may be caused
by some limits: rlimits, qoutes, or free space. I think that retry
will not be successful, but will return errno explainig the cause.

> > What file system do you use ?
>
> from mount:
>
>
> /dev/sda6 on /d1 type ext3 (rw)

> i forgot to mention.
>
> im talking about BIG files.
>
> up to 1Gb.
>
> Files under 400Mg aprox work fine.
>
> On another server it works fine even with the big ones.

What does "ulimit -f" show on these servers ?


--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

Bug?

Alejandro Martínez September 24, 2009 03:34PM

Re: Bug?

Igor Sysoev September 24, 2009 03:44PM

Re: Bug?

Alejandro Martínez September 24, 2009 04:44PM

Re: Bug?

Alejandro Martínez September 24, 2009 05:04PM

Re: Bug?

Igor Sysoev September 25, 2009 01:44AM

Re: Bug? Attachments

Igor Sysoev September 25, 2009 02:16AM

Re: Bug? Attachments

Igor Sysoev September 25, 2009 04:14AM

Re: Bug?

Alejandro Martínez September 25, 2009 09:10AM

Re: Bug?

Maxim Dounin September 25, 2009 09:38AM

Re: Bug?

Alejandro Martínez September 25, 2009 10:06AM

Re: Bug?

Maxim Dounin September 25, 2009 10:24AM

Re: Bug?

Alejandro Martínez September 25, 2009 10:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 155
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready