Searched refs:tsfp (Results 1 – 2 of 2) sorted by relevance
/titanic_41/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_patch_root.c | 54 FILE *tsfp = NULL; in meta_patch_rootdev() local 80 if (meta_systemfile_copy(sname, 1, 0, doit, verbose, &tsname, &tsfp, in meta_patch_rootdev() 85 tsname, tsfp, ismeta, doit, verbose, ep) != 0) { in meta_patch_rootdev() 101 if ((fflush(tsfp) != 0) || in meta_patch_rootdev() 102 (fsync(fileno(tsfp)) != 0) || in meta_patch_rootdev() 103 (fclose(tsfp) != 0)) { in meta_patch_rootdev() 107 tsfp = NULL; in meta_patch_rootdev() 148 if (tsfp != NULL) in meta_patch_rootdev() 149 (void) fclose(tsfp); in meta_patch_rootdev()
|
H A D | meta_db.c | 1185 FILE *tsfp = NULL; in meta_db_patch() local 1202 if (meta_systemfile_copy(sname, 0, 1, 1, 0, &tsname, &tsfp, ep) != 0) { in meta_db_patch() 1215 if (meta_systemfile_append_mddb(cname, sname, tsname, tsfp, 1, 0, 0, in meta_db_patch() 1225 if ((fflush(tsfp) != 0) || (fsync(fileno(tsfp)) != 0) || in meta_db_patch() 1226 (fclose(tsfp) != 0)) { in meta_db_patch() 1231 tsfp = NULL; in meta_db_patch() 1243 if ((tsfp = fopen(tsname, "r")) == NULL) in meta_db_patch() 1247 while (fgets(line, sizeof (line), tsfp) != NULL) { in meta_db_patch() 1251 (void) fclose(tsfp); in meta_db_patch() 1252 tsfp = NULL; in meta_db_patch() [all …]
|