search for: s_ifblk

Displaying 20 results from an estimated 30 matches for "s_ifblk".

2006 Apr 16
2
e2fsck dies with signal 11
Hi I got a strange error, happening on two of my ext3 partitions. What can be wrong? And why does e2fsck error out, instead of displaying an error message? Best regards keld fsck /dev/hda6 fsck 1.38 (30-Jun-2005) e2fsck 1.38 (30-Jun-2005) Warning... fsck.ext3 for device /dev/hda6 exited with signal 11. also From my dmesg: <1>general protection fault: e7a8 [#3] Modules linked in:
2012 Sep 05
3
BTRFS thinks device is busy [kernel 3.5.3]
Hi, I''m running OpenSuse 12.2 with kernel 3.5.3 HBA= LSI 1068e using the MPTSAS driver (patched) (https://patchwork.kernel.org/patch/1379181/) SANOS1:/media # uname -a Linux SANOS1 3.5.3 #3 SMP Sun Sep 2 18:44:37 CEST 2012 x86_64 x86_64 x86_64 GNU/Linux I''ve tried to simulate a disk replacement but it seems that now /dev/sdg is stuck in the btrfs pool (RAID10) SANOS1:/media #
2003 May 01
1
Disc quotas bug
...pr 30 10:21:57 2003 @@ -913,22 +913,22 @@ /* find the block device file */ #ifdef HPUX /* Need to set the cache flag to 1 for HPUX. Seems * to have a significant performance boost when * lstat calls on /dev access this function. */ if ((sys_stat(path, &S)<0) || (devnm(S_IFBLK, S.st_dev, dev_disk, 256, 1)<0)) #else if ((sys_stat(path, &S)<0) || (devnm(S_IFBLK, S.st_dev, dev_disk, 256, 0)<0)) - return (False); #endif /* ifdef HPUX */ + return (False); #endif /* !defined(__FreeBSD__) && !defined(AIX) && !defined(__OpenBSD__) */ eu...
2003 Nov 30
0
FreeBSD mknod refuses to create pipes and fifos
...t: Copy a fifo and a socket with rsync Example: mkfifo /tmp/fifo rsync -avP /var/run/log /tmp/fifo /tmp/output/ >Fix: Suggested patches to kernel: --- sys/kern/vfs_syscalls.c.orig Sun Nov 30 00:59:29 2003 +++ sys/kern/vfs_syscalls.c Sun Nov 30 01:25:35 2003 @@ -1189,6 +1189,10 @@ case S_IFBLK: error = suser(p); break; + case S_IFIFO: + case S_IFSOCK: + error = 0; + break; default: error = suser_xxx(0, p, PRISON_ROOT); break; @@ -1217,6 +1221,12 @@ break; case S_IFBLK: vattr.va_type = VBLK; + break; + case S_IFSOCK: + vattr.va_type = VSOCK; + break; + c...
2002 Aug 10
3
ext3_readdir error
...R) = 3 close(3) = 0 gettimeofday({1028968512, 177653}, NULL) = 0 getrusage(RUSAGE_SELF, {ru_utime={0, 0}, ru_stime={0, 0}, ...}) = 0 write(2, "e2fsck 1.26 (3-Feb-2002)\n", 25e2fsck 1.26 (3-Feb-2002) ) = 25 stat64("/dev/sda1", {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 1), ...}) = 0 open("/proc/swaps", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40000000 read(3, "Filename\t\t\tType\t\tSize\tUsed\tPrior"...
2004 Jun 29
1
seg fault using ocfstool
...urns 1 row: [root@chdb100 root]# raw -qa /dev/raw/raw1: bound to major 8, minor 32 i can unbind it with raw /dev/raw/raw1 0 0 but next execution of ocfstool fails with the same error. Here excerpt of strace: 2705 munmap(0x4001d000, 4096) = 0 2705 stat64("/dev/sdc", {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 32), ...}) = 0 2705 open("/dev/rawctl", O_RDWR) = 4 2705 ioctl(4, RAW_SETBIND, 0xbffecb00) = 0 2705 close(4) = 0 2705 open("/dev/raw/raw1", O_RDONLY) = 4 2705 brk(0x80b8000) = 0x80b8000 2705 _lls...
2007 Jul 24
1
Custom kinit to find device by "label"
...ecause 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 filesystem sda2 to sdp2 dev_minor :=...
2013 Jul 09
2
[PATCH 2/2] LXC: hostdev: parent directroy for hostdev atomically
...dev); + goto cleanup; + } + + if (lxcContainerSetupHostdevCapsMakePath(dev) < 0) { + virReportError(errno, + _("Failed to create directory for device %s"), + dev); goto cleanup; } mode = 0700 | S_IFBLK; - VIR_DEBUG("Creating dev %s (%d,%d)", - def->source.caps.u.storage.block, + VIR_DEBUG("Creating dev %s (%d,%d)", dev, major(sb.st_rdev), minor(sb.st_rdev)); - if (mknod(def->source.caps.u.storage.block, mode, sb.st_rdev) < 0) { +...
2015 Jan 15
1
[PATCH] mknod: filter modes in mkfifo, mknod_b, mknod_c (RHBZ#1182463).
...od (int mode, int devmajor, int devminor, const char *path) int do_mkfifo (int mode, const char *path) { + CHECK_MODE; + return do_mknod (mode | S_IFIFO, 0, 0, path); } int do_mknod_b (int mode, int devmajor, int devminor, const char *path) { + CHECK_MODE; + return do_mknod (mode | S_IFBLK, devmajor, devminor, path); } int do_mknod_c (int mode, int devmajor, int devminor, const char *path) { + CHECK_MODE; + return do_mknod (mode | S_IFCHR, devmajor, devminor, path); } diff --git a/generator/actions.ml b/generator/actions.ml index 96a9dd6..c48ad1a 100644 --- a/generator/a...
2011 Jul 07
5
[PATCH 0/5] checkpatch cleanups
It seems checkpatch errors krept in, this is a first go. Next run will go into usr/kinit directory. No code changes, just codingstyle fixes (verified with size(3)). maximilian attems (5): [klibc] sleep: have argument on next line [klibc] readklink: remove unneeded braces [klibc] mount: whitespace policy [klibc] ls: fix various checkpatch complaints [klibc] tests: checkpatch fixlets
2003 Jan 07
1
smbd using alot of cpu on HP-UX 11.11
...ce/smbd/quotas.c # ################################### 912a913,919 > #ifdef HPUX > /* Need to set the cache flag to 1 for HPUX. Seems > * to have a significant performance boost when > * lstat calls on /dev access this function. > */ > (devnm(S_IFBLK, S.st_dev, dev_disk, 256, 1)<0)) return (False); > #else 913a921 > #endif Thanks, Ranjit @ HP CIFS Team
2004 Sep 16
3
[PATCH] gen_init_cpio processes file from a file list
The patch makes gen_init_cpio generate the initramfs_data.cpio from a file which contains a list of entries: file, dir, nod. I swapped the order of filename/location for the file arguments so that it would be more uniform with the dir and nod tyes. [thayne@torch linux-2.6.8]$ usr/gen_init_cpio --help ERROR: unable to open '--help': No such file or directory Usage:
2013 Jul 08
4
Re: Permission problem with /dev/net/tun
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Daniel, On 07/08/2013 11:41 AM, Daniel P. Berrange wrote: >> the symptom my libvirt LXC container suffers from is: >> root@depot:/dev/net# ls -la total 0 drwxr-xr-x 2 root root 40 >> Jun 29 16:26 . drwxr-xr-x 5 root root 480 Jun 29 16:26 .. >> root@depot:/dev/net# mknod tun c 10 200 mknod: `tun': Operation >>
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
2009 May 29
1
[PATCH v2] klibc-utils: add simple ls
...+ } + else { + if ((bytes = snprintf(NULL, 0, "%ju", (uintmax_t) st->st_size)) > max_size) + max_size = bytes; + } + return; +} + +static void do_stat(const struct stat *st, const char *path) +{ + char *fmt, *link_name; + int rc; + + switch (st->st_mode & S_IFMT) { + case S_IFBLK: putchar('b'); break; + case S_IFCHR: putchar('c'); break; + case S_IFDIR: putchar('d'); break; + case S_IFIFO: putchar('p'); break; + case S_IFLNK: putchar('l'); break; + case S_IFSOCK: putchar('s'); break; + case S_IFREG: putchar('-&...
2014 Apr 16
2
syslinux fails to make a bootable USB stick in Slackware64-14.1 installer
...arch_prctl(ARCH_SET_FS, 0x7f5949c38740) = 0 mprotect(0x7f5949a10000, 16384, PROT_READ) = 0 mprotect(0x7f5949c3e000, 4096, PROT_READ) = 0 munmap(0x7f5949c3b000, 5486) = 0 getpid() = 6081 open("/dev/sdb", O_RDWR) = 3 fstat(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 16), ...}) = 0 pread(3, "\353<\220mkfs.fat\0\2\10\1\0\2\0\2\352{\370\20\0>\0\4\0\0\0\0\0"..., 512, 0) = 512 brk(0) = 0xfb1000 brk(0xfd2000) = 0xfd2000 open("/tmp//syslinux-mtools-bR8yL6", O...
2009 May 28
1
[PATCH] klibc-utils: add minils
...= snprintf(NULL, 0, "%ju", (uintmax_t) st->st_size)) > max_size) + max_size = bytes; + } + return; +} + +static void do_stat(const struct stat *st, const char *path) +{ + size_t max_siz = 128; + size_t sz; + char *fmt, *link_name; + + switch (st->st_mode & S_IFMT) { + case S_IFBLK: printf("b"); break; + case S_IFCHR: printf("c"); break; + case S_IFDIR: printf("d"); break; + case S_IFIFO: printf("p"); break; + case S_IFLNK: printf("l"); break; + case S_IFSOCK: printf("s"); break; + case S_IFREG: printf(&q...
2017 Apr 25
1
[PATCH supermin v2] init: Support root=UUID=... to specify the appliance disk by volume UUID.
v1 -> v2: - I fixed the end condition of the loop in parse_root_uuid. - Retested. Didn't change the busy wait loop into a function or macro, as per discussion on IRC. Rich.
2017 Apr 19
1
[PATCH supermin] init: Support root=UUID=... to specify the appliance disk by volume UUID.
...o cont; + + asprintf (&path, "/sys/block/%s/dev", d->d_name); + + if (parse_dev_file (path, major, minor) == -1) + goto cont; + + /* We have to make a dummy inode so we can open the device. */ + unlink ("/dev/disk"); + if (mknod ("/dev/disk", S_IFBLK|0700, makedev (*major, *minor)) == -1) { + perror ("mknod"); + goto cont; + } + + fd = open ("/dev/disk", O_RDONLY); + if (fd == -1) { + perror ("open"); + goto cont; + } + + if (pread (fd, uuid, sizeof uuid, 0x468) != sizeof uuid) {...
2012 Mar 08
3
[PATCH 0/3] kinit: Allow mount options
This patch series allows user-specified mount commands to be sent in via kernel command line ("kinit_mount=...") or via an embedded /etc/fstab file. The first patch is a cleanup of a patch sent last November by San Mehat (http://web.archiveorange.com/archive/v/EazJNBMORV2U7E0coh5h); the next two are small improvements or bug fixes.