Multiple subsequent accesses to submounted directories
result in this syslog:
Jul 22 00:19:06 router kernel: FAT: Unrecognized mount
option "iocharset=" or missing value
Jul 22 00:19:06 router submountd: mount failure,
Invalid argument
Jul 22 00:19:06 router kernel: subfs: submountd
execution failure. Error 256
Jul 22 00:19:10 router kernel: FAT: Unrecognized mount
option "iocharset" or missing value
Jul 22 00:19:10 router submountd: mount failure,
Invalid argument
Jul 22 00:19:10 router kernel: subfs: submountd
execution failure. Error 256
Jul 22 00:19:10 router kernel: FAT: Unrecognized mount
option "iocharse" or missing value
Jul 22 00:19:10 router submountd: mount failure,
Invalid argument
Jul 22 00:19:10 router kernel: subfs: submountd
execution failure. Error 256
Jul 22 00:19:11 router kernel: FAT: Unrecognized mount
option "iochars" or missing value
Jul 22 00:19:11 router submountd: mount failure,
Invalid argument
Jul 22 00:19:11 router kernel: subfs: submountd
execution failure. Error 256
Jul 22 00:19:11 router kernel: FAT: Unrecognized mount
option "iochar" or missing value
Jul 22 00:19:11 router submountd: mount failure,
Invalid argument
Jul 22 00:19:11 router kernel: subfs: submountd
execution failure. Error 256
Jul 22 00:19:11 router kernel: FAT: Unrecognized mount
option "iocha" or missing value
Jul 22 00:19:11 router submountd: mount failure,
Invalid argument
Jul 22 00:19:11 router kernel: subfs: submountd
execution failure. Error 256
Jul 22 00:19:11 router kernel: FAT: Unrecognized mount
option "ioch" or missing value
Jul 22 00:19:11 router submountd: mount failure,
Invalid argument
Jul 22 00:19:11 router kernel: subfs: submountd
execution failure. Error 256
Jul 22 00:19:12 router kernel: FAT: Unrecognized mount
option "ioc" or missing value
Jul 22 00:19:12 router submountd: mount failure,
Invalid argument
Jul 22 00:19:12 router kernel: subfs: submountd
execution failure. Error 256
Jul 22 00:19:13 router kernel: FAT: Unrecognized mount
option "io" or missing value
Jul 22 00:19:13 router submountd: mount failure,
Invalid argument
Jul 22 00:19:13 router kernel: subfs: submountd
execution failure. Error 256
Jul 22 00:19:13 router kernel: FAT: Unrecognized mount
option "i" or missing value
Jul 22 00:19:13 router submountd: mount failure,
Invalid argument
Jul 22 00:19:13 router kernel: subfs: submountd
execution failure. Error 256
obviously, the "unrecognized mount" option gets shorter
each time.
The whole mount options string gets shorter each time.
Clearly, this should not happen.
Following lines in "subfs.c" may be the culprit:
if (sfs_mnt->procuid)
sfs_mnt->options[len - 1] = '\0';
Logged In: YES
user_id=217142
I've changed these two lines into:
if (sfs_mnt->procuid && len)
sfs_mnt->options[len] = '\0';
which I think was intended. That is, it strips the procuid
stuff from the options after adding in add_procuid
I just wonder why nobody cared to solve this. SUSE has this
in their kernel, perhaps they have solved it by themselves.