Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,8 @@ def fsctl_apfs_bootable(path, cmd):
func.argtypes = (c_char_p, c_ulong, POINTER(c_int), c_uint)
c_fsctl = func
c_cmd = c_int(cmd)
err = c_fsctl(path.encode(), 0xc0044a57, byref(c_cmd), 0)
APFSIOC_VOL_BOOTABLE = 0xc0044a57 # _IOWR('J', 'W', int32_t)
err = c_fsctl(path.encode(), APFSIOC_VOL_BOOTABLE, byref(c_cmd), 0)
if err == -1:
raise Exception(f'fsctl call failed, errno: {get_errno()}')
return c_cmd.value
Expand Down
Loading