if (req == NULL)
RETURN(-ENOMEM);
- if (opc == OST_WRITE && inode && IS_ENCRYPTED(inode) &&
- llcrypt_has_encryption_key(inode)) {
- struct osc_async_page *oap = brw_page2oap(pga[page_count - 1]);
+ if (opc == OST_WRITE && inode && IS_ENCRYPTED(inode)) {
+ if (compressed) {
+ static time64_t next_print;
+
+ if (unlikely(next_print < ktime_get_seconds())) {
+ next_print = ktime_get_seconds() + 24 * 3600;
+ CWARN("%s: encrypted file "DFID" will not be compressed\n",
+ obd_name, oa->o_parent_seq,
+ oa->o_parent_oid,
+ oa->o_parent_ver);
+ }
+ compressed = 0;
+ }
+ if (llcrypt_has_encryption_key(inode)) {
+ struct osc_async_page *oap;
- oa->o_size = oap->oap_count + oap->oap_obj_off +
- oap->oap_page_off;
+ oap = brw_page2oap(pga[page_count - 1]);
+ oa->o_size = oap->oap_count + oap->oap_obj_off +
+ oap->oap_page_off;
+ }
}
if (compressed && !page_access_allowed)
init_logging
ALWAYS_EXCEPT="$SANITY_SEC_EXCEPT "
-# bug number for skipped test:
-ALWAYS_EXCEPT+=" "
-# UPDATE THE COMMENT ABOVE WITH BUG NUMBERS WHEN CHANGING ALWAYS_EXCEPT!
+always_except EX-7601 66
[ "$SLOW" = "no" ] && EXCEPT_SLOW="26"
if (getenv("LFS_SETSTRIPE_COMPR_OK") == NULL) {
fprintf(stderr,
- "WARNING: File compression is a technology preview feature and is not yet intended for production use.\n");
+ "WARNING: File compression is a technology preview feature and is not yet intended for production use. Compression is skipped for encrypted files.\n");
}
for (i = 0; i < ARRAY_SIZE(compr_type_table); i++) {