search for: namep

Displaying 17 results from an estimated 17 matches for "namep".

Did you mean: name
2015 Nov 13
4
[PATCH] extlinux: code cleanup and simplification
...dv_offset(int devfd, off_t offset) +{ + const size_t adv_size = 2 * ADV_SIZE; + + if (xpread(devfd, syslinux_adv, adv_size, offset) != adv_size) + return -1; + + return syslinux_validate_adv(syslinux_adv) ? 1 : 0; +} + +static int ext_read_adv(const char *path, int devfd, const char **namep) +{ + int err; + const char *name; + + if (fs_type == BTRFS) { + /* btrfs "ldlinux.sys" is in 64k blank area */ + return ext_read_adv_offset(devfd, BTRFS_ADV_OFFSET); + } else if (fs_type == XFS) { + /* XFS "ldlinux.sys" is in the first 2048 bytes of the primary AG *...
2015 Nov 18
0
[PATCH] extlinux: code cleanup and simplification
...const size_t adv_size = 2 * ADV_SIZE; > + > + if (xpread(devfd, syslinux_adv, adv_size, offset) != adv_size) > + return -1; > + > + return syslinux_validate_adv(syslinux_adv) ? 1 : 0; > +} > + > +static int ext_read_adv(const char *path, int devfd, const char **namep) > +{ > + int err; > + const char *name; > + > + if (fs_type == BTRFS) { > + /* btrfs "ldlinux.sys" is in 64k blank area */ > + return ext_read_adv_offset(devfd, BTRFS_ADV_OFFSET); > + } else if (fs_type == XFS) { > + /* XFS "ldlinux.sys" i...
2015 Nov 26
0
[syslinux:master] extlinux: code cleanup and simplification
...dv_offset(int devfd, off_t offset) +{ + const size_t adv_size = 2 * ADV_SIZE; + + if (xpread(devfd, syslinux_adv, adv_size, offset) != adv_size) + return -1; + + return syslinux_validate_adv(syslinux_adv) ? 1 : 0; +} + +static int ext_read_adv(const char *path, int devfd, const char **namep) +{ + int err; + const char *name; + + if (fs_type == BTRFS) { + /* btrfs "ldlinux.sys" is in 64k blank area */ + return ext_read_adv_offset(devfd, BTRFS_ADV_OFFSET); + } else if (fs_type == XFS) { + /* XFS "ldlinux.sys" is in the first 2048 bytes of the primary AG *...
2015 Nov 18
1
[PATCH] extlinux: code cleanup and simplification
...? const size_t adv_size = 2 * ADV_SIZE; > + > +? ? if (xpread(devfd, syslinux_adv, adv_size, offset) != adv_size) > +? ? ? return -1; > + > +? ? return syslinux_validate_adv(syslinux_adv) ? 1 : 0; > +} > + > +static int ext_read_adv(const char *path, int devfd, const char **namep) > +{ > +? ? int err; > +? ? const char *name; > + > +? ? if (fs_type == BTRFS) { > +??? /* btrfs "ldlinux.sys" is in 64k blank area */ > +??? return ext_read_adv_offset(devfd, BTRFS_ADV_OFFSET); > +? ? } else if (fs_type == XFS) { > +??? /* XFS "ldlinux.sy...
2008 Nov 07
0
[PATCH][cfq-cgroups] Introduce ioprio class for top layer.
...- err = strict_strtoul(valbuf, 10, &new_prio); - if ((err) || ((new_prio < 0) || (new_prio > CFQ_CGROUP_MAX_IOPRIO))) { - ret = -EINVAL; - goto free_path; - } - - sn = strlen(pathbuf); - - p = rb_first(&cfqc->sibling_tree); - while (p) { - struct cfq_data *__cfqd; - const char *namep; - - __cfqd = rb_entry(p, struct cfq_data, group_node); - namep = __cfqd->cfqdd->queue->kobj.parent->name; - - if (sn == 0) { - __cfqd->ioprio = new_prio; - } else if ((sn == strlen(namep)) && - (strncmp(pathbuf, namep, sn) == 0)) { - __cfqd->ioprio = new_prio;...
2008 Nov 07
0
[PATCH][cfq-cgroups] Introduce ioprio class for top layer.
...- err = strict_strtoul(valbuf, 10, &new_prio); - if ((err) || ((new_prio < 0) || (new_prio > CFQ_CGROUP_MAX_IOPRIO))) { - ret = -EINVAL; - goto free_path; - } - - sn = strlen(pathbuf); - - p = rb_first(&cfqc->sibling_tree); - while (p) { - struct cfq_data *__cfqd; - const char *namep; - - __cfqd = rb_entry(p, struct cfq_data, group_node); - namep = __cfqd->cfqdd->queue->kobj.parent->name; - - if (sn == 0) { - __cfqd->ioprio = new_prio; - } else if ((sn == strlen(namep)) && - (strncmp(pathbuf, namep, sn) == 0)) { - __cfqd->ioprio = new_prio;...
2013 May 30
0
Possible bug in ext_read_adv
Hi, looking at ext_read_adv code (extlinux/main.c) static int ext_read_adv(const char *path, int devfd, const char **namep) { int err; const char *name; if (fs_type == BTRFS) { /* btrfs "ldlinux.sys" is in 64k blank area */ return btrfs_read_adv(devfd); } else if (fs_type == XFS) { /* XFS "ldlinux.sys" is in the first 2048 bytes of the primary AG */ r...
2015 Nov 12
1
[PATCH] Unification of ext_(write/read)_adv
...inux_adv, adv_size, boot_image_len) != adv_size) - return -1; + if (xpread(devfd, syslinux_adv, adv_size, offset) != adv_size) + return -1; return syslinux_validate_adv(syslinux_adv) ? 1 : 0; } @@ -1441,10 +1432,10 @@ static int ext_read_adv(const char *path, int devfd, const char **namep) if (fs_type == BTRFS) { /* btrfs "ldlinux.sys" is in 64k blank area */ - return btrfs_read_adv(devfd); + return ext_read_adv_offset(devfd, BTRFS_ADV_OFFSET); } else if (fs_type == XFS) { /* XFS "ldlinux.sys" is in the first 2048 bytes of the primary AG */ - retu...
2013 Oct 07
4
Feature request: FQDN Host match
Hello! I'm hoping that Gmail won't HTML format this mail so that I'll get flamed :) Anyway, my question relates to ssh_config. The problem I find is that the Host pattern is only applied to the argument given on the command line, as outlined in the man page: "The host is the hostname argument given on the command line (i.e. the name is not converted to a canonicalized host name
2005 Aug 26
0
Patch for UnixWare 7
...ot;) == 0) + return (1); + + salt = (pw_password[0] && pw_password[1]) ? pw_password : "xx"; + if (nischeck(pw->pw_name)) + return(strcmp(crypt(password, salt), pw_password) == 0); + else + return(strcmp(bigcrypt(password, salt), pw_password) == 0); +} + +int +nischeck(char *namep) +{ + char password_file[] = "/etc/passwd"; + FILE *fd; + struct passwd *ent = NULL; + + if ((fd = fopen (password_file, "r")) == NULL) { + /* + * If the passwd file has dissapeared we are in a bad state. + * However, returning 0 will send us back throught the + * authent...
2017 Nov 09
10
Experiment on how to improve our temporary file handing.
Currently a power failure or other hard crash can cause lld leave a temporary file around. The same is true for other llvm tools. As an example, put a breakpoint in Writer.cpp:236 ("writeBuildId()") and restart the run a few times. You will get t.tmp43a735a t.tmp4deeabb t.tmp9bacdd3 t.tmpe4115c4 t.tmpeb01fff The same would happen if there was a fatal error between the
2013 Jul 22
1
[PATCH 1/1 v2] Add UFS1/2 support to Extlinux installer.
...quot;%s: not a fat, ntfs, ext2/3/4, btrfs or xfs filesystem: %s\n", + "%s: not a fat, ntfs, ext2/3/4, btrfs, xfs or" + "ufs1/2 filesystem: %s\n", program, path); return -1; } @@ -1382,8 +1422,8 @@ static int ext_read_adv(const char *path, int devfd, const char **namep) int err; const char *name; - if (fs_type == BTRFS) { - /* btrfs "ldlinux.sys" is in 64k blank area */ + if (fs_type == BTRFS || fs_type == UFS2) { + /* btrfs/ufs2 "ldlinux.sys" is in 64k blank area */ return btrfs_read_adv(devfd); } else if (fs_type ==...
2012 Mar 19
24
[PATCHv2 00/11] arm: pass a device tree to dom0
This series of patches makes Xen pass a (somewhat) valid device tree to dom0. The device tree for dom0 is the same as the one supplied to Xen except the memory and chosen nodes are adjusted appropriately. We don''t yet make use of the device tree to map MMIO regions or setup interrupts for the guest and we still include the UART used for Xen''s console. Note that loading Linux
2013 Jul 12
2
[PATCH 001/001] Add UFS1/2 support to Extlinux installer.
...quot;%s: not a fat, ntfs, ext2/3/4, btrfs or xfs filesystem: %s\n", + "%s: not a fat, ntfs, ext2/3/4, btrfs, xfs or" + "ufs1/2 filesystem: %s\n", program, path); return -1; } @@ -1382,8 +1418,8 @@ static int ext_read_adv(const char *path, int devfd, const char **namep) int err; const char *name; - if (fs_type == BTRFS) { - /* btrfs "ldlinux.sys" is in 64k blank area */ + if (fs_type == BTRFS || fs_type == UFS2) { + /* btrfs/ufs2 "ldlinux.sys" is in 64k blank area */ return btrfs_read_adv(devfd); } else if (fs_type ==...
2008 Nov 12
15
[PATCH][RFC][12+2][v3] A expanded CFQ scheduler for cgroups
This patchset expands traditional CFQ scheduler in order to support cgroups, and improves old version. Improvements are as following. * Modularizing our new CFQ scheduler. The expanded CFQ scheduler is registered/unregistered as new I/O elevator scheduler called "cfq-cgroups". By this, the traditional CFQ scheduler, which does not handle cgroups, and our new CFQ
2008 Nov 12
15
[PATCH][RFC][12+2][v3] A expanded CFQ scheduler for cgroups
This patchset expands traditional CFQ scheduler in order to support cgroups, and improves old version. Improvements are as following. * Modularizing our new CFQ scheduler. The expanded CFQ scheduler is registered/unregistered as new I/O elevator scheduler called "cfq-cgroups". By this, the traditional CFQ scheduler, which does not handle cgroups, and our new CFQ
2012 Sep 03
1
[GIT-PULL] XFS filesystem driver
...ine int xfs_read_adv(int devfd) +{ + const size_t adv_size = 2 * ADV_SIZE; + + if (xpread(devfd, syslinux_adv, adv_size, boot_image_len) != adv_size) + return -1; + + return syslinux_validate_adv(syslinux_adv) ? 1 : 0; +} + static int ext_read_adv(const char *path, int devfd, const char **namep) { int err; @@ -1151,6 +1313,9 @@ static int ext_read_adv(const char *path, int devfd, const char **namep) if (fs_type == BTRFS) { /* btrfs "ldlinux.sys" is in 64k blank area */ return btrfs_read_adv(devfd); + } else if (fs_type == XFS) { + /* XFS "ldlinux.sys"...