Searched refs:S_ISBLK (Results 1 – 13 of 13) sorted by relevance
53 #undef S_ISBLK54 #define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK) macro
84 if (S_ISBLK(given.st_mode) && S_ISBLK(userdata.st_mode) && in GetDevicePathForFile()
115 if (!S_ISBLK(statbuf.st_mode)) { in main()
250 if (S_ISBLK(stat.st_mode) && ((rv = ioctl(fd, BLKRRPART, NULL)) < 0)) { in sync_ptable()298 if (S_ISBLK(stat.st_mode)) { in validate()372 if (S_ISBLK(stat.st_mode) && total_size > disk_size) { in validate()
236 return S_ISBLK(st.st_mode); in is_block_device_fd()256 else if (S_ISBLK(buf.st_mode)) in get_file_size()
78 if (!S_ISBLK(stbuf.st_mode)) in BlockDevSize()
196 } else if (!S_ISBLK(stat.st_mode)) { in main()
168 if (!stat(path.c_str(), &s) && S_ISBLK(s.st_mode)) { in ListPartitions()
54 if (S_ISBLK(s.st_mode)) { in GetDescriptorSize()
374 if (S_ISBLK(st.st_mode)) { in get_size()
377 if (S_ISBLK(stbuf.st_mode)) in FileSize()
1117 if (!S_ISBLK(sb.st_mode)) { in Create()
78 return S_ISREG(mode) || S_ISBLK(mode) || S_ISCHR(mode); in should_pull_file()