search for: figetbsz

Displaying 5 results from an estimated 5 matches for "figetbsz".

2018 Jan 20
4
[PATCH nbdkit] filters: Add copy-on-write filter.
Eric, you'll probably find the design "interesting" ... It does work, for me at least. Rich.
2007 Dec 13
2
SOLVED: failed to create ldlinux.sys
...7-12-13 10:41:18.000000000 +0100 +++ unix/syslinux.c 2007-12-13 10:40:52.000000000 +0100 @@ -45,6 +45,7 @@ #include <sys/types.h> #include <sys/wait.h> #include <sys/mount.h> +#include <signal.h> #include <sys/ioctl.h> #include <linux/fs.h> /* FIGETBSZ, FIBMAP */ @@ -372,6 +373,11 @@ usage(); /* + * Fix sigchld handling + */ + signal(SIGCHLD, SIG_DFL); + + /* * First make sure we can open the device at all, and that we have * read/write permission. */ /MaF -- Martin Forssen <maf at appgate.com>...
2018 Jan 21
2
Re: [PATCH nbdkit] filters: Add copy-on-write filter.
...filesystem block size. */ -static int blksize; +/* Bitmap. Bit 1 = allocated, 0 = hole. */ +static uint8_t *bitmap; + +/* Size of the bitmap in bytes. */ +static uint64_t bm_size; static void cow_load (void) @@ -112,17 +123,6 @@ cow_load (void) } unlink (template); - - if (ioctl (fd, FIGETBSZ, &blksize) == -1) { - nbdkit_error ("ioctl: FIGETBSZ: %m"); - exit (EXIT_FAILURE); - } - if (blksize <= 0) { - nbdkit_error ("filesystem block size is < 0 or cannot be read"); - exit (EXIT_FAILURE); - } - - nbdkit_debug ("cow: filesystem block size...
2018 Jan 20
0
[PATCH nbdkit] filters: Add copy-on-write filter.
...len (tmpdir) + 8; + template = alloca (len); + snprintf (template, len, "%s/XXXXXX", tmpdir); + + fd = mkostemp (template, O_CLOEXEC); + if (fd == -1) { + nbdkit_error ("mkostemp: %s: %m", tmpdir); + exit (EXIT_FAILURE); + } + + unlink (template); + + if (ioctl (fd, FIGETBSZ, &blksize) == -1) { + nbdkit_error ("ioctl: FIGETBSZ: %m"); + exit (EXIT_FAILURE); + } + if (blksize <= 0) { + nbdkit_error ("filesystem block size is < 0 or cannot be read"); + exit (EXIT_FAILURE); + } + + nbdkit_debug ("cow: filesystem block size...
2009 Jan 28
2
[PATCH] fs: Add new pre-allocation ioctls to vfs for compatibility with legacy xfs ioctls
...at_sys_ioctl(unsigne case FIOQSIZE: break; + case F_IOC_RESVSP_32: + case F_IOC_RESVSP64_32: +#ifdef BROKEN_X86_ALIGNMENT + arg = copy_to_space_resv(arg); + cmd = _NATIVE_IOC(cmd, struct space_resv); +#endif + error = ioctl_preallocate(filp, arg); + goto out_fput; + case FIBMAP: case FIGETBSZ: case FIONREAD: Index: xfs/fs/ioctl.c =================================================================== --- xfs.orig/fs/ioctl.c 2009-01-21 21:03:27.321448363 +0100 +++ xfs/fs/ioctl.c 2009-01-27 20:36:59.189424147 +0100 @@ -15,6 +15,7 @@ #include <linux/uaccess.h> #include <linux/writ...