Lines Matching defs:compressed

323  *	hfs_file_is_compressed(): returns 1 if the file is compressed, and 0 (zero) if not.
324 * if the file's compressed flag is set, makes sure that the decmpfs_cnode field
333 /* fast check to see if file is compressed. If flag is clear, just answer no */
348 case FILE_IS_CONVERTING: /* treat decompressing files as if they are compressed */
466 /* opening a compressed file for write, so convert it to decompressed */
484 /* opening the resource fork of a compressed file, so nothing to do */
486 /* opening a compressed file for read, make sure it validates */
693 int compressed = 0;
697 /* we only care about whether the file is compressed if asked for the uncompressed size */
702 /* if it's a data fork, we need to know if it was compressed so we can report the uncompressed size */
703 compressed = hfs_file_is_compressed(cp, 0);
706 // if it's compressed
707 if (compressed || (!VNODE_IS_RSRC(vp) && cp->c_decmp && cp->c_decmp->cmp_type >= CMP_MAX)) {
712 // fake that it's compressed
713 compressed = 1;
830 } else if (compressed) {
831 /* for compressed files, we report all allocated blocks as belonging to the data fork */
855 } else if (compressed) {
995 else if (compressed) {
1130 we call decmpfs_update_attributes even if the file is not compressed
1170 /* keep the compressed state locked until we're done truncating the file */
1276 * the UF_COMPRESSED was toggled, so reset our cached compressed state
1934 int compressed = hfs_file_is_compressed(VTOC(vp), 1); /* 1 == don't take the cnode lock */
1937 if (!compressed && (VTOC(vp)->c_bsdflags & UF_COMPRESSED)) {
2937 * a requirement for the compressed files work. Luckily, hfs_vgetrsrc will handle
4531 int compressed = hfs_file_is_compressed(VTOC(vp), 0); /* 0 == take the cnode lock */
4532 if (VTOCMP(vp) != NULL && !compressed) {