Displaying 18 results from an estimated 18 matches for "blkgetsize64".
2017 Aug 08
1
Re: [PATCH 3/6] daemon: Refine check for Device and Dev_or_Path parameters (RHBZ#1477623).
...tional fprintf() look like debugging leftovers.
> + fd = open (device, O_RDONLY|O_CLOEXEC);
> + if (fd == -1) {
> + if (verbose)
> + fprintf (stderr, "%s: open: %s: %m\n", "is_device_parameter", device);
> + return 0;
> + }
> + if (ioctl (fd, BLKGETSIZE64, &n) == -1) {
> + if (verbose)
> + fprintf (stderr, "%s: ioctl BLKGETSIZE64: %s: %m\n",
> + "is_device_parameter", device);
> + close (fd);
> + return 0;
> + }
> + close (fd);
Maybe 'fd' can be:
CLEANUP_CLOSE int...
2005 Jan 05
1
Re: Problem compiling syslinux-3.01
On Tue, Jan 04, 2005 at 06:50:53PM -0800, H. Peter Anvin wrote:
>
> Okay, your <linux/fs.h> is broken beyond repair. The proper definition
> of BLKGETSIZE64 is:
>
> #define BLKGETSIZE64 _IOR(0x12,114,size_t)
>
> There is no "sizeof", and u64 doesn't belong in the user headers. I
> suspect this particular screwup is probably the reason that it's size_t
> instead of the proper __u64 in the current definiti...
2005 Jan 03
2
(no subject)
...result.
Out of the box compilation with:
make depend
make installer
fails with:
...
gcc -Wp,-MT,extlinux.o,-MMD,.extlinux.o.d -W -Wall -Wno-sign-compare -D_FILE_OFFSET_BITS=64 -g -Os -I. -I.. -I../libfat -c -o extlinux.o extlinux.c
extlinux.c: In function `get_size':
extlinux.c:285: error: `BLKGETSIZE64' undeclared (first use in this function)
extlinux.c:285: error: (Each undeclared identifier is reported only once
extlinux.c:285: error: for each function it appears in.)
make[2]: *** [extlinux.o] Error 1
make[2]: Leaving directory `/home/balducci/tmp/install-us-d/syslinux/syslinux-3.01/extlinu...
2005 Jan 04
2
Re: Problem compiling syslinux-3.01
In my last post I pasted the last few line of the compile log for
syslinux-3.02pre2. Here are the correct lines from my failed attempt to
compile syslinux-3.01. Still the same error.
make[1]: Leaving directory `/usr/src/syslinux-3.01/unix'
make[1]: Entering directory `/usr/src/syslinux-3.01/extlinux'
gcc -Wp,-MT,extlinux.o,-MMD,.extlinux.o.d -W -Wall -Wno-sign-compare
2005 Jan 04
0
SYSLINUX 3.02-pre1 released
I have pushed out a 3.02-pre1 release of SYSLINUX, which has the
BLKGETSIZE64 patch, plus a few other things:
Changes in 3.02 (so far):
* SYSLINUX: The "unix" installer now sets the MS-DOS
attributes (hidden, system, readonly.)
* COM32 library: build the .lnx (test modules for running
under Linux) as architecture native modu...
2017 Aug 03
0
[PATCH 3/6] daemon: Refine check for Device and Dev_or_Path parameters (RHBZ#1477623).
...+ fprintf (stderr, "%s: %s is the root device\n",
+ "is_device_parameter", device);
+ return 0;
+ }
+
+ /* Only now is it safe to try opening the device since chardev devices
+ * might block when opened.
+ *
+ * Only disk-like things should support BLKGETSIZE64.
+ */
+ fd = open (device, O_RDONLY|O_CLOEXEC);
+ if (fd == -1) {
+ if (verbose)
+ fprintf (stderr, "%s: open: %s: %m\n", "is_device_parameter", device);
+ return 0;
+ }
+ if (ioctl (fd, BLKGETSIZE64, &n) == -1) {
+ if (verbose)
+ fprintf (stderr, &q...
2014 Nov 24
2
[PATCH v2 0/2] patches needed for virt-bmap
Does *not* incorporate changes suggested by Pino yet.
Rich.
2009 Dec 21
0
[PATCH] btrfsctl: scan device and exit without using ioctl
.../btrfsctl.c b/btrfsctl.c
index 66c4e89..61020de 100644
--- a/btrfsctl.c
+++ b/btrfsctl.c
@@ -34,6 +34,8 @@
#include "transaction.h"
#include "utils.h"
#include "version.h"
+#include "disk-io.h"
+#include "volumes.h"
#ifdef __CHECKER__
#define BLKGETSIZE64 0
@@ -88,6 +90,30 @@ static int open_file_or_dir(const char *fname)
}
return fd;
}
+
+int btrfs_scan_file (const char *path)
+{
+ int ret = -1;
+ struct btrfs_fs_devices *fs_devices = NULL;
+ u64 dev_count = 0;
+ int fd = -1;
+
+ fd = open (path, O_RDONLY);
+...
2015 Jan 02
13
[PATCH 0/9] linux/syslinux: support ext2/3/4 device
Hello,
Happy New Year!
These patches make syslinux/linux support ext2/3/4, and it doesn't
require the root privilege, I'd like to add a separate e2fs/syslinux, if
that is more appropriate, it should be easy to do that.
I put these patches on github so that you can easily get them in case
you'd like to test them. (The repo's name is sys_tmp, which avoids
confusing others, I will
2005 Jan 05
2
SYSLINUX-3.02 released
...S-DOS
attributes (hidden, system, readonly.)
* COM32 library: build the .lnx (test modules for running
under Linux) as architecture native modules, in case
i386 devel libraries aren't installed.
* EXTLINUX: Hack for systems which don't have BLKGETSIZE64
defined in the standard header files.
* Simple menu system: minor aestetic improvements, and try to
work better over a serial console (speed, and readability on
monochrome terminal emulators.)
* New CONSOLE directive to control output on the video...
2005 Jan 03
1
SYSLINUX 3.01 released
Some people have reported portability problems with SYSLINUX 3.00,
mostly due to the use of HDIO_GETGEO_BIG, which is deprecated;
additionally, the advanced menu system wouldn't build for everyone due
to a spurious reference to %ebp.
This release fixes these things, plus makes the extlinux installer
default to zipdisk geometry (64 heads, 32 sectors) if it can't guess
anything else.
2017 Aug 03
9
[PATCH 0/6] tests: Fix handling of device API parameters (RHBZ#1477623).
https://bugzilla.redhat.com/show_bug.cgi?id=1477623
The first two patches are cleanups.
The third patch changes the way that we handle Device and Dev_or_Path
parameters so that a parameter marked as such can really only contain
a block device name (and not, for instance, a chardev). Using a
chardev here caused hangs in the API.
The next two patches fix API usage to conform to this new stricter
2013 Aug 14
23
[RFC] btrfs-progs: fix sparse checking and warnings
Hi gang,
I was a little surprised to see that patch go by recently
which fixed an endian bug. I went to see how sparse
checking looked and it was.. broken. I got it going
again in my Fedora environment.
Most of the patches are just cleanups, but there *were*
three real bugs lurking in all that sparse warning spam.
So I maintain that it''s worth our time to keep it going
and fix
2013 Jan 03
33
Option LABEL
Hallo, linux-btrfs,
please delete the option "-L" (for labelling) in "mkfs.btrfs", in some
configurations it doesn''t work as expected.
My usual way:
mkfs.btrfs -d raid0 -m raid1 /dev/sdb /dev/sdc /dev/sdd ...
One call for some devices.
Wenn I add the option "-L mylabel" then each device gets the same label,
and therefore some other programs
2006 Dec 27
5
Problem with ext3 filesystem
Hey,
I've a problem with an ext3 filesystem and don't know how to fix it or
find the failure :(
The Hardware:
Tyan mainboard, AMD Athlon CPU, ARECA ARC-1120 RaidController Raid5 with
400GB Seagate HD's, 756 MB Ram, other harddisks for system, network and
avm isdn controller.
Couse of the filesystem problems I run memtest and found one bad memory
module which I replaced yet.
The
2013 Jul 15
21
[PATCH 00 of 21 RESEND] blktap3/drivers: Introduce tapdisk server.
This patch series copies the core of the tapdisk process from blktap2, with
updates coming from blktap2.5.
Signed-off-by: Thanos Makatos <thanos.makatos@citrix.com>
2013 Apr 19
8
[PATCH 0 of 8] blktap3/libvhd: Introduce VHD library.
This patch series introduces the VHD library. It is based on the blktap2 one,
with changes coming from the blktap2.5 one.
Signed-off-by: Thanos Makatos <thanos.makatos@citrix.com>
2012 Feb 29
15
[RFC] [PATCH] Add btrfs autosnap feature
From: anand jain <anand.jain@oracle.com>
Anand Jain (1):
[RFC] Add btrfs autosnap feature
Makefile | 6 +-
autosnap.c | 1553 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
autosnap.h | 81 +++
btrfs-list.c | 140 +++++-
btrfs.c | 46 ++-
btrfs_cmds.c | 186 +++++++-
btrfs_cmds.h | 3 +-
scrub.c | 1 +
8 files changed, 1982 insertions(+), 34