Skip to content
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

core: Add Encrypted.Convert method #1270

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

xyakimo1
Copy link
Contributor

No description provided.

@StorageGhoul
Copy link

Can one of the admins verify this patch?

Copy link

Cockpit tests failed for commit 433ed08. @martinpitt, @jelly, @mvollmer please check.

@martinpitt
Copy link
Contributor

OK, that's not cockpit's bug 😅

udiskslinuxencrypted.c:1301:9: error: implicit declaration of function 'bd_crypto_luks_convert'; did you mean 'bd_crypto_luks_close'? [-Werror=implicit-function-declaration]
 1301 |   if (! bd_crypto_luks_convert (udisks_block_get_device (block),
      |         ^~~~~~~~~~~~~~~~~~~~~~
      |         bd_crypto_luks_close
udiskslinuxencrypted.c:1301:9: warning: nested extern declaration of 'bd_crypto_luks_convert' [-Wnested-externs]

@vojtechtrefny
Copy link
Member

OK, that's not cockpit's bug 😅

udiskslinuxencrypted.c:1301:9: error: implicit declaration of function 'bd_crypto_luks_convert'; did you mean 'bd_crypto_luks_close'? [-Werror=implicit-function-declaration]
 1301 |   if (! bd_crypto_luks_convert (udisks_block_get_device (block),
      |         ^~~~~~~~~~~~~~~~~~~~~~
      |         bd_crypto_luks_close
udiskslinuxencrypted.c:1301:9: warning: nested extern declaration of 'bd_crypto_luks_convert' [-Wnested-externs]

We need libblockdev daily builds for this, the version with bd_crypto_luks_convert is not yet released.

@vojtechtrefny
Copy link
Member

/packit build

@vojtechtrefny
Copy link
Member

Jenkins, ok to test.

@vojtechtrefny
Copy link
Member

Jenkins, test this please.

@vojtechtrefny
Copy link
Member

/packit build

Copy link
Member

@tbzatek tbzatek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No objections for the code itself, looks good. However please do take care to properly follow the code style and block indentation. Have a look at surrounding code to see how nested blocks are formatted.

src/udiskslinuxencrypted.c Outdated Show resolved Hide resolved
src/udiskslinuxencrypted.c Outdated Show resolved Hide resolved
Copy link
Member

@vojtechtrefny vojtechtrefny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thank you.

The test failures in our CI are unrelated and we just need to make sure to wait for the new release of libblockdev before merging this to not break the cockpit test suite.

data/org.freedesktop.UDisks2.xml Outdated Show resolved Hide resolved
@martinpitt
Copy link
Contributor

We need libblockdev daily builds for this

Aren't these supposed to be in https://copr.fedorainfracloud.org/coprs/g/storage/udisks-daily/packages/ ? The last libblockdev build is from 4 days ago, much newer than this PR. What happened here?

@vojtechtrefny
Copy link
Member

/packit test

@vojtechtrefny
Copy link
Member

We need libblockdev daily builds for this

Aren't these supposed to be in https://copr.fedorainfracloud.org/coprs/g/storage/udisks-daily/packages/ ? The last libblockdev build is from 4 days ago, much newer than this PR. What happened here?

There was an issue with the libblockdev daily builds, the version in the udisks-daily repo was behind the version in Fedora for some time. That should be fixed now. (I originally thought that the revdeps test doesn't use the daily build repo and that was the reason for the failures.)

@xyakimo1 xyakimo1 marked this pull request as ready for review July 11, 2024 23:14
Copy link
Member

@tbzatek tbzatek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks for your contribution.

@vojtechtrefny vojtechtrefny merged commit da84236 into storaged-project:master Jul 15, 2024
17 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants