PDA

View Full Version : FTP-server enhancement


JohnDead666
2005-04-23, 04:12
i would like to work on am enhancement of the xbmc ftp server.

the following feature of the xbmc: an enhancement to the ftp server making possible up/download of any files, regardless or used characters or filename length.

i know that fatx has limitations regarding filename length and character set ( at least compared to reiser or ntfs)

since i've put a huge hd on my xbox i use it as both a general pupose media player ( with great help of xbmc which is actually also my dashboard ) and also backup space for my work, music and videos.

one thing that it frustrating is that i can't simply upload to it an entire tree of file without first going through all of them making sure no file has filename longer then 32 characters. if so then uploading an entire tree simply stall at some point.

my simple idea here would simply be to have the ftp server to handle filename tranlation. for each folder, a simple (hidden) text file might have contain initial filename and also actual filename on the fatx partition.

a simple scheme, might be used to truncate long filename or containing invalid characters:

all lowercase,
all blanks replaced by underscore,
all accented characters replace by its non-accented,

for longer filename:
first 15 characters, 2 underscores, last 15 characters

anyone has worked on something similar? or maybe it is already in there somehow by now?
anyone agree it might be usefull ?

Livin
2005-04-23, 10:00
i think the fix was to truncate the filename... search the change log... changelog link (http://cvs.sourceforge.net/viewcvs.py/xbmc/xbmc/changelog.txt)

i don't find much of a need for this... i keep my filenames under 32 characters anyway. i'm not writing a book just to name a file ;)

jmarshall
2005-04-23, 12:11
there's a function in util.cpp for this purpose. all that would be required is to pick up the filename within xbfilezilla and call the appropriate function to fix it up. not sure how easy that would be.

i don't think that a text file for the "real" name is really needed imo.

cheers,
jonathan

Gamester17
2005-04-25, 09:18
i would like to work on am enhancement of the xbmc ftp serverwhile you're at it i like to give you these links to a few feature requests for this and more related to it (with ideas and suggestions):

- xbmc's ftp-server and long file-names, should xbmc automatially chop them? (link) (http://www.xboxmediaplayer.de/cgi-bin/forums/ikonboard.pl?act=st&f=4&t=3005)
you should checkout the xbmpsync source code (link) (http://www.coolstf.com/xbmpsync/) as well when looking at util.cpp
(btw, truncate + removing/replacing invalid characters is enough, no need for all lowercase or underscores).
note! xbox support a total of 42 characters in each file-name (including the last dot at the extentions): quote from www.xboxmediacenter.com/info_faq.htm#23 (http://www.xboxmediacenter.com/info_faq.htm#23)
q: q: why does transfer fail when try send a file to my xbox using xbmc's build-in ftp server?
a: a: xbox hard drive file-system (fatx) has many limitations that other file-systems do not have:
check the filename, the xbox's file-system (fat-x) only supports file/folder-names up to 42
characters, and fat-x does not either support all acsii characters in file/folder names, here's
some unsupported characters (note! there are probebly many more than these, let us know):
< > = ? : ; " * + , / \ | ¤ &
tip: there is a software application called "
xboxify (http://www.xboxmediacenter.com/download_files.htm)" that will rename files/folders to above limits.
also a maximum of 255 in character-deept is supported down the file-structure architecture.
plus maximum number of 4096 files/folders in a single subfolder is supported, and in the root of
each partition the maximum number of files/folders is 256).
- update to latest version of filezilla (http://sourceforge.net/tracker/?group_id=87054&atid=581841&func=detail&aid=1009023) (so filezilla ftp remote admin will work again (http://www.xboxmediaplayer.de/cgi-bin/forums/ikonboard.pl?act=st;f=4;t=10358)) (link to => filezilla (http://sourceforge.net/projects/filezilla)).

- user-definable ftp-ports from gui (http://www.xboxmediaplayer.de/cgi-bin/forums/ikonboard.pl?act=st;f=4;t=6888).

- additional ftp 'site' commands for filezilla (xbmc ftp-server) (http://www.xboxmediaplayer.de/cgi-bin/forums/ikonboard.pl?act=st;f=4;t=7510).

- ftp boost mode (for qwix) (boost mode like avalaunch) (http://www.xboxmediaplayer.de/cgi-bin/forums/ikonboard.pl?act=st;f=4;t=10498).


ps! i suggest you add the top feature as an option with a enable/disable switch available under xbmc gui in settings (enabled by default?)

JohnDead666
2005-04-25, 17:29
i think the fix was to truncate the filename... search the change log... changelog link (http://cvs.sourceforge.net/viewcvs.py/xbmc/xbmc/changelog.txt)

i don't find much of a need for this... i keep my filenames under 32 characters anyway. i'm not writing a book just to name a file ;)
the sole reason of this enhancement is basically so i can transfert my entire ( self encoded from my own cd, and all idtag properly filled) music collection without having to mess around with filenames.

Gamester17
2005-05-11, 09:50
the sole reason of this enhancement is basically so i can transfert my entire ( self encoded from my own cd, and all idtag properly filled) music collection without having to mess around with filenames.but in order to do that you should trunk the file/folder-names correctly (according to the maximum capabilities of fatx) and not shorten them more than nesessary

WiSo
2005-05-13, 23:49
just my two cents. dvd2xbox includes a fatx check. maybe not with high-performance nor fitting your needs but could be easily adapted.
i put already this piece of code in the filezilla and it seems to work. you just need to edit the controlsocket.cpp and add the fatx check to command_stor and command_appe (only in dvd2xbox cvs for now)

wiso

Hullebulle
2005-05-14, 04:09
thnx for the info wiso. :)