}
inode = dentry->d_inode;
- if (S_ISDIR(id_type(id))) {
- LASSERT(S_ISDIR(inode->i_mode));
+ if (S_ISDIR(inode->i_mode)) {
+ //LASSERT(S_ISDIR(id_type(id)));
rc = mds_md_get_attr(obd, inode, &mea, &mea_size);
if (rc)
GOTO(out, rc);
}
} else {
- LASSERT(!S_ISDIR(inode->i_mode));
+ //LASSERT(!S_ISDIR(id_type(id)));
*type = PP_FILE;
read_pid:
rc = mds_read_inode_pid(obd, inode, pid);
/* pp_id2 is present, which indicating we want to scan parent
* dir(pp_id2) to find the cross-ref entry(pp_id1) */
if (id_fid(&pkg->pp_id2)) {
+ /*
LASSERT(S_ISDIR(id_type(&pkg->pp_id1)));
LASSERT(S_ISDIR(id_type(&pkg->pp_id2)));
-
+ */
pkg->pp_type = PP_DIR;
goto scan;
}
/* check id is valid */
LASSERT(id_ino(&msg->id));
LASSERT(id_fid(&msg->id));
- LASSERT(id_type(&msg->id) & S_IFMT);
+ // LASSERT(id_type(&msg->id) & S_IFMT);
len += audit_rec_from_id(&pbuf, &msg->id);
switch (rec->opcode)
REC2ID(id_rec, &id);
+ //LASSERT(id_type(&id) & S_IFMT);
rc = audit_id2name(obd, &name, &namelen, &id);
if (rc < 0) {
strncat(buf, "unknown", PAGE_SIZE - n);