[LU-11274] Compile failure when CONFIG_BLK_DEV_INTEGRITY is unset Created: 21/Aug/18  Updated: 21/Aug/18  Resolved: 21/Aug/18

Status: Closed
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.12.0
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Chris Horn Assignee: WC Triage
Resolution: Duplicate Votes: 0
Labels: None

Issue Links:
Duplicate
is duplicated by LU-11096 Lustre doesn't build if kernel has no... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Similar to LU-11224, the T10PI feature assumes that CONFIG_BLK_DEV_INTEGRITY=y is set.

I see this on SLES 12 SP3, but presumably similar failures would occur on any kernel.

 

[  232s] In file included from /home/abuild/rpmbuild/BUILD/cray-lustre-2.11.53.87/lustre/include/lvfs.h:45:0,
[  232s]                  from /home/abuild/rpmbuild/BUILD/cray-lustre-2.11.53.87/lustre/include/obd.h:53,
[  232s]                  from /home/abuild/rpmbuild/BUILD/cray-lustre-2.11.53.87/lustre/fid/fid_request.c:43:
[  232s] /home/abuild/rpmbuild/BUILD/cray-lustre-2.11.53.87/lustre/include/lustre_compat.h: In function 'blk_integrity_interval':
[  232s] /home/abuild/rpmbuild/BUILD/cray-lustre-2.11.53.87/lustre/include/lustre_compat.h:708:11: error: dereferencing pointer to incomplete type
[  232s]   return bi->sector_size; 
[  232s] /home/abuild/rpmbuild/BUILD/cray-lustre-2.11.53.87/lustre/include/lustre_compat.h: In function 'blk_integrity_name':
[  232s] /home/abuild/rpmbuild/BUILD/cray-lustre-2.11.53.87/lustre/include/lustre_compat.h:717:11: error: dereferencing pointer to incomplete type
[  232s]   return bi->name;


 Comments   
Comment by James A Simmons [ 21/Aug/18 ]

This is a duplicate of LU-11096. A patch is in master-next so it should land soon. The patch is 

https://review.whamcloud.com/#/c/32725

Comment by Chris Horn [ 21/Aug/18 ]

Great, thanks

 

Comment by Chris Horn [ 21/Aug/18 ]

Duplicate of LU-11096

Generated at Sat Feb 10 02:42:27 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.