search for: dev_minor

Displaying 16 results from an estimated 16 matches for "dev_minor".

2007 Jul 24
1
Custom kinit to find device by "label"
...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 filesystem sda2 to sdp2 dev_minor := 2; while dev_minor < 243 do begin // last one is 242 if mknod(DEVICENAME, DEV_MODE, (DEV_MAJOR shl 8) or dev_minor...
2006 May 08
1
create_dev and raid
...be overridden. --- do_mounts_md.c 2006-05-08 01:51:02.000000000 -0500 +++ do_mounts_md.old 2006-05-08 02:07:35.000000000 -0500 @@ -222,7 +222,6 @@ char *devname; mdu_disk_info_t dinfo; char name[16]; + struct stat st; dev_minor = md_setup_args[ent].minor; partitioned = md_setup_args[ent].partitioned; @@ -231,8 +230,6 @@ snprintf(name, sizeof name, "/dev/md%s%d", partitioned?"_d":"", dev_minor); + if (!stat(name,&st)) continu...
2018 Jan 15
0
Rsync 3.1.3pre1 released
...uot;minor" is undefined write_int(f, minor(rdev)); ^ "/home/git/rsync/flist.c", line 605: error(114): identifier "minor" is undefined rdev = MAKEDEV(DEV_MAJOR(devp), DEV_MINOR(devp)); ^ "/home/git/rsync/flist.c", line 770: error(114): identifier "makedev" is undefined rdev = MAKEDEV(rdev_major, rdev_minor); ^ "/home/git/rsync/flist.c", line 845: err...
2018 Jan 15
1
[Bug 13224] New: New file handling causes compile issues for NonStop port.
...uot;minor" is undefined write_int(f, minor(rdev)); ^ "/home/git/rsync/flist.c", line 605: error(114): identifier "minor" is undefined rdev = MAKEDEV(DEV_MAJOR(devp), DEV_MINOR(devp)); ^ "/home/git/rsync/flist.c", line 770: error(114): identifier "makedev" is undefined rdev = MAKEDEV(rdev_major, rdev_minor); ^ "/home/git/rsync/flist.c", line 845: err...
2004 Jun 02
0
[PATCH] kill 2.4 dev_t vs kdev_t crap
...tribs == OCFS_ATTRIB_CHAR) inode->i_mode |= S_IFCHR; else if (fe->attribs == OCFS_ATTRIB_BLOCK) @@ -1892,18 +1884,8 @@ inode->i_mode |= S_IFSOCK; inode->i_rdev = OCFS_NODEV; -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) - dev = MKDEV (fe->dev_major, fe->dev_minor); -#else - kdev = MKDEV (fe->dev_major, fe->dev_minor); -#endif - -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) - init_special_inode (inode, inode->i_mode, dev); -#else - init_special_inode (inode, inode->i_mode, - kdev_t_to_nr(kdev)); -#endif + init_special_inode...
2006 May 10
1
[patch] skip existing md devices
.... Signed-off-by: Aaron Griffin <aaron@archlinux.org> --- a/usr/kinit/do_mounts_md.c 2006-05-08 12:59:42.000000000 -0500 +++ b/usr/kinit/do_mounts_md.c 2006-05-10 11:07:08.000000000 -0500 @@ -222,6 +222,7 @@ char *devname; mdu_disk_info_t dinfo; char name[16]; + struct stat st; dev_minor = md_setup_args[ent].minor; partitioned = md_setup_args[ent].partitioned; @@ -230,6 +231,9 @@ snprintf(name, sizeof name, "/dev/md%s%d", partitioned?"_d":"", dev_minor); + if (stat(name,&st) == 0) + continue; + if (partitioned) dev = makedev(m...
2018 Jan 15
4
Rsync 3.1.3pre1 released
I have made rsync 3.1.3pre1 available for testing. This release has a couple security fixes, a few new features, and a smattering of bug fixes. Please test this new release and send email to the rsync mailing list with any questions, comments, or bug reports. To see a summary of the changes since 3.1.2, visit this link: http://rsync.samba.org/ftp/rsync/src-previews/rsync-3.1.3pre1-NEWS You
2018 Jan 15
4
Rsync 3.1.3pre1 released
I have made rsync 3.1.3pre1 available for testing. This release has a couple security fixes, a few new features, and a smattering of bug fixes. Please test this new release and send email to the rsync mailing list with any questions, comments, or bug reports. To see a summary of the changes since 3.1.2, visit this link: http://rsync.samba.org/ftp/rsync/src-previews/rsync-3.1.3pre1-NEWS You
2007 Dec 11
0
[git patch] kinit fix, header install cleanup
...diff --git a/usr/kinit/do_mounts_md.c b/usr/kinit/do_mounts_md.c index e5bbe21..c1c8b01 100644 --- a/usr/kinit/do_mounts_md.c +++ b/usr/kinit/do_mounts_md.c @@ -227,6 +227,7 @@ static void md_setup_drive(void) char *devname; mdu_disk_info_t dinfo; char name[16]; + struct stat st_chk; dev_minor = md_setup_args[ent].minor; partitioned = md_setup_args[ent].partitioned; @@ -235,6 +236,9 @@ static void md_setup_drive(void) snprintf(name, sizeof name, "/dev/md%s%d", partitioned ? "_d" : "", dev_minor); + if (stat(name, &st_chk) == 0) + continue...
2008 Mar 25
2
bunch of small fixes
...diff --git a/usr/kinit/do_mounts_md.c b/usr/kinit/do_mounts_md.c index e5bbe21..c1c8b01 100644 --- a/usr/kinit/do_mounts_md.c +++ b/usr/kinit/do_mounts_md.c @@ -227,6 +227,7 @@ static void md_setup_drive(void) char *devname; mdu_disk_info_t dinfo; char name[16]; + struct stat st_chk; dev_minor = md_setup_args[ent].minor; partitioned = md_setup_args[ent].partitioned; @@ -235,6 +236,9 @@ static void md_setup_drive(void) snprintf(name, sizeof name, "/dev/md%s%d", partitioned ? "_d" : "", dev_minor); + if (stat(name, &st_chk) == 0) + continue...
2012 Jan 10
2
plug leaks in febootstrap
...pyright (C) 2009-2010 Red Hat Inc. + * Copyright (C) 2009-2010, 2012 Red Hat Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -348,6 +348,8 @@ add_link (ext2_ino_t real_ino) p->minor = dev_minor; p->major = dev_major; p->real_ino = real_ino; + p->next = links_head; + links_head = p; } static void -- 1.7.9.rc0.13.gbee72
2008 May 08
1
Patch to not modify files in place unless "--inplace" option specified
...o return_with_success; } #endif @@ -1592,6 +1605,7 @@ if ((am_root && preserve_devices && IS_DEVICE(file->mode)) || (preserve_specials && IS_SPECIAL(file->mode))) { + int iflags = 0; uint32 *devp = F_RDEV_P(file); dev_t rdev = MAKEDEV(DEV_MAJOR(devp), DEV_MINOR(devp)); if (statret == 0) { @@ -1609,7 +1623,15 @@ && BITS_EQUAL(sx.st.st_mode, file->mode, _S_IFMT) && sx.st.st_rdev == rdev) { /* The device or special file is identical. */ - set_file_attrs(fname, file, &sx, NULL, maybe_ATTRS_REPORT); + if (inplace)...
2008 Mar 19
0
[PATCH] Unsnarl missing_below/dry_run logic.
...ontents from this failed directory ***\n"); - missing_below = F_DEPTH(file); - missing_dir = file; + skip_dir = file; file->flags |= FLAG_MISSING_DIR; goto cleanup; } @@ -1474,8 +1476,8 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx, DEV_MINOR(devp) = minor(real_sx.st.st_dev); } } - else if (delete_during && f_out != -1 && !phase && dry_run < 2 - && (file->flags & FLAG_CONTENT_DIR)) + else if (delete_during && f_out != -1 && !phase + && BITS_SETnUNSET(fi...
2011 Mar 07
4
[PATCH 0/3] ocfs2: Add batched discard support
Hi all, This patch set adds batched discard support to ocfs2. Please check. Thanks. Regards, Tao
2011 Jul 08
4
[PATCH 0/4] usr/kinit checkpatch
Various coding style fixes checkpatch warns about. The goal is not to be 100% checkpatch compliant, but to have more consistent coding style. As this is a trivial patch serie, will land in 24 hours in klibc git, unless of course ml review hits a bugger. Checked with size(3) that the generated kinit, fstype, ipconfig and nfsmount are the same. maximilian attems (4): [klibc] ipconfig: reduce
2014 Feb 25
2
[PATCH supermin v4] Supermin 5 rewrite.
...to some extent - * from init/initramfs.c in the kernel. - */ -#define N_ALIGN(len) ((((len) + 1) & ~3) + 2) - -static unsigned long cpio_ino, nlink; -static mode_t mode; -static unsigned long body_len, name_len; -static uid_t uid; -static gid_t gid; -static time_t mtime; -static int dev_major, dev_minor, rdev_major, rdev_minor; -static loff_t curr, next_header; -#ifdef HAVE_ZLIB -static gzFile gzfp; -#else -static FILE *fp; -#endif -static const char *input_file; - -static int xread (void *buffer, size_t size); -static void parse_header (char *s); -static int parse_next_entry (void); -static void...