[Bug 268005] rsync to FAT32 flash drive gets "Freeing unused sector" errors

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 05 Feb 2024 20:49:37 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268005

Stefan Eßer <se@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |se@FreeBSD.org
           Assignee|fs@FreeBSD.org              |se@FreeBSD.org
             Status|New                         |Open

--- Comment #5 from Stefan Eßer <se@FreeBSD.org> ---
I have been able to reproduce the issue with alloc/free tracing added to
msdosfs:

usemap_free: cluster=185185
usemap_alloc: cluster=361562
usemap_free: cluster=185186
usemap_alloc: cluster=361563
/mnt/FAT32: Freeing unused sector 185186 2 fffffff8
/dev/md0: remounting read-only due to corruption
remounted /dev/md0 read-only

In this test run block 185186 has been freed twice in a row.

I'll ltry to identify the code path that causes usemap_free() to be called
twice for a single vnode operation.

-- 
You are receiving this mail because:
You are the assignee for the bug.