Skip to content

Support REFS Formatted Partitions #1457

Open
@CoryUlrichU46

Description

@CoryUlrichU46

Troubleshooting steps
After installing Server 2019 I setup an SFTP server following the docs on the Microsoft site. I am able to view files and directories. Delete files and directories. Move Files and directories. Rename Directories, but NOT rename any individual file. The user connecting to the server over SSH, and the System user which the SSH service is running as both have the Full Control permission over the files I've tested and the files parent directories. All of the aforementioned file and directory operations work on both NTFS and REFS file systems, but only the renaming does not work on REFS formatted drives. It works fine NTFS drives. I assumed at first that maybe only the OS drive worked, but attached a second NTFS formatted drive, and all of the file operations worked.

A great way to test this yourself, open disk management, click action, then click create VHD. Do this twice. When both VHD(X) files are created format one of them as NTFS, and the other as REFS. Once you have them both formatted and mapped to drive letter (mine mapped automatically) put a simple text file on each of the drives. Mine were labeled E (the NTFS drive) and F (the REFS drive). Once you have your mock hard drives in place, connect to the computer running the SFTP server software with something like FileZilla, and navigate to each of the drives (/F:/ or /E:/ in my case). Try to rename the text file on each of your drives. As expected renaming worked on NTFS but not REFS for me. I have tried this on two different systems so far. Here is the error from FileZilla, I will also attempt to add a screenshot. I could not find any useful information in the Windows Event Viewer, but if there is another log you'd like me to check, or upload, please let me know.

Here is the Verbos message box from FileZilla, including the success information for the NTFS drive (E:) and the fail information from the REFS Drive (F:)


Status: Retrieving directory listing of "/e:"...
Status: Listing directory /e:/
Status: Directory listing of "/e:" successful
Status: Renaming '/e:/Derp.txt' to '/e:/derf'
Status: /e:/Derp.txt -> /e:/derf
Status: Retrieving directory listing of "/f:"...
Status: Listing directory /f:/
Status: Directory listing of "/f:" successful
Status: Renaming '/f:/Derp.txt' to '/f:/asd'
Command: mv "Derp.txt" "asd"
Error: mv /f:/Derp.txt /f:/asd: received failure with description 'Failure'

Here is an attempted screenshot:
image

Terminal issue? please go through wiki
No. This is not a terminal issue.

Please answer the following

"OpenSSH for Windows" version
7.7.2.1

Server OperatingSystem
Windows Server 2019 Datacenter

Client OperatingSystem
Windows 10 (Using Filezilla), Android (Using multiple file managers that support SFTP).

What is failing
Renaming individual files on an REFS Formatted Partition / Drive

Expected output
File is renamed with no errors.

Actual output
FileZilla or other clients return an error when attempting to rename a file.

Here is an example of the error text I get from Filezilla:

Status: Directory listing of "/v:" successful

Status: Renaming '/v:/procexp 64.exe' to '/v:/procexp64.exe'

Command: mv "procexp 64.exe" "procexp64.exe"

Error: mv /v:/procexp 64.exe /v:/procexp64.exe: received failure with description 'Failure'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions