2009-02-07 10:43:57 ftpd and character special file, need advice
Sylvain Bourré (FRANCE)
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,
2009-02-07 12:14:28 Re: ftpd and character special file, need advice
Mike Frysinger (UNITED STATES)
no, i dont think so