Lines Matching defs:rec
119 int get_file_info(struct file_info *rec);
948 int get_file_info(struct file_info *rec)
964 if (stat(rec->f_path, &sbuf) == -1) {
967 TagName, rec->f_path, SYSERR);
971 if ((!S_ISREG(sbuf.st_mode)) || strncmp(rec->f_path, "/dev/", 5) == 0) {
979 rec->f_type = sbuf.st_mode & S_IFMT;
988 rec->f_iou = 1;
989 rec->f_length = sbuf.st_size;
998 rec->f_riou = Rawmult;
1002 if (lk_rawdev(rec->f_path, dinfo.path, sizeof(dinfo.path), 0) ==
1008 rec->f_riou = sbuf.st_blksize;
1010 rec->f_riou = ctob(dinfo.iou);
1014 rec->f_riou = BSIZE;
1017 if ((fd = open(rec->f_path, O_RDWR | O_DIRECT, 0)) != -1) {
1019 rec->f_riou = finfo.d_miniosz;
1024 rec->f_path);
1028 rec->f_riou = BBSIZE;
1040 strcpy(dinfo.path, rec->f_path);
1048 rec->f_iou = ctob(dinfo.iou);
1049 rec->f_riou = ctob(dinfo.iou);
1050 rec->f_length = ctob(dinfo.length);
1053 rec->f_riou = BBSIZE;
1054 rec->f_length = BBSIZE;
1056 rec->f_riou = BSIZE;
1057 rec->f_length = BSIZE;