Hi Dm,
Is there any different in the way sbbs handles LFN with addfiles under Windows and Linux?
I have files on a FAT32 filesystem mounted on my linux box and ls handles the LFN/SFN conversion nicely.
bbs@bbs:/sbbs/data/dirs/bbs/bbc/games/arcade$ ls -l MoonLand*
-rwxr-xr-x 1 bbs bbs 2753 May 10 00:28 MoonLander-2.zip
-rwxr-xr-x 1 bbs bbs 2736 May 10 00:28 MoonLander.zip bbs@bbs:/sbbs/data/dirs/bbs/bbc/games/arcade$ ls -l MoonLa~1.zip
-rwxr-xr-x 1 bbs bbs 2753 May 10 00:28 MoonLa~1.zip bbs@bbs:/sbbs/data/dirs/bbs/bbc/games/arcade$ ls -l MoonLa~2.zip
-rwxr-xr-x 1 bbs bbs 2736 May 10 00:28 MoonLa~2.zip bbs@bbs:/sbbs/data/dirs/bbs/bbc/games/arcade$
However when I try to import using addfiles, I get something rather different:
bbs@bbs:/sbbs/data/dirs/bbs/bbc/games/arcade$ addfiles bbcgarc *.zip
Loading configuration files from /sbbs/ctrl
AcornAbu.ser 35734 AcrossTheRavine.zip
AlienLan.der 4118 Apollo.zip
AprilFoo.lIs 5119 AsteroidChase.zip
Asteroid.Lan 2601 Balloonist.zip
BeebugOn.eLi 1568 BuzzyBee.zip
Catch .zip 2624 ChockyEgg.zip
Commando.Jum 3442 CosmicLander.zip
Desperat.eDe 3119 DevilsCauseway.zip
Dodgem .zip 4027 Eagle.zip
ForestOf.Doo 8284 FunGames.zip
Galactic.Com 8294 GriddWorz.zip
HelterSk.elt 26303 HelterSkelterTape.zip
LanderPC.N.z 6180 Lander.zip
Landfall.zip 8439 LoonyLander.zip
LunaLand.er. 2217 LunarBug.zip
LunarLan.der 2525 LunarLanderInput.zip
LunarLan.der 2413 LunarLander.zip
MarsLand.er- 3176 MarsLander.zip
MarsMine.r.z 4175 MoonLander-2.zip
MoonLand.er. 2736 NightmareParkJohnHenson.zip
Nightmar.ePa 9777 OctoniumMoon.zip
RatAttac.k.z 2724 RipCordJ.zip
RocketMa.n.z 5701 SkyDiver.zip
SpaceCav.ern 7919 SpaceCommanderTestColour.zip
SpaceLan.din 2344 SpaceStation.zip
Starforc.eLa 5781 StellarRescue.zip
SuperLan.der 3791 Terras5.zip
TerrorTe.rra 4424 Vulcan.zip
WallabyW.res 22447 WhackAMole.zip
I would expect it to be creating short names.
Maybe you have a conversion for Linux users so they can addfiles and have them converted automatically.
If that's the case, any way to turn that off so I can see how it would work by letting the OS do the filename conversion? If that makes sense?
Yes. Synchronet doesn't actually store LFN's, so it requires an OS API to translate between and short and long filenames. *nix OSes don't have such an API.
addfiles would have to call an OS function to get the short filenames. I know of no such API/function for Linux.
Re: Addfiles difference between linux & windows
By: Digital Man to Nelgin on Mon May 11 2020 10:18:07
Yes. Synchronet doesn't actually store LFN's, so it requires an OS API to translate between and short and long filenames. *nix OSes don't have such an API.
I was hopeful that the kernel would take care of that on the linux side too, since I can write a long filename and then read it by the short filename using regular unix commands.
addfiles would have to call an OS function to get the short filenames. I know of no such API/function for Linux.
Would anything out of https://github.com/torvalds/linux/tree/master/fs/fat be useful? There's stuff about long and short filename conversion in there.
Not sure if there's anything I can provide to help?
Sysop: | Chris Crash |
---|---|
Location: | Huntington Beach, CA. |
Users: | 611 |
Nodes: | 8 (0 / 8) |
Uptime: | 60:31:10 |
Calls: | 10,849 |
Files: | 5 |
Messages: | 504,466 |