2009-02-07 10:43:57     ftpd and character special file, need advice

Document created by Aaronwu Employee on Aug 11, 2013
Version 1Show Document
  • View in full screen mode

2009-02-07 10:43:57     ftpd and character special file, need advice

Sylvain Bourré (FRANCE)

Message: 69034   

 

Hi !

 

I'm new to uClinux and BF527, I guess my question is not specific to BF but I would appreciate any advice.

 

I wrote a char dev driver that returns megabytes of data when being read from. My BF acts as a server and clients (only one at a time) must retrieve data coming from my driver through FTP.

 

I cannot afford to copy data from /dev/mydevice to a regular file in SDRAM (I don't need persistent storage and don't have so much ram available) so I modified user/ftpd/ftpd.c in order to manage this specific case. It works well but I don't like this solution, I would prefer to use a stock ftpd.

 

Is there a way to make my device appear as a regular file so S_ISREG() in ftpd is true ?

 

Any suggestion greatly appreciated !

 

TIA, Best regards,

 

-Sylvain.

QuoteReplyEditDelete

 

 

2009-02-07 12:14:28     Re: ftpd and character special file, need advice

Mike Frysinger (UNITED STATES)

Message: 69036   

 

no, i dont think so

Attachments

    Outcomes