I noticed that after upgrade from linux-image-2.6.29 to linux-image-2.6.32-4-generic some programs that recursively scan directories (like mpd, xmms2 or gqview) stopped working on samba shares. They simply doesn't see the mountpoint (e.g. if I mount //server/share on /mnt/mountpoint and navigate gqview to /mnt it does not see mountpoint subdirectory). I suspect that this is somehow connected with strange behavior of stat() system call. The following code
Binary package hint: samba
I noticed that after upgrade from linux-image-2.6.29 to linux-image- 2.6.32- 4-generic some programs that recursively scan directories (like mpd, xmms2 or gqview) stopped working on samba shares. They simply doesn't see the mountpoint (e.g. if I mount //server/share on /mnt/mountpoint and navigate gqview to /mnt it does not see mountpoint subdirectory). I suspect that this is somehow connected with strange behavior of stat() system call. The following code
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
int main(int argc, char* argv[]){
perror( NULL);
struct stat stat_buf;
if (argc != 2)
exit(-1);
if (stat(argv[1], &stat_buf) != 0){
exit(-1);
}
return 0;
}
fails on samba shares (e.g. if I try to execute ./a.out /mnt/mountpoint I get "Value too large for defined data type").
System info:
Description: Ubuntu lucid (development branch)
Release: 10.04
smbfs-3. 4.2-1ubuntu1 2.6.32. 4.4
linux-image-