MiSTer-devel / MiSTer-devel/Scripts_MiSTer
cifs_mount.sh: SINGLE_CIFS_CONNECTION=false with LOCAL_DIR list
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 122
- Forks
- 49
- Avg merge
- 8h 56m
- Merged PRs (30d)
- 1
Description
cifs_mount.ini:
SHARE="mister/games"
LOCAL_DIR="NeoGeo-CD|PSX"
SINGLE_CIFS_CONNECTION="false"
BASE_PATH="/media/fat/games"
MOUNT_AT_BOOT="false"
Using a RetroNAS where I only want to mount and use a couple games directories to override those on the MiSTerFPGA SD card (in the above example, NeoGeo-CD and PSX).
If SINGLE_CIFS_CONNECTION="true", those two specific game directories are binded correctly, and with //retrosmb/mister/games/ mounted to /tmp/cifs_mount.
However, if I set SINGLE_CIFS_CONNECTION="false", I see the following:
/media/fat/Scripts# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/loop8 348M 297M 25M 93% /
/dev/root 367G 336G 32G 92% /media/fat
devtmpfs 246M 0 246M 0% /dev
tmpfs 247M 0 247M 0% /dev/shm
tmpfs 247M 300K 246M 1% /tmp
tmpfs 247M 244K 246M 1% /run
tmpfs 247M 0 247M 0% /var/lib/samba
tmpfs 247M 8.0K 247M 1% /var/db/dhcpcd
/dev/loop0 987K 29K 816K 4% /var/lib/bluetooth
//retrosmb/mister/games 13T 1.7T 12T 13% /media/fat/games/PSX
/media/fat/Scripts#
and
/media/fat/Scripts# ls /media/fat/games/NeoGeo-CD
AcornAtom Amiga Apple-II Atari2600 AtariST BK0011M Casio_PV-2000 CreatiVision Gamate GBA Homelab Lynx48 MSX NeoGeo-CD Oric PMD85 RX78 SGB SPMX TeleStrat TomyTutor VECTOR06 X68000
AcornElectron Amstrad AQUARIUS ATARI5200 AVision C128 ChannelF EDSAC GAMEBOY GBA2P Intellivision MACPLUS MSX1 NES PC8801 PocketChallengeV2 S32X SharpMZ SuperVision TGFX16 TRS-80 VECTREX Zet98
Adam AO486 Arcadia ATARI7800 AY-3-8500 C16 CoCo2 eg2000 GAMEBOY2P GBC Interact mame MultiComp ODYSSEY2 PCXT PokemonMini SAMCOUPE SMS SuperVision8000 TGFX16-CD TSConf VIC20 zx48
AliceMC10 APOGEE Arduboy ATARI800 BBCBridgeCompanion C64 COCO3 EpochGalaxyII GameGear Genesis Jupiter MegaCD MyVision Ondra_SPO186 PDP1 PSX Saturn SNES SVI328 TI-99_4A UK101 WonderSwan ZX81
Altair8800 APPLE-I Astrocade AtariLynx BBCMicro Casio_PV-1000 Coleco Galaksija GameNWatch hbmame Laser MegaDuck NeoGeo ORAO PET2001 QL SG1000SV Spectrum TatungEinstein TomyScramble VC4000 WonderSwanColor ZXNext
/media/fat/Scripts# ls /media/fat/games/PSX/
AcornAtom Amiga Apple-II Atari2600 AtariST BK0011M Casio_PV-2000 CreatiVision Gamate GBA Homelab Lynx48 MSX NeoGeo-CD Oric PMD85 RX78 SGB SPMX TeleStrat TomyTutor VECTOR06 X68000
AcornElectron Amstrad AQUARIUS ATARI5200 AVision C128 ChannelF EDSAC GAMEBOY GBA2P Intellivision MACPLUS MSX1 NES PC8801 PocketChallengeV2 S32X SharpMZ SuperVision TGFX16 TRS-80 VECTREX Zet98
Adam AO486 Arcadia ATARI7800 AY-3-8500 C16 CoCo2 eg2000 GAMEBOY2P GBC Interact mame MultiComp ODYSSEY2 PCXT PokemonMini SAMCOUPE SMS SuperVision8000 TGFX16-CD TSConf VIC20 zx48
AliceMC10 APOGEE Arduboy ATARI800 BBCBridgeCompanion C64 COCO3 EpochGalaxyII GameGear Genesis Jupiter MegaCD MyVision Ondra_SPO186 PDP1 PSX Saturn SNES SVI328 TI-99_4A UK101 WonderSwan ZX81
Altair8800 APPLE-I Astrocade AtariLynx BBCMicro Casio_PV-1000 Coleco Galaksija GameNWatch hbmame Laser MegaDuck NeoGeo ORAO PET2001 QL SG1000SV Spectrum TatungEinstein TomyScramble VC4000 WonderSwanColor ZXNext
Shouldn't the result be the same as with SINGLE_CIFS_CONNECTION="true"?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with cifs_mount.sh and the cifs_mount.ini settings shown in the report. Reproduce both SINGLE_CIFS_CONNECTION modes with LOCAL_DIR set to NeoGeo-CD|PSX, then compare the resulting mounts and directory contents. Done means the false mode mounts only the requested directories with the same visible contents as the true mode.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell
- Domain
- cli, networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100