From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jari Aalto Newsgroups: gmane.emacs.bugs Subject: 21.3 peculiar error: directory-files fails on SAMBA 3.0.10 mounts Date: Fri, 21 Jan 2005 11:21:41 +0200 Message-ID: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1106301628 28421 80.91.229.6 (21 Jan 2005 10:00:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 21 Jan 2005 10:00:28 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 21 11:00:22 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CrvaX-00071Y-00 for ; Fri, 21 Jan 2005 11:00:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CrvmZ-0008DG-N0 for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Jan 2005 05:12:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CrviU-0006hn-V6 for bug-gnu-emacs@gnu.org; Fri, 21 Jan 2005 05:08:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CrviT-0006hU-SR for bug-gnu-emacs@gnu.org; Fri, 21 Jan 2005 05:08:34 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Crvbp-0005PZ-Dw for bug-gnu-emacs@gnu.org; Fri, 21 Jan 2005 05:01:41 -0500 Original-Received: from [193.229.0.44] (helo=fep02-app.kolumbus.fi) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Cruxm-0007oo-Gc for bug-gnu-emacs@gnu.org; Fri, 21 Jan 2005 04:20:18 -0500 Original-Received: from bongo.cante.net ([81.197.3.110]) by fep02-app.kolumbus.fi with ESMTP id <20050121092017.SIRS11200.fep02-app.kolumbus.fi@bongo.cante.net> for ; Fri, 21 Jan 2005 11:20:17 +0200 Original-Received: from ns2.cante.net ([192.168.1.20]:33830 helo=cante.cante.net) by bongo.cante.net with esmtp (Exim 4.34) id 1Cruxd-0006uV-1U for bug-gnu-emacs@gnu.org; Fri, 21 Jan 2005 11:20:09 +0200 Original-Received: from jaalto by cante.cante.net with local (Exim 4.34) id 1Cruz7-00024X-NL for bug-gnu-emacs@gnu.org; Fri, 21 Jan 2005 11:21:41 +0200 Original-To: bug-gnu-emacs@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:10521 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:10521 This is a peculiar error, which I have come accross several times, but which is hard to demonstrate, because it appears randomly. In any case, I'm reporting it so that perhaps inspecting the file reading code in C level could reveal something. There seems to be some reading problem with `directory-files' which is sometimes unable to read local user's smbmount(1) directrories. Test system: Debian/unstable ii samba 3.0.10-1 a LanManager-like file and printer server fo ii samba-common 3.0.10-1 Samba common files used by both the server a Mounted as local user with smbmount(1). Target system is Windows 2000 sp4. Output from mount(1): //w2kpicasso/jaalto on /home/jaalto/var/mount/jaalto type smbfs (rw) Normal listing calls succeed at OS level: $ ls /home/jaalto/var/mount/jaalto OK Normal dired calls succeed in Emacs too. I assume that's because external ls(1) call is used: C-x d /home/jaalto/var/mount/jaalto But lisp level call doesn't (directory-files "/home/jaalto/var/mount/jaalto") -> returns nil or sometimes message "interrupted system call" is flashed during tests. debug-on-error was t and debug-ignored-error nil during tests. How the situation could possibly be triggered: 1. Keep emacs running 2. smbmount, smbumount file system several times 3. try directory-files The situation is corrected by shutting down emacs and starting it again, but the underlying problem is there waiting to appear again. Jari