bump proxmox crate to 0.1.7
The -sys, -tools and -api crate have now been merged into the proxmx crate directly. Only macro crates are separate (but still reexported by the proxmox crate in their designated locations). When we need to depend on "parts" of the crate later on we'll just have to use features. The reason is mostly that these modules had inter-dependencies which really make them not independent enough to be their own crates. Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
@ -32,7 +32,7 @@ pub struct FixedIndexHeader {
|
||||
pub chunk_size: u64,
|
||||
reserved: [u8; 4016], // overall size is one page (4096 bytes)
|
||||
}
|
||||
proxmox::tools::static_assert_size!(FixedIndexHeader, 4096);
|
||||
proxmox::static_assert_size!(FixedIndexHeader, 4096);
|
||||
|
||||
// split image into fixed size chunks
|
||||
|
||||
@ -372,7 +372,7 @@ impl FixedIndexWriter {
|
||||
|
||||
self.unmap()?;
|
||||
|
||||
let csum_offset = proxmox::tools::offsetof!(FixedIndexHeader, index_csum);
|
||||
let csum_offset = proxmox::offsetof!(FixedIndexHeader, index_csum);
|
||||
self.file.seek(SeekFrom::Start(csum_offset as u64))?;
|
||||
self.file.write_all(&index_csum)?;
|
||||
self.file.flush()?;
|
||||
|
Reference in New Issue
Block a user