Wrong return code of Stdio.mv and Stdio.file_size on Azure blob virtual storage

4 views
Skip to first unread message

David Estopa

unread,
Dec 28, 2020, 11:05:41 AM12/28/20
to pi...@roxen.com

Hi, pike team.

  anyone has experienced problems with mv() and file_size() functions on Azure blob storages?

  We have several pike versions using the Azure blob storage and mv returns 0 (fail) instead of 1.

  The file is moved correctly but pike returns 0 when mv function is executed and Stdio.file_size also returns -1.

   Also, the errno() readed after each one, returns a code 2 (OS error code   2:  No such file or director).

   We have reproduced the issue on pike 8.0 (releases 1077 and 702)

   Afterall, the file exists and is moved to the destination one. If we test the same mv operation on SO directly, also works well.

   Any idea how to solve this issue or some code to execute it and to debug in more deep what's happening?

Kind regards

David Estopà Mesa
Jefe de Desarrollo | Development Manager

des...@lleida.net
(+34) 625 434 084

Parc Científic i Tecnològic Agroalimentari de Lleida
Edifici H1 2a planta B | 25003 Lleida (Spain)
Tel. 902 999 272 | (+34) 973 282 300
Fax (+34) 973 282 195
www.lleida.net

Política de privacidad




  

Reply all
Reply to author
Forward
0 new messages