bug-coreutils@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
From: "Pádraig Brady" <P@draigBrady.com>
To: Bjoern Voigt <bjoernv@arcor.de>, 68283@debbugs.gnu.org
Cc: Ondrej Valousek <ondrej.valousek.xm@renesas.com>,
	Thiago Rafael Becker <trbecker@gmail.com>
Subject: bug#68283: ls -l issues on cifs mounted directories
Date: Sat, 6 Jan 2024 14:48:21 +0000	[thread overview]
Message-ID: <fce1ae26-6476-e4a5-a141-09da05754359@draigBrady.com> (raw)
In-Reply-To: <0857af15-c169-4cb0-a4a8-0488fec2e94f@arcor.de>

On 06/01/2024 13:08, Bjoern Voigt via GNU coreutils Bug Reports wrote:
> After upgrading coreutils from version 9.3 to 9.4, "ls -l" shows error
> messages, if the files or directories are in a cifs/smb3 mounted directory.
> 
> Example:
> /mnt/cifstest here is mounted with "mount -t cifs -o username=myuser
> //192.168.1.2/all /mnt/cifstest/". The server is a Samba 4.19.2 server.
> The kernel is version 6.1.71.
> 
> # ls -l /mnt/cifstest/
> ls: /mnt/cifstest/: Resource temporarily unavailable


> "ls -l" from coreutils 9.3 does not show any errors.
> 
> Probably it is not just the error message. "dmesg -w" shows several
> errors after executing "ls -l":
> 
> [17563.999109] smb2_reconnect: 3 callbacks suppressed
> [17563.999113] CIFS: VFS: reconnect tcon failed rc = -11

> I debugged this problem a bit. The changes in
> coreutils-9.4/lib/file-has-acl.c:file_has_acl are probably responsible
> for the errors. The system call listxttr produces the error message
> "Resource temporarily unavailable". I could not find the reasons for
> error messages shown with "dmesg".
> 
> The listxattr.c test program in the manual page (man listxattr) shows
> the following output:
> 
> # ./listxattr /mnt/cifstest/
> listxattr: Resource temporarily unavailable
> 
> Work-around are to downgrade to coreutils 9.3 or not to use the "-l"
> option for ls.

Thanks for the details.
EAGAIN is not a documented return from listxattr,
and it seems like the cifs client should not let that leak.
Perhaps the kernel needs another change along the lines of:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6efa994e35a
(That was included in v5.18).

Perhaps something to ask at linux-cifs@vger.kernel.org ?

If this is a common enough issue then it might be appropriate for us to handle,
but given the current info, ls is just informing you of an actual issue on your system.

thanks,
Pádraig




      reply	other threads:[~2024-01-06 14:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-06 13:08 bug#68283: ls -l issues on cifs mounted directories Bjoern Voigt via GNU coreutils Bug Reports
2024-01-06 14:48 ` Pádraig Brady [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.gnu.org/mailman/listinfo/bug-coreutils

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fce1ae26-6476-e4a5-a141-09da05754359@draigBrady.com \
    --to=p@draigbrady.com \
    --cc=68283@debbugs.gnu.org \
    --cc=bjoernv@arcor.de \
    --cc=ondrej.valousek.xm@renesas.com \
    --cc=trbecker@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).