mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* unable to upload new file to tftp server
@ 2018-09-10 10:08 Toews, Dietrich
  2018-09-10 12:45 ` Sascha Hauer
  0 siblings, 1 reply; 3+ messages in thread
From: Toews, Dietrich @ 2018-09-10 10:08 UTC (permalink / raw)
  To: barebox

Hi,

when I try to upload a new file from barebox to an tftp server I always get the error: "Function not implemented".

When the file is existing on the server, there is no problem.

Prerequisites:
- mounted directory to an tftp-server
- test: cp local.file /mnt/tftp-dir/remote.file

Progress:
- first step of cp is to get the "stat" of the file - the answer of the tftp-server is ENOENT.
- then cp tries to open the file, but it does only add O_TRUNC when the file exists
- tftp_do_open returns ENOSYS when O_TRUNC is not set

So you can't upload a non-existing file, but in most cases one needs exactly that.

Dietrich

________________________________

Confidentiality note:
The information in this email and any attachment may contain confidential and proprietary information of Heidelberger Druckmaschinen AG and/or its affiliates and may be privileged or otherwise protected from disclosure. If you are not the intended recipient, you are hereby notified that any review, reliance or distribution by others or forwarding without express permission is strictly prohibited and may cause liability. In case you have received this message due to an error in transmission, we kindly ask you to notify the sender immediately and to delete this email and any attachment from your system.
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: unable to upload new file to tftp server
  2018-09-10 10:08 unable to upload new file to tftp server Toews, Dietrich
@ 2018-09-10 12:45 ` Sascha Hauer
  2018-09-10 13:31   ` Toews, Dietrich
  0 siblings, 1 reply; 3+ messages in thread
From: Sascha Hauer @ 2018-09-10 12:45 UTC (permalink / raw)
  To: Toews, Dietrich, g; +Cc: barebox

Hi Dietrich,

On Mon, Sep 10, 2018 at 10:08:52AM +0000, Toews, Dietrich wrote:
> Hi,
> 
> when I try to upload a new file from barebox to an tftp server I always get the error: "Function not implemented".
> 
> When the file is existing on the server, there is no problem.
> 
> Prerequisites:
> - mounted directory to an tftp-server
> - test: cp local.file /mnt/tftp-dir/remote.file
> 
> Progress:
> - first step of cp is to get the "stat" of the file - the answer of the tftp-server is ENOENT.
> - then cp tries to open the file, but it does only add O_TRUNC when the file exists
> - tftp_do_open returns ENOSYS when O_TRUNC is not set
> 
> So you can't upload a non-existing file, but in most cases one needs exactly that.

Could you retry with current master? There have been some changes
recently.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: unable to upload new file to tftp server
  2018-09-10 12:45 ` Sascha Hauer
@ 2018-09-10 13:31   ` Toews, Dietrich
  0 siblings, 0 replies; 3+ messages in thread
From: Toews, Dietrich @ 2018-09-10 13:31 UTC (permalink / raw)
  To: Sascha Hauer, g; +Cc: barebox

Hi, Sascha,

I did not see the changes in master.
So I made the same patch and it works.

Thank you!

Dietrich

-----Original Message-----
From: Sascha Hauer [mailto:s.hauer@pengutronix.de]
Sent: Monday, September 10, 2018 2:45 PM
To: Toews, Dietrich RD-P6.3.4; g@pengutronix.de
Cc: barebox@lists.infradead.org
Subject: Re: unable to upload new file to tftp server

Hi Dietrich,

On Mon, Sep 10, 2018 at 10:08:52AM +0000, Toews, Dietrich wrote:
> Hi,
>
> when I try to upload a new file from barebox to an tftp server I always get the error: "Function not implemented".
>
> When the file is existing on the server, there is no problem.
>
> Prerequisites:
> - mounted directory to an tftp-server
> - test: cp local.file /mnt/tftp-dir/remote.file
>
> Progress:
> - first step of cp is to get the "stat" of the file - the answer of the tftp-server is ENOENT.
> - then cp tries to open the file, but it does only add O_TRUNC when the file exists
> - tftp_do_open returns ENOSYS when O_TRUNC is not set
>
> So you can't upload a non-existing file, but in most cases one needs exactly that.

Could you retry with current master? There have been some changes
recently.

Sascha

--
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

________________________________

Confidentiality note:
The information in this email and any attachment may contain confidential and proprietary information of Heidelberger Druckmaschinen AG and/or its affiliates and may be privileged or otherwise protected from disclosure. If you are not the intended recipient, you are hereby notified that any review, reliance or distribution by others or forwarding without express permission is strictly prohibited and may cause liability. In case you have received this message due to an error in transmission, we kindly ask you to notify the sender immediately and to delete this email and any attachment from your system.

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-09-10 13:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-10 10:08 unable to upload new file to tftp server Toews, Dietrich
2018-09-10 12:45 ` Sascha Hauer
2018-09-10 13:31   ` Toews, Dietrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox