Searched refs:stbuf (Results 1 – 4 of 4) sorted by relevance
80 struct stat stbuf; in BlockDevSize() local81 if (fstat(fd_, &stbuf) < 0) { in BlockDevSize()85 if (!S_ISBLK(stbuf.st_mode)) in BlockDevSize()
192 struct statfs stbuf; in ConfigureLoopDevice() local195 if (statfs(target.c_str(), &stbuf) != 0 || in ConfigureLoopDevice()196 (stbuf.f_type != EROFS_SUPER_MAGIC_V1 && in ConfigureLoopDevice()197 stbuf.f_type != SQUASHFS_MAGIC && in ConfigureLoopDevice()198 stbuf.f_type != OVERLAYFS_SUPER_MAGIC)) { in ConfigureLoopDevice()
372 struct stat stbuf; in FileSize() local373 int rc = fstat(fd, &stbuf); in FileSize()379 if (S_ISREG(stbuf.st_mode)) in FileSize()380 return stbuf.st_size; in FileSize()381 if (S_ISBLK(stbuf.st_mode)) in FileSize()487 struct stat stbuf; in FileExists() local488 return 0 == lstat(path, &stbuf); in FileExists()492 struct stat stbuf; in IsSymlink() local493 return lstat(path, &stbuf) == 0 && S_ISLNK(stbuf.st_mode) != 0; in IsSymlink()497 struct stat stbuf; in IsRegFile() local[all …]
94 struct stat stbuf; in Init() local96 (stat((root_ + "/.nodelta").c_str(), &stbuf) < 0) && (errno == ENOENT); in Init()