stat() fails on cifs shares

Bug #486667 reported by demidrol
42
This bug affects 7 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

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[]){
    struct stat stat_buf;
    if (argc != 2)
        exit(-1);
    if (stat(argv[1], &stat_buf) != 0){
        perror(NULL);
        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
linux-image-2.6.32.4.4

Tags: kernel-lucid
Chuck Short (zulcss)
affects: samba (Ubuntu) → linux (Ubuntu)
Revision history for this message
darteaga (darteaga) wrote :

Having the same problem in Ubuntu Karmic (kernel 2.6.31-14-generic). Many programs (e.g.: gedit, tex, octave) don't work over cifs shares.

It's a very nasty bug for those of us using cifs shares.

darteaga (darteaga)
description: updated
Andy Whitcroft (apw)
tags: added: kernel-series-unknown
Andy Whitcroft (apw)
tags: added: kernel-lucid
removed: kernel-series-unknown
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.