GNU bug report logs - #40090
rm seems unfinished when calling mkdir

Previous Next

Package: coreutils;

Reported by: "Boyen, Peter" <peter.boyen <at> cgm.com>

Date: Mon, 16 Mar 2020 15:11:02 UTC

Severity: normal

Tags: notabug

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 40090 in the body.
You can then email your comments to 40090 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#40090; Package coreutils. (Mon, 16 Mar 2020 15:11:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Boyen, Peter" <peter.boyen <at> cgm.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Mon, 16 Mar 2020 15:11:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Boyen, Peter" <peter.boyen <at> cgm.com>
To: "bug-coreutils <at> gnu.org" <bug-coreutils <at> gnu.org>
Subject: rm seems unfinished when calling mkdir
Date: Mon, 16 Mar 2020 15:02:19 +0000
[Message part 1 (text/plain, inline)]
When I remove a folder by using rm -rfv ${TEMP_STORAGE}', shortly followed by an 'mkdir -pv ${TEMP_STORAGE}' to recreate the same folder, I get
mkdir: cannot create directory './temp_storage': Operation not permitted
It seems the rm command is not fully finished yet, somehow.

  *   I am running a Linux container on docker on Windows 10. The error occurs on a bind mount (and only there).
  *   It only happens If there is quite some data in the folder, so it seems the rm command has to take some time
  *   Other commands like ls and such can be run in between, but if I do 'sleep 5' in between, it doesn't occur (though obviously I don't want to do that every time).
Version info:
Docker desktop 2.2.0.4 (43472)
# uname -a
Linux 32b0494e3950 4.19.76-linuxkit #1 SMP Thu Oct 17 19:31:58 UTC 2019 x86_64 GNU/Linux
(The image is based on the debian:stretch image)
# mkdir --version
mkdir (GNU coreutils) 8.26
# rm --version
rm (GNU coreutils) 8.26

Thanks,
Peter

[Message part 2 (text/html, inline)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#40090; Package coreutils. (Mon, 16 Mar 2020 17:33:02 GMT) Full text and rfc822 format available.

Message #8 received at 40090 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: "Boyen, Peter" <peter.boyen <at> cgm.com>, 40090 <at> debbugs.gnu.org
Subject: Re: bug#40090: rm seems unfinished when calling mkdir
Date: Mon, 16 Mar 2020 17:32:17 +0000
tag 40090 notabug
close 40090
stop

On 16/03/2020 15:02, Boyen, Peter wrote:
> When I remove a folder by using rm -rfv ${TEMP_STORAGE}', shortly followed by an 'mkdir -pv ${TEMP_STORAGE}' to recreate the same folder, I get
> mkdir: cannot create directory './temp_storage': Operation not permitted
> It seems the rm command is not fully finished yet, somehow.
> 
>    *   I am running a Linux container on docker on Windows 10. The error occurs on a bind mount (and only there).
>    *   It only happens If there is quite some data in the folder, so it seems the rm command has to take some time
>    *   Other commands like ls and such can be run in between, but if I do 'sleep 5' in between, it doesn't occur (though obviously I don't want to do that every time).
> Version info:
> Docker desktop 2.2.0.4 (43472)
> # uname -a
> Linux 32b0494e3950 4.19.76-linuxkit #1 SMP Thu Oct 17 19:31:58 UTC 2019 x86_64 GNU/Linux
> (The image is based on the debian:stretch image)
> # mkdir --version
> mkdir (GNU coreutils) 8.26
> # rm --version
> rm (GNU coreutils) 8.26

The issue seems to be due to your file system or container setup.
Perhaps a sync(1) may help in between to avoid the bug,
but the issue is not within coreutils.

cheers,
Pádraig




Added tag(s) notabug. Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Mon, 16 Mar 2020 17:33:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 40090 <at> debbugs.gnu.org and "Boyen, Peter" <peter.boyen <at> cgm.com> Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Mon, 16 Mar 2020 17:33:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 14 Apr 2020 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 349 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.