search for: dev_t

Displaying 20 results from an estimated 327 matches for "dev_t".

2016 Jun 02
3
[PATCH 0/3] builder: Warn if --output is a host partition.
Rather complex patch to solve a small user error. Warn if the user is doing something like: virt-builder -o /dev/sdX1 Rich.
2015 Oct 05
0
COMPILATION ERROR dev_t, into_t , no_tetc
...w: In file included from /opt/TAFC/R14.1/include/jsystem.h:106:0, from BASIC_2.c:6: /opt/TAFC/R14.1/include/jedi.h:534:2: error: unknown type name ?ino_t? ino_t ino; // The i-node number of a file ^ /opt/TAFC/R14.1/include/jedi.h:535:2: error: unknown type name ?dev_t? dev_t dev; // The device number of a file ^ /opt/TAFC/R14.1/include/jedi.h:537:2: error: unknown type name ?ino_t? ino_t lockid1; In file included from /opt/TAFC/R14.1/include/jsystem.h:106:0, from BASIC_2.c:6: /opt/TAFC/R14.1/include/jedi.h:729:1:...
2004 Jun 02
0
[PATCH] kill 2.4 dev_t vs kdev_t crap
The difference between kdev_t and dev_t in 2.4 is rather theoretical, no need to clutter up the source for it. Index: src/inode.c =================================================================== --- src/inode.c (revision 969) +++ src/inode.c (working copy) @@ -1877,11 +1872,8 @@ case OCFS_ATTRIB_FIFO: case OCFS_ATTRI...
2016 Jul 14
2
[PATCH 0/2] Build mllib and customize into libraries.
Simplifies the build a bit. This is on top of the previous SELinux relabelling patch set, although not related to it. Rich.
2004 Mar 09
4
[PATCH] kinit
...gv[i][len] != '\0')) { ret = argv[i] + len; break; } --- klibc-0.115_dev/kinit/do_mounts.c 2003-06-01 08:21:09.000000000 +0200 +++ klibc-0.115/kinit/do_mounts.c 2004-03-10 00:11:55.000000000 +0100 @@ -24,7 +24,7 @@ try_name(char *name, int part) char buf[BUF_SZ]; int range; dev_t res; - char *s; + char *s, *p; int len; int fd; @@ -39,6 +39,11 @@ try_name(char *name, int part) if (len <= 0 || len == BUF_SZ || buf[len - 1] != '\n') goto fail; buf[len - 1] = '\0'; + + for (p = buf; *p; p++) { + if (*p == ':') + *p = '\0'; +...
2015 Sep 10
2
[PATCH v2 1/1] extlinux: fix memory leak
...++++-------------- 1 file changed, 30 insertions(+), 14 deletions(-) diff --git a/extlinux/main.c b/extlinux/main.c index 55a1495..b7cdf92 100644 --- a/extlinux/main.c +++ b/extlinux/main.c @@ -1044,12 +1044,12 @@ err: } #ifndef __KLIBC__ -static const char *find_device(const char *mtab_file, dev_t dev) +static char *find_device(const char *mtab_file, dev_t dev) { struct mntent *mnt; struct stat dst; FILE *mtab; - const char *devname = NULL; + char *devname = NULL; bool done; mtab = setmntent(mtab_file, "r"); @@ -1131,7 +1131,7 @@ static const char...
2015 Sep 09
1
[PATCH v1 1/1] extlinux: fix memory leak
...++---------------- 1 file changed, 32 insertions(+), 16 deletions(-) diff --git a/extlinux/main.c b/extlinux/main.c index 55a1495..7bb7443 100644 --- a/extlinux/main.c +++ b/extlinux/main.c @@ -1044,12 +1044,12 @@ err: } #ifndef __KLIBC__ -static const char *find_device(const char *mtab_file, dev_t dev) +static char *find_device(const char *mtab_file, dev_t dev) { struct mntent *mnt; struct stat dst; FILE *mtab; - const char *devname = NULL; + char *devname = NULL; bool done; mtab = setmntent(mtab_file, "r"); @@ -1131,7 +1131,7 @@ static const char...
2013 Apr 11
2
[PATCH 1/2] btrfs-progs: replace blkid_probe_get_wholedisk_devno
...ff --git a/mkfs.c b/mkfs.c index c8cb395..7df78fc 100644 --- a/mkfs.c +++ b/mkfs.c @@ -1215,9 +1215,8 @@ static int check_leaf_or_node_size(u32 size, u32 sectorsize) static int is_ssd(const char *file) { - char *devname; blkid_probe probe; - char *dev; + char dev[32]; char path[PATH_MAX]; dev_t disk; int fd; @@ -1227,24 +1226,16 @@ static int is_ssd(const char *file) if (!probe) return 0; - /* - * We want to use blkid_devno_to_wholedisk() but it''s broken for some - * reason on F17 at least so we''ll do this trickery - */ - disk = blkid_probe_get_wholedisk_devn...
2011 Aug 07
2
[PATCH] kinit minor checkpatch cleanup
...6 +++--- usr/kinit/nfsroot.c | 5 ++--- 5 files changed, 21 insertions(+), 25 deletions(-) diff --git a/usr/kinit/initrd.c b/usr/kinit/initrd.c index 1c3ec56..d2efc59 100644 --- a/usr/kinit/initrd.c +++ b/usr/kinit/initrd.c @@ -122,7 +122,8 @@ static int run_linuxrc(int argc, char *argv[], dev_t root_dev) _exit(255); } else if (pid > 0) { dprintf("kinit: Waiting for linuxrc to complete...\n"); - while (waitpid(pid, NULL, 0) != pid) ; + while (waitpid(pid, NULL, 0) != pid) + ; dprintf("kinit: linuxrc done\n"); } else { return -errno; diff --git a/u...
2017 Feb 22
4
[PATCH 0/3] v2v: vCenter: Remove proxy environment variables
Fix for: https://bugzilla.redhat.com/show_bug.cgi?id=1354507 Main explanation is in patch #3. Rich.
2006 Mar 20
1
do_mounts new sysfs support?
...l fstype and load the proper fs module before passing control. Again, thanks for klibc! --- usr/kinit/do_mounts.c 2006-03-13 01:14:12.000000000 -0600 +++ usr/kinit/do_mounts.c 2006-03-20 11:32:12.000000000 -0600 @@ -43,6 +43,13 @@ goto fail; buf[len - 1] = '\0'; res = (dev_t) strtoul(buf, &s, 16); + if (*s == ':') + { + dev_t maj, min; + maj = (int)res; + min = (dev_t) strtoul(s+1, &s, 16); + res = (dev_t) (maj<<8|min); + } if (*s) goto fail; @@ -152,6 +161,7 @@ return res; fail: + fprint...
2013 Nov 12
0
[klibc:master] syscalls: Fixup some of the -at syscall declarations
.../stat.h index 4850429..c4b378e 100644 --- a/usr/include/sys/stat.h +++ b/usr/include/sys/stat.h @@ -69,8 +69,10 @@ __extern int fstatat(int, const char *, struct stat *, int); __extern int lstat(const char *, struct stat *); __extern mode_t umask(mode_t); __extern int mknod(const char *, mode_t, dev_t); -__extern int mknodat(int, const char *, const char *, mode_t, dev_t); +__extern int mknodat(int, const char *, mode_t, dev_t); __extern int mkfifo(const char *, mode_t); +__extern int utimensat(int, const char *, const struct timespec *, int); +__extern int fchmodat(int, const char *, mode_t, i...
2015 Sep 11
0
[PATCH v2 1/1] extlinux: fix memory leak
...+), 14 deletions(-) > > diff --git a/extlinux/main.c b/extlinux/main.c > index 55a1495..b7cdf92 100644 > --- a/extlinux/main.c > +++ b/extlinux/main.c > @@ -1044,12 +1044,12 @@ err: > } > > #ifndef __KLIBC__ > -static const char *find_device(const char *mtab_file, dev_t dev) > +static char *find_device(const char *mtab_file, dev_t dev) > { > struct mntent *mnt; > struct stat dst; > FILE *mtab; > - const char *devname = NULL; > + char *devname = NULL; > bool done; > > mtab = setmntent(mtab_file, "...
2015 Sep 09
0
[PATCH v1 1/1] extlinux: fix memory leak
...; struct btrfs_ioctl_search_header *sh; int ret, i; - int fd; + int fd = -1; struct btrfs_root_ref *ref; struct btrfs_dir_item *dir_item; unsigned long off = 0; @@ -1044,12 +1044,12 @@ err: } #ifndef __KLIBC__ -static const char *find_device(const char *mtab_file, dev_t dev) +static char *find_device(const char *mtab_file, dev_t dev) { struct mntent *mnt; struct stat dst; FILE *mtab; - const char *devname = NULL; + char *devname = NULL; bool done; mtab = setmntent(mtab_file, "r"); @@ -1131,7 +1131,7 @@ static const char...
2012 May 24
1
[klibc:master] sys/sysmacros.h: match glibc and define non-__ macros
...ter Anvin <hpa at zytor.com> AuthorDate: Thu, 24 May 2012 07:43:31 -0700 Committer: H. Peter Anvin <hpa at zytor.com> CommitDate: Thu, 24 May 2012 07:43:31 -0700 [klibc] sys/sysmacros.h: match glibc and define non-__ macros Match glibc and define non-double-underscore versions of the dev_t accessors as macros. Signed-off-by: H. Peter Anvin <hpa at zytor.com> --- usr/include/sys/sysmacros.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/usr/include/sys/sysmacros.h b/usr/include/sys/sysmacros.h index c344339..4f0b12a 100644 --- a/usr/include/sys/sy...
2006 Apr 13
1
device-mapper multipath
...lacklisted ram11 blacklisted ram12 blacklisted ram13 blacklisted ram14 blacklisted ram15 blacklisted ram1 blacklisted ram2 blacklisted ram3 blacklisted ram4 blacklisted ram5 blacklisted ram6 blacklisted ram7 blacklisted ram8 blacklisted ram9 blacklisted ===== path info sda (mask 0x1f) ===== bus = 1 dev_t = 8:0 size = 3503903232 vendor = Promise product = VTrak M300i rev = 2200 h:b:t:l = 0:0:0:0 tgt_node_name = serial = 000000000000000000000000D46D0E4B486DC672 path checker = readsector0 (internal default) state = 2 getprio = /bin/true (internal default) prio = 0 uid = 222ea000155eadda4 (cache) =====...
2007 Aug 23
1
EOF broken on zvol raw devices?
...#39;'s "zv_volsize". I think we need something like this: diff -r 26be3efbd346 usr/src/uts/common/fs/zfs/zvol.c --- a/usr/src/uts/common/fs/zfs/zvol.c Thu Aug 23 00:53:10 2007 -0700 +++ b/usr/src/uts/common/fs/zfs/zvol.c Thu Aug 23 16:30:41 2007 +0200 @@ -904,6 +904,7 @@ zvol_read(dev_t dev, uio_t *uio, cred_t { minor_t minor = getminor(dev); zvol_state_t *zv; + uint64_t volsize; rl_t *rl; int error = 0; @@ -914,10 +915,16 @@ zvol_read(dev_t dev, uio_t *uio, cred_t if (zv == NULL) return (ENXIO); + volsize...
2007 Jul 24
1
Custom kinit to find device by "label"
...Gentoo, and it works fine. Because of the crash issue, I want to rewrite the program by modifying kinit and using C. This is where I need help. Here is the main function that needs to be translated into C: function FindRootDeviceByLabel(const RootFSLabel: string): boolean; const DEV_MAJOR: dev_t = 8; DEV_MODE: mode_t = S_IFBLK or &0660; var ActualFSLabel: string; FileDescriptor: cint; ReadBytes: TsSize; DeviceFound: boolean; dev_minor: dev_t; begin Result := False; SetLength(ActualFSLabel, Length(RootFSLabel)); //loop through all devices that might have our root file...
2019 Oct 31
3
[PATCH 1/2] loop: fix loop_info struct
...dkov <xnox at ubuntu.com> --- usr/utils/loop.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/utils/loop.h b/usr/utils/loop.h index 9abc2874..667f7dc0 100644 --- a/usr/utils/loop.h +++ b/usr/utils/loop.h @@ -15,9 +15,9 @@ struct loop_info { int lo_number; - dev_t lo_device; + __kernel_old_dev_t lo_device; unsigned long lo_inode; - dev_t lo_rdevice; + __kernel_old_dev_t lo_rdevice; int lo_offset; int lo_encrypt_type; int lo_encrypt_key_size; -- 2.20.1
2010 Mar 02
17
[PATCH 00/16] External building, update for 2.6.33 and multiple root devices.
...roduction environment, we are used to specifying the following non-standard cmdline option: "root=/dev/hda1,/dev/sda1". We currently maintain internal patches to support this, but would like to move this logic down into kinit. To implement this functionality, we introduce a new internal dev_t called 'Root_MULTI'. This device type is used to signify that there are multiple root devices listed. As for compability with legacy boots using linuxrc in an initrd, we simply disallow using multiple roots and a linuxrc (it is unclear to me what the proper behaviour here should be). Pa...