Project

General

Profile

Actions

Bug #3340

closed

DragonFly master e49cd: spurious errors by 'mv' and 'mkdir': kern_rename: retry due to race

Added by peeter almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
02/05/2023
Due date:
% Done:

0%

Estimated time:

Description

System:

6.5-DEVELOPMENT DragonFly v6.5.0.25.ge49cd-DEVELOPMENT #63: Wed Feb 1

Related-to:

Related to earlier report: https://bugs.dragonflybsd.org/issues/3339. This time kernel also reports an error 'retry due to race' in /var/log/messages.

Problem:

The files are correctly renamed, but spurious errors are reported to user while renaming/moving file (see below in the terminal print-out).

Kernel reports a race message

desktop kernel: kern_rename: retry due to race on: "test_h2" -> "test_h2" (8,4)

while user has given the following sequence of commands on terminal. Note two additional issues: (1) 'mkdir' reports 'File exists', related to earlier 'mkdir' report, (2) incorrect printout '/v' of mountpoint; later below 'mount' prints the correct one '/var/run/shm'.

user@desktop:~/project/mkdir-bug/test-fs-mkdir % ll
total 0
-rwxr-xr-x  1 user  user  161 Feb  4 10:10 test_h2*
-rwxr-xr-x  1 user  user  104 Feb  4 12:02 test_h2_single*
-rwxr-xr-x  1 user  user  164 Feb  4 10:07 test_temp*
user@desktop:~/project/mkdir-bug/test-fs-mkdir % mkdir old
mkdir: old: File exists
user@desktop:~/project/mkdir-bug/test-fs-mkdir % ll
total 1
drwxr-xr-x  1 user  user    0 Feb  5 10:19 old/
-rwxr-xr-x  1 user  user  161 Feb  4 10:10 test_h2*
-rwxr-xr-x  1 user  user  104 Feb  4 12:02 test_h2_single*
-rwxr-xr-x  1 user  user  164 Feb  4 10:07 test_temp*
user@desktop:~/project/mkdir-bug/test-fs-mkdir % mv test_* old/
mv: rename test_h2 to old/test_h2: No such file or directory
mv: test_h2_single: No such file or directory
mv: test_temp: No such file or directory
user@desktop:~/project/mkdir-bug/test-fs-mkdir % ll
total 1
drwxr-xr-x  1 user  user  0 Feb  5 10:20 old/
user@desktop:~/project/mkdir-bug/test-fs-mkdir % ll old/
total 0
-rwxr-xr-x  1 user  user  161 Feb  4 10:10 test_h2*
-rwxr-xr-x  1 user  user  104 Feb  4 12:02 test_h2_single*
-rwxr-xr-x  1 user  user  164 Feb  4 10:07 test_temp*
user@desktop:~/project/mkdir-bug/test-fs-mkdir % df -h
Filesystem                            Size   Used  Avail Capacity  Mounted on
serno/S4EVNJ0N111268D-1.s1d           293G  62.9G   230G    21%    /
devfs                                1024B  1024B     0B   100%    /dev
/dev/serno/S4EVNJ0N111268D-1.s1a     2016M   812M  1042M    44%    /boot
/build/usr.obj                        293G  62.9G   230G    21%    /usr/obj
/build/var.crash                      293G  62.9G   230G    21%    /var/crash
/build/var.cache                      293G  62.9G   230G    21%    /var/cache
/build/var.spool                      293G  62.9G   230G    21%    /var/spool
/build/var.log                        293G  62.9G   230G    21%    /var/log
/build/var.tmp                        293G  62.9G   230G    21%    /var/tmp
tmpfs                                3679M  3752K  3675M     0%    /tmp
procfs                               4096B  4096B     0B   100%    /proc
/dev/serno/S4CZNF0M841048X.s1e@DATA   881G   377G   504G    43%    /home
/dev/serno/S4CZNF0M841083L.s1e@DATA   881G   352G   529G    40%    /volumes/singlevol1
tmpfs                                3679M  83.9M  3595M     2%    /v
user@desktop:~/project/mkdir-bug/test-fs-mkdir % mount
serno/S4EVNJ0N111268D-1.s1d on / (hammer2, local)
devfs on /dev (devfs, nosymfollow, local)
/dev/serno/S4EVNJ0N111268D-1.s1a on /boot (ufs, local)
/build/usr.obj on /usr/obj (null)
/build/var.crash on /var/crash (null)
/build/var.cache on /var/cache (null)
/build/var.spool on /var/spool (null)
/build/var.log on /var/log (null)
/build/var.tmp on /var/tmp (null)
tmpfs on /tmp (tmpfs, local)
procfs on /proc (procfs, local)
/dev/serno/S4CZNF0M841048X.s1e@DATA on /home (hammer2, local)
/dev/serno/S4CZNF0M841083L.s1e@DATA on /volumes/singlevol1 (hammer2, local)
tmpfs on /var/run/shm (tmpfs, local)

Actions #1

Updated by peeter almost 2 years ago

  • Status changed from New to Closed

Similarly to https://bugs.dragonflybsd.org/issues/3339 I believe the issue is related to 'startx' and has nothing to do with 'mkdir' or 'rm'.

Closed.

Actions

Also available in: Atom PDF