Searched refs:stbuf (Results 1 – 4 of 4) sorted by relevance
73 struct stat stbuf; in BlockDevSize() local74 if (fstat(fd_, &stbuf) < 0) { in BlockDevSize()78 if (!S_ISBLK(stbuf.st_mode)) in BlockDevSize()
155 struct statfs stbuf; in createLoopDevice() local158 if (statfs(target.c_str(), &stbuf) != 0 || in createLoopDevice()159 stbuf.f_type != EROFS_SUPER_MAGIC_V1) { in createLoopDevice()
368 struct stat stbuf; in FileSize() local369 int rc = fstat(fd, &stbuf); in FileSize()375 if (S_ISREG(stbuf.st_mode)) in FileSize()376 return stbuf.st_size; in FileSize()377 if (S_ISBLK(stbuf.st_mode)) in FileSize()483 struct stat stbuf; in FileExists() local484 return 0 == lstat(path, &stbuf); in FileExists()488 struct stat stbuf; in IsSymlink() local489 return lstat(path, &stbuf) == 0 && S_ISLNK(stbuf.st_mode) != 0; in IsSymlink()
103 struct stat stbuf; in Init() local105 (stat((root_ + "/.nodelta").c_str(), &stbuf) < 0) && (errno == ENOENT); in Init()