Cobra Forum

Linux => Networking & Wireless => Topic started by: kalpana on Oct 20, 2023, 03:51 AM

Title: Mounting a Wondows share with a space in the name
Post by: kalpana on Oct 20, 2023, 03:51 AM
On my Ubuntu 20.04.6 system I mounted several Windows shares.
That works correct and I can read and write on that shares.

Now. I have mounted a Windows share with a space in the share name.
I used the next mount command:

mount -v -t cifs -o username=administrator,password=xxxxxxx "//winsys1/test data" /mnt/test_data

The mount succeed and I see the mount with the df command.

However, if I run the command 'ls /mnt/test_data' I get the error message:

ls /mnt/test_data
ls: reading directory 'test_data': Invalid argument

The output of the strace from that ls commando shows that the systems call's stat,openat,fstat and mmap works correct on the mounted direcory /mnt/test_data
However the system call getdents64 give the result: "-1 EINVAL (Invalid argument)"


Could that be because of the space in the Windows share name?
Is there a solution to this?