Lines Matching refs:st
156 struct stat st;
166 if (fstatat(dfd, filename, &st, 0) < 0)
173 if (S_ISDIR(st.st_mode)) {
188 if (st.st_ino == 256) {
249 } else if (S_ISREG(st.st_mode) && endswith(filename, ".raw")) {
266 !(st.st_mode & 0222) || read_only,
268 timespec_load(&st.st_mtim),
273 (*ret)->usage = (*ret)->usage_exclusive = st.st_blocks * 512;
274 (*ret)->limit = (*ret)->limit_exclusive = st.st_size;
682 struct stat st;
684 if (stat(i->path, &st) < 0)
687 if (chmod(i->path, (st.st_mode & 0444) | (b ? 0000 : 0200)) < 0)
708 struct stat st;
727 if (stat(path, &st) >= 0) {
728 if (asprintf(&p, "/run/systemd/nspawn/locks/inode-%lu:%lu", (unsigned long) st.st_dev, (unsigned long) st.st_ino) < 0)