[REGRESSION] NFSv4: open(O_TRUNC) hangs

From: Miklos Szeredi
Date: Tue Apr 03 2012 - 12:25:52 EST


Now this test program hangs on latest git.

Thanks,
Miklos
---

#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>

int main(int argc, char *argv[])
{
int res;
char *name = argv[1];
int fd;

unlink(name);
fd = creat(name, 0644);
write(fd, "123", 3);
close(fd);
close(open(name, O_RDONLY | O_TRUNC));

return 0;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/