Lines Matching defs:fs

38 #include <sys/fs/cachefs_log.h>
56 stats_cookie_t *fs = NULL;
102 fs = stats_create_mountpath(argv[optind], prog);
103 if (fs == NULL) {
109 if (! stats_good(fs)) {
110 pr_err(stats_errorstr(fs));
111 rc = stats_errno(fs);
115 if ((logfile = stats_log_kernel_getname(fs)) == NULL) {
116 pr_err(stats_errorstr(fs));
117 rc = stats_errno(fs);
126 if ((stats_log_kernel_setname(fs, fpath) != 0) ||
127 (stats_log_which(fs, CACHEFS_LOG_MOUNT, 1) != 0) ||
128 (stats_log_which(fs, CACHEFS_LOG_UMOUNT, 1) != 0) ||
129 (stats_log_which(fs, CACHEFS_LOG_REMOVE, 1) != 0) ||
130 (stats_log_which(fs, CACHEFS_LOG_RMDIR, 1) != 0) ||
131 (stats_log_which(fs, CACHEFS_LOG_TRUNCATE, 1) != 0) ||
132 (stats_log_which(fs, CACHEFS_LOG_CREATE, 1) != 0) ||
133 (stats_log_which(fs, CACHEFS_LOG_MKDIR, 1) != 0) ||
134 (stats_log_which(fs, CACHEFS_LOG_RENAME, 1) != 0) ||
135 (stats_log_which(fs, CACHEFS_LOG_SYMLINK, 1) != 0) ||
136 (stats_log_which(fs, CACHEFS_LOG_UALLOC, 1) != 0) ||
137 (stats_log_which(fs, CACHEFS_LOG_CSYMLINK, 1) != 0) ||
138 (stats_log_which(fs, CACHEFS_LOG_FILLDIR, 1) != 0) ||
139 (stats_log_which(fs, CACHEFS_LOG_MDCREATE, 1) != 0) ||
140 (stats_log_which(fs, CACHEFS_LOG_NOCACHE, 1) != 0) ||
141 (stats_log_which(fs, CACHEFS_LOG_CALLOC, 1) != 0) ||
142 (stats_log_which(fs, CACHEFS_LOG_RFDIR, 1) != 0)) {
143 pr_err(stats_errorstr(fs));
144 rc = stats_errno(fs);
148 if (stats_log_kernel_setname(fs, NULL) != 0) {
149 pr_err(stats_errorstr(fs));
150 rc = stats_errno(fs);
155 if ((logfile = stats_log_kernel_getname(fs)) == NULL) {
156 pr_err(stats_errorstr(fs));
157 rc = stats_errno(fs);
172 if (((fpath) || (hflag) || (vflag)) && (! stats_inerror(fs))) {
177 origk = stats_getkey(fs);
209 if (stats_inerror(fs)) {
210 pr_err(stats_errorstr(fs));
211 rc = stats_errno(fs);
215 stats_destroy(fs);