Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BSOD when deleting files and dirs #424

Open
Anankke opened this issue Dec 24, 2024 · 12 comments
Open

BSOD when deleting files and dirs #424

Anankke opened this issue Dec 24, 2024 · 12 comments

Comments

@Anankke
Copy link

Anankke commented Dec 24, 2024

Win 22H2 19405.5247
zfswin-2.2.6rc11

CONTEXT:  ffffbb84db0ee7f0 -- (.cxr 0xffffbb84db0ee7f0)
rax=ffff830dfbec1de0 rbx=0000000000000000 rcx=0000000000000000
rdx=ffff830e352cbce0 rsi=0000000000000000 rdi=ffff830e2b397a10
rip=fffff807695e9d20 rsp=ffffbb84db0ef1f0 rbp=ffffbb84db0ef500
 r8=ffffbb84db0ef198  r9=ffffbb84db0ef288 r10=0000000000000000
r11=ffffbb84db0ef1c0 r12=000000000522e4b0 r13=0000000000000040
r14=0000000000000000 r15=00000000052b0041
iopl=0         nv up ei ng nz na pe nc
cs=0010  ss=0018  ds=002b  es=002b  fs=0053  gs=002b             efl=00050282
nt!IopWriteFile+0xe0:
fffff807`695e9d20 4c8b7118        mov     r14,qword ptr [rcx+18h] ds:002b:00000000`00000018=????????????????
Resetting default scope

CUSTOMER_CRASH_COUNT:  1

PROCESS_NAME:  explorer.exe

STACK_TEXT:  
ffffbb84`db0ef1f0 fffff807`69611136 : ffff830e`2b397a10 00000000`00000000 00000000`00000000 00000000`00000000 : nt!IopWriteFile+0xe0
ffffbb84`db0ef2f0 fffff807`6942b908 : ffffffff`ffffffff 00000000`00000000 00000000`00000000 00000000`00000000 : nt!NtWriteFile+0x996
ffffbb84`db0ef410 00007ff9`be38d5f4 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : nt!KiSystemServiceCopyEnd+0x28
00000000`0522e458 00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : 0x00007ff9`be38d5f4


SYMBOL_NAME:  nt!IopWriteFile+e0

MODULE_NAME: nt

IMAGE_NAME:  ntkrnlmp.exe

IMAGE_VERSION:  10.0.19041.5247
@guenther-alka
Copy link

Deleting files and folders ok here with rc11
Win 11 Pro german, 23H2, 22631.4602, 16GB RAM

@guenther-alka
Copy link

guenther-alka commented Dec 25, 2024

another problem in

PS C:\Users\me> zfs list
NAME           USED  AVAIL  REFER  MOUNTPOINT
tank          73.9M  18.8G   188K  /tank
tank/data      392K  18.8G   164K  /tank/data
tank/data/ds   132K  18.8G   132K  /tank/data/ds

I copied files into /tank/data and /tank/data/ds and deleted /tank/data in explorer.
Result: /tank/data empty (including subfolder=ZFS filesystem) ds

No change with an unmount/mount tank/data/ds

Tried to export tank at console
Result: Console hangs

image

After a hard reset, /tank/data/ds remains invisible in explorer despite mounted=yes and mountpoint /tank/data/ds
Pool tank is located on .vhdx files.

When I do the same with pool usb/data/ds (on a usb stick), a zpool export usb ended in a BSOD but the ZFS filesystem ds is visible after reboot but as /usb/datads instead /usb/data/ds

image

@lundman
Copy link

lundman commented Dec 26, 2024

OK lesse, it should stop the destroy from happening (EBUSY), so you unmount manually. I think..

@lundman
Copy link

lundman commented Dec 26, 2024

The delete BSOD has so little information in it, not helpful Windows. Hmm, looks like it is trying to write to a deleted file maybe,

@andrewc12
Copy link

test

@leonik3
Copy link

leonik3 commented Dec 29, 2024

Maybe try
zfs set mountpoint=legacy /tank/data
zfs set mountpoint=legacy /tank/data/ds
and export and import.

@guenther-alka
Copy link

guenther-alka commented Dec 30, 2024

PS C:\Users\me> zfs list
NAME           USED  AVAIL  REFER  MOUNTPOINT
tank          74.0M  18.8G   156K  legacy
tank/data      404K  18.8G   176K  legacy
tank/data/ds   132K  18.8G   132K  legacy
tank/data2    72.3M  18.8G  72.3M  legacy

PS C:\Users\me> zpool export tank
cannot export 'tank': pool is busy

@leonik3
Copy link

leonik3 commented Dec 30, 2024

For "tank" leave the mountpoint=/tank

Then it will look something like this:

NAME           USED  AVAIL  REFER  MOUNTPOINT
tank          73.9M  18.8G   188K  /tank
tank/data      404K  18.8G   176K  legacy
tank/data/ds   132K  18.8G   132K  legacy
tank/data2    72.3M  18.8G  72.3M  legacy

Then import pool after windows restart.

@guenther-alka
Copy link

That worked after a reboot

PS C:\Users\me> zfs list
NAME           USED  AVAIL  REFER  MOUNTPOINT
tank          74.1M  18.8G   152K  /tank
tank/data      404K  18.8G   176K  legacy
tank/data/ds   132K  18.8G   132K  legacy
tank/data2    72.3M  18.8G  72.3M  legacy

PS C:\Users\me> zpool export tank
zunmount(tank,V:/) running
zunmount(tank,V:/) returns 0
PS C:\Users\me> 

@leonik3
Copy link

leonik3 commented Dec 30, 2024

Do you now have access to folders data and data/ds in windows?

@guenther-alka
Copy link

yes, after switching back mountpoints

zfs list
NAME           USED  AVAIL  REFER  MOUNTPOINT
tank          73.9M  18.8G   168K  /tank
tank/data      428K  18.8G   200K  /tank/data
tank/data/ds   132K  18.8G   132K  /tank/data/ds

PS C:\Users\me> dir v:
    Verzeichnis: V:\
Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----l        30.12.2024     15:16                data

@Anankke
Copy link
Author

Anankke commented Jan 3, 2025

The delete BSOD has so little information in it, not helpful Windows. Hmm, looks like it is trying to write to a deleted file maybe,

I am sorry, but this is all the info I got here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants