这是indexloc提供的服务,不要输入任何密码
Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aGwRQ5sWGhWoYOEN@voyager>
Date: Mon, 7 Jul 2025 20:26:11 +0200
From: Markus Wichmann <nullplan@....net>
To: musl@...ts.openwall.com
Cc: Viv Briffa <viv@...ce.technology>,
	Stephen Von Takach <steve@...ce.technology>
Subject: Re: unlink on NFS volume fails silently

Am Sun, Jul 06, 2025 at 04:25:31PM +1000 schrieb Stephen Von Takach:
> Hi,
> 
> We recently had to move a service from being built on alpine linux to
> debian linux as we were getting silent failures when deleting a directory
> with many files on an NFS volume. Basically this call to unlink was not
> raising an error if the file failed to delete
> https://github.com/crystal-lang/crystal/blob/master/src/crystal/system/unix/file.cr#L129
> 
> We replicated the issue in an alpine container with rm -rf
> /nfs_mount/git_repo_to_delete and it also failed to successfully delete all
> the files, it did raise an error though (I assume it checked the file was
> removed before continuing) not entirely sure.
> 
> Both these operations succeed with glibc when using debian.
> Looks a bit like this issue:
> https://gitlab.alpinelinux.org/alpine/aports/-/issues/10960
> 

Neither unlink() nor readdir() are appreciably different between musl
and glibc, so I don't know what is going on. Could you strace the test
cases to see where the differences are?

Ciao,
Markus

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.