Enable date and time settings for remote files#9
Enable date and time settings for remote files#9nanshiki wants to merge 4 commits intojrohel:mainfrom
Conversation
…es if file writing occurs
…ata. Fix to prevent date/time settings from being applied when closing files if file writing occurs.
|
Fixed the server to accept file close packets without date and time data. Fix to prevent date/time settings from being applied when closing files if file writing occurs. |
|
In the sample program for UNDOCUMENTED DOS, SFT's rel_sector/abs_sector are not initialized, and it appears that their contents are neither referenced nor overwritten in actual DOS environments. Therefore, we store the file open date/time information in rel_sector/abs_sector, compare it upon closing, and if any changes are detected, we send the data to the server for updating. |
|
Thank you for your PRs. I’ll review them later. I currently have a lot of other work. Note: |
|
@nanshiki The issue with your PR is that the client would no longer work with older servers. I’ve prepared release, 1.8.0 https://github.com/jrohel/NetMount/releases/tag/client-v1.8.0%2Cserver-v1.8.0%2Cninstall-v1.0%2Cnmmanage-v1.1.0, for both the server and client. It extends the communication protocol while keeping full version compatibility - the client detects what the server supports. Key additions in 1.8.0:
New features are enabled only if supported by both client and server. I’m closing this PR. Thank you very much for your contribution and effort. |
int 21h ax=5701h updates the sft's file_time.
The file close packet adds the date/time information and sends the file_time to the server, which then sets the file's date/time information.
With this modification, the date and time information will also be copied when copying a file.