Jump to conversation
Unresolved conversations (15)
@tbodt tbodt Dec 16, 2019
There's a lot of repeated code in these functions. How much can be factored out into a new function that takes a block?
app/iOSFS.m
@tbodt tbodt Dec 16, 2019
Locks aren't really intended for waiting for something to happen. Should use a condition variable. cond_t from util/sync.h is preferred because it allows the process to be interrupted by a signal, with e.g. ctrl-c.
app/iOSFS.m
@tbodt tbodt Dec 16, 2019
I don't really like this way of getting the view controller. My other ideas are way more annoying to implement though.
app/SceneDelegate.h
@tbodt tbodt Dec 16, 2019
I think a function `filesystem_register` that appends a filesystem to the array makes more sense than static filesystem ids.
kernel/fs.h
@tbodt tbodt Dec 16, 2019
Can you choose more meaningful magic values? 0x7265616c is used for realfs because it's "real" in ascii hex, so this means "ream". :)
app/iOSFS.m
@tbodt tbodt Dec 16, 2019
Instead of a new function here, how about setting fd->ops after calling realfs_open?
fs/real.c
@tbodt tbodt Dec 16, 2019
Unused, please remove
kernel/fs.h
@tbodt tbodt Dec 16, 2019
At this point there should be a separate fs/real.h header.
kernel/fs.h
@tbodt tbodt Dec 16, 2019
Could you put these under Devices?
iSH.xcodeproj/project.pbxproj
@tbodt tbodt Dec 16, 2019
Seems to be a duplicate
iSH.xcodeproj/project.pbxproj
@tbodt tbodt Nov 3, 2019
Can this be moved into iosfs_mount? I think that would eliminate the need for a new do_mount_with_data.
app/iOSFS.m
@tbodt tbodt Oct 26, 2019
Should include some information on what the error is
Outdated
app/TerminalViewController.m
@tbodt tbodt Oct 26, 2019
You're supposed to set mount->data after calling this, there shouldn't need to be a new function
Outdated
fs/mount.c
@NoahPeeters
@tbodt tbodt Oct 26, 2019
startAccessingSecurityScopedResource doesn't set errno so this will return garbage
Outdated
app/ExternalFolder.m
@tbodt tbodt Oct 26, 2019
Can you create this statically to avoid having to call something to create it?
Outdated
app/ExternalFolder.m
Resolved conversations (0)