Re: [PATCH v2] aplay: Introduce and use xwrite helper

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 10 Apr 2017 09:04:33 +0200,
Daniel Baluta wrote:
> 
> Write can return less then requested bytes, but we treat this as
> an error thus ending up with confusing error messages.
> 
> Fix this by introducing xwrite helper, which makes sure all bytes
> are written or an error is returned.
> 
> With this patch an usecase where disk is filled by recording will
> print:
> $ /mnt/msc/audio.wav: No space left on device
> 
> instead of random messages like:
> 
> $/mnt/msc/audio.wav: No such file or directory
> 
> Signed-off-by: Daniel Baluta <daniel.baluta@xxxxxxx>
> ---
> Changes since v1:
> 	* return the correct number of bytes

Applied, thanks.


Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux