Skip to content

Commit

Permalink
udiskslinuxpartition: Rework device locking
Browse files Browse the repository at this point in the history
Advisory BSD lock is now held on a partition table block device
and extra BLKRRPART ioctl is issued on it afterwards.
  • Loading branch information
tbzatek committed Feb 3, 2022
1 parent ad2bb1c commit 96aa065
Show file tree
Hide file tree
Showing 3 changed files with 167 additions and 31 deletions.
1 change: 1 addition & 0 deletions src/udiskslinuxblock.c
Original file line number Diff line number Diff line change
Expand Up @@ -3420,6 +3420,7 @@ udisks_linux_block_handle_format (UDisksBlock *block,
{
if (!udisks_linux_partition_set_type_sync (UDISKS_LINUX_PARTITION (partition),
partition_type,
TRUE,
caller_uid,
NULL, /* cancellable */
&error))
Expand Down
Loading

0 comments on commit 96aa065

Please sign in to comment.