-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
CI: Add label create tests #1801
Conversation
Seems failing? |
Yes there's two things going on here:
You can run the simple test locally by doing
|
I won't be able to get to fixing |
Actually it's fine with PR #1798 applied as that's how I tested dosemu2/fdpp#202. I didn't actually narrow down what the problem is here, it just got fixed when I rewrote partition support to use |
But will you remove mallocs in |
Yes mallocs removed now. |
Still fails. |
Yep, because of part two of my explanation above. It needs the label fixes to fdpp to be applied (dosemu2/fdpp#202) |
e05cecf
to
715c1a4
Compare
9ea764f
to
698ff56
Compare
6ce3be8
to
97035bf
Compare
Note: These tests identify the following problems: 1/ FreeDOS 1.3 does: a) With existing file, volume is set but the existing file is deleted b) With existing directory, the function returns failure. c) No Volume field is set in the BPB. d) More than one file with the volume bit set can be created. 2/ MS-DOS 6.22 does: a) No support for FAT32 3/ DR-DOS 7.01 does: a) No support for FAT32 b) No Volume field is set in the BPB. Note: Currently MFS does not allow setting of volume label
Since LFNs are stored in FAT using the VOLID bit (amongst others), we need to check that: when creating a label that we don't error on their existence. when deleting a label that we don't destroy or corrupt them. Note: MS-DOS 6.22 and DR-DOS 7.01 fail to create a label if there are LFNs existing, which is presumably due to their lack of LFN support.
I think this is good to add now that FDPP has functioning label code. I also tested on FRDOS 1.3, DRDOS 7.01 and MSDOS 622 to apply the known failures / unsupported actions where necessary. |
Thanks! |
I'm just extending the label create test to check if the set label is propagated to int21/69 (get serial number). It seems that FreeDOS/FDPP implement getting the label via this service, but ignores label on the corresponding set. See https://fd.lod.bz/rbil/interrup/dos_kernel/2169.html#3212 . I think this is probably fine, otherwise to synchronise the two labels stored we'd have to delete / create a new volume name file in fatfs too. Do you agree? |
I think volume dir entry should never |
I suppose for completeness I need to check if MS-DOS does update the root dentry label if an application calls int21/69 to change the volume label. On another note, I found a bug with label setting via FCB. It seems that the |
Could you please look into this build? |
Also there is a crash on Focal... |
Log zip file name seems to be per workflow, not per job. I'll see if there's some job specific variable I can suffix it with. I have to go out now for the day, back later. |
I wonder why other packaged |
It seems, most packaged tests failed |
Also if you have Focal around somewhere, |
I think I've nailed the problem on Focal. In addition it appears that debuild adds the |
Yep, fno-common worked. So what remains is a TAP problem |
Working on the log upload problem now. |
Cool! :) |
So I did the int21/6901 test to check writing the BPB
I think this is probably alright for FDPP. |
I think its just how you did that in fdpp. :) |
Also IIRC you had some code that |
Yes and I'm happy with that, but I wanted to check what happened in the reverse direction i.e. using int21/6901 to set the BPB volume.
There is an effort to look at that now, FDOS/fdisk#86 (comment) |
Oh, he wants Mac and OpenSUSE builds... |
Note: These tests identify the following problems:
1/ FreeDOS 1.3 on FAT does:
a) With existing file, volume is set but the existing file is deleted
b) With existing directory, the function returns failure.
c) No Volume field is set in the BPB.
2/ MS-DOS 6.22 does:
a) No support for FAT32
3/ DR-DOS 7.01 does:
a) No support for FAT32
b) No Volume field is set in the BPB.
Note: Currently MFS does not allow setting of volume label