• Addfiles difference between linux & windows

    From Nelgin@nelgin@EOTLBBS.remove-1cs-this to DigitalMan on Mon May 11 10:48:17 2020
    From Newsgroup: alt.bbs.synchronet

    To: DigitalMan
    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?

    Thanks,
    Nigel

    ---
    þ Synchronet þ End Of The Line BBS - endofthelinebbs.com
    --- Synchronet 3.18a-Win32 NewsLink 1.113
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    --- Synchronet 3.18a-Linux NewsLink 1.113
  • From Digital Man@digital.man@vert.synchro.net.remove-1009-this to Nelgin on Mon May 11 17:18:07 2020
    From Newsgroup: alt.bbs.synchronet

    To: Nelgin
    Re: Addfiles difference between linux & windows
    By: Nelgin to DigitalMan on Mon May 11 2020 03:48 am

    Hi Dm,

    Is there any different in the way sbbs handles LFN with addfiles under Windows and Linux?

    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 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.

    addfiles would have to call an OS function to get the short filenames. I know of no such API/function for Linux.

    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?

    The OS (or file system driver) is determining what the actual short filename will be. I would need a programmatic method of querying what that short filename is.

    digital man

    Sling Blade quote #11:
    Doyle Hargraves (to Karl): What in the hell you doin' with that hammer?
    Norco, CA WX: 66.6øF, 70.0% humidity, 1 mph SE wind, 0.00 inches rain/24hrs
    --- Synchronet 3.18a-Win32 NewsLink 1.113
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    --- Synchronet 3.18a-Linux NewsLink 1.113
  • From Nelgin@nelgin@EOTLBBS.remove-y7w-this to Digital Man on Mon May 11 22:03:07 2020
    From Newsgroup: alt.bbs.synchronet

    To: Digital Man
    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?

    ---
    þ Synchronet þ End Of The Line BBS - endofthelinebbs.com
    --- Synchronet 3.18a-Win32 NewsLink 1.113
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    --- Synchronet 3.18a-Linux NewsLink 1.113
  • From Digital Man@digital.man@vert.synchro.net.remove-1zi-this to Nelgin on Mon May 11 21:31:11 2020
    From Newsgroup: alt.bbs.synchronet

    To: Nelgin
    Re: Addfiles difference between linux & windows
    By: Nelgin to Digital Man on Mon May 11 2020 03:03 pm

    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.

    There's no unix command (or standard API) to say "give me the short name of this file".

    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?

    Looking at the mdir source now. I suppose you could play with mdir a bit. I don't have any vfat partitions mounted, so I can't immediately play with it.

    digital man

    This Is Spinal Tap quote #2:
    Nigel Tufnel: Well, this piece is called "Lick My Love Pump".
    Norco, CA WX: 75.9øF, 43.0% humidity, 6 mph NW wind, 0.00 inches rain/24hrs
    --- Synchronet 3.18a-Win32 NewsLink 1.113
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    --- Synchronet 3.18a-Linux NewsLink 1.113