[DragonFlyBSD - Bug #3340] (New) DragonFly master e49cd: spurious errors by 'mv' and 'mkdir': kern_rename: retry due to race
bugtracker-admin at leaf.dragonflybsd.org
bugtracker-admin at leaf.dragonflybsd.org
Sun Feb 5 01:51:06 PST 2023
Issue #3340 has been reported by peeter.
----------------------------------------
Bug #3340: DragonFly master e49cd: spurious errors by 'mv' and 'mkdir': kern_rename: retry due to race
http://bugs.dragonflybsd.org/issues/3340
* Author: peeter
* Status: New
* Priority: Normal
* Target version: 6.6
* Start date: 2023-02-05
----------------------------------------
*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
<pre>
desktop kernel: kern_rename: retry due to race on: "test_h2" -> "test_h2" (8,4)
</pre>
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'.
<pre>
user at 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 at desktop:~/project/mkdir-bug/test-fs-mkdir % mkdir old
mkdir: old: File exists
user at 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 at 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 at desktop:~/project/mkdir-bug/test-fs-mkdir % ll
total 1
drwxr-xr-x 1 user user 0 Feb 5 10:20 old/
user at 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 at 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 at DATA 881G 377G 504G 43% /home
/dev/serno/S4CZNF0M841083L.s1e at DATA 881G 352G 529G 40% /volumes/singlevol1
tmpfs 3679M 83.9M 3595M 2% /v
user at 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 at DATA on /home (hammer2, local)
/dev/serno/S4CZNF0M841083L.s1e at DATA on /volumes/singlevol1 (hammer2, local)
tmpfs on /var/run/shm (tmpfs, local)
</pre>
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account
More information about the Bugs
mailing list