nfs-workarounds.c revision c32823063d8050bd4c9b300e267f3eacf34d018d
/* Copyright (c) 2006 Timo Sirainen */
#include "lib.h"
#include "nfs-workarounds.h"
#include <fcntl.h>
#include <unistd.h>
static int
void *context)
{
unsigned int i;
int ret;
t_push();
for (i = 1;; i++) {
break;
/* ESTALE: Some operating systems may fail with this if they
can't internally revalidating the NFS handle. It may also
happen if the parent directory has been deleted. If the
directory still exists, try reopening the file. */
break;
}
/* maybe it's gone or something else bad happened to
it. in any case we can't open the file, so fail
with the original ESTALE error and let our caller
handle it. */
break;
}
/* directory still exists, try reopening */
}
t_pop();
return ret;
}
struct nfs_safe_open_context {
int flags;
int fd;
};
{
}
{
struct nfs_safe_open_context ctx;
return -1;
}
{
}
{
}
{
}
{
}