All of lore.kernel.org
 help / color / mirror / Atom feed
* ftruncate fails
@ 2024-04-08  1:44 Itaru Kitayama
  2024-04-08  2:01 ` Dominique Martinet
  0 siblings, 1 reply; 10+ messages in thread
From: Itaru Kitayama @ 2024-04-08  1:44 UTC (permalink / raw)
  To: v9fs

Hi,
With a recent kernel I see below program fails (Bus error) if executed from 9p mounted directory, not with the local filesystem (Ext4).


#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/syscall.h>
#include <linux/memfd.h>

int main() {
        char filename[] = __FILE__"_tmpfile_XXXXXX";
        int fd, size;
        size = getpagesize();
        fd = mkstemp(filename);
        if (ftruncate(fd, size)) {
                printf("error");
        }


}

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-04-17  0:42 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-08  1:44 ftruncate fails Itaru Kitayama
2024-04-08  2:01 ` Dominique Martinet
2024-04-08  2:08   ` Itaru Kitayama
2024-04-08  2:22     ` Itaru Kitayama
2024-04-08  4:07       ` Dominique Martinet
2024-04-16 14:16       ` Eric Van Hensbergen
2024-04-12 20:36         ` Itaru Kitayama
2024-04-17  0:20           ` Eric Van Hensbergen
2024-04-17  0:25             ` Itaru Kitayama
2024-04-17  0:41               ` Eric Van Hensbergen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.