Closed derritter88 closed 2 months ago
<chatgpt>
ZFS does allow filenames with the "|" (pipe) character. However, NTFS (the filesystem used by Windows)
does not support using the "|" character in filenames. NTFS has a set of reserved characters that cannot
be used in filenames, and "|" is one of them.
So hmm I guess we could UTF-8 encode them or something.
Heh it read my mind
unfortunately, UTF-8 encoding the "|" character won't allow you to save it in NTFS filenames. NTFS has specific rules about which characters are allowed in filenames, and even if you encode special characters like "|" using UTF-8
Which would be interessting as on my personal Win23h2 desktop as well as on the SMB Win Server it allowed me to save the file with multiple | characters
Also with former ZFS versions it worked well. And if I would like to export a drive the whole ZFS process hangs:
zunmount(Serien/Backup,H://Backup) running
zunmount(Serien/Backup,H://Backup) returns 0
zunmount(Serien,H:/) running
zunmount(Serien,H:/) returns 0
The command was entered about and hour ago
@derritter88 commented:
Which would be interessting as on my personal Win23h2 desktop as well as on the SMB Win Server it allowed me to save the file with multiple | characters
Does md "A|B"
command really work for you? Win10 21h2 does not allow this:
EDIT: That's on NTFS, of course.
@sskras No that also do not work for me. But it is interessting as I downloaded a video via yt-dlp on Ubuntu (WSL) to my regular Windows download folder and it accepted it without any problems. Also copying the whole file over to the server did not cause any troubles.
The | utf8 thing refers to ntfs, fairly sure I can encode it in ZFS, if it even reaches us. This will be the thing to test, if you use | in explorer, does it reject it before calling ZFS
IMO, reserved ASCII characters like |
are being filtered out at WinAPI level:
https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventions
Yeah, can't even type one into Explorer, so pretty far from getting into ZFS code. Be fun to create on Unix, import - we surely will display the names with | fine, but you presumably can't do anything with it.
The problem I got now is that after there was no progress with the pipe character, no zpool
and also no zfs
command are working now.
It is like it's waiting for the command to finish.
Is there any way to reload the driver?
zfsinstaller.exe uninstall path/to/openzfs.inf - but I think that too will get stuck if it really is stuck waiting on something. Reboot will clear it.
Okay another issue where ZFS hangs (but previous ZFS versions worked):
This would be the mounted ZFS volume which is being compared to the regular Windows path via FreeFileSync
I had to destroy the ZFS pool and create a new one - that was the only way to get the backup process back working
System information
Describe the problem you're observing
When trying to backup my YouTube videos ZFS seems to have troubles again with some file names.
Betrunkener September | Terminator-Schnaps | Adult Swim [x4-Who_dlHA].mkv
is not being tried to copy over. Instead the compare and copy process hangs forever.