Lines Matching refs:stable_fd
1127 int stable_fd, backup_fd = -1, ret; in open_stable() local
1131 stable_fd = open(NFSD_STABLERESTART, O_RDWR, 0); in open_stable()
1132 if (stable_fd < 0) in open_stable()
1133 stable_fd = open(NFSD_STABLERESTART, O_RDWR | O_CREAT, 0600); in open_stable()
1134 if (stable_fd >= 0) { in open_stable()
1135 ret = fstat(stable_fd, &st); in open_stable()
1137 close(stable_fd); in open_stable()
1138 stable_fd = -1; in open_stable()
1143 if (stable_fd >= 0) { in open_stable()
1156 close(stable_fd); in open_stable()
1157 stable_fd = -1; in open_stable()
1161 *stable_fdp = stable_fd; in open_stable()
1163 if (stable_fd < 0) in open_stable()
1168 copy_stable(stable_fd, backup_fd); in open_stable()
1170 copy_stable(backup_fd, stable_fd); in open_stable()