Displaying 20 results from an estimated 162 matches for "st_ino".
2008 Sep 15
0
Trace log of unify when glusterfs freezes
...dshake
2008-09-15 20:16:53 W [client-protocol.c:280:client_protocol_xfer] brick-ns: attempting to pipeline request type(1) op(34) with handshake
2008-09-15 20:16:53 T [trace.c:535:trace_lookup_cbk] trace: callid: 2 (*this=0x50cd30, op_ret=0, op_errno=2, inode=0x5266a0, *buf=0x526ab0 {st_dev=2049, st_ino=1242079, st_mode=16877, st_nlink=13, st_uid=0, st_gid=0, st_rdev=0, st_size=4096, st_blksize=4096, st_blocks=16})
2008-09-15 20:16:55 T [trace.c:1117:trace_lookup] trace: callid: 3 (*this=0x50cd30, loc=0x526768 {path=/, inode=0x5266a0} )
2008-09-15 20:16:55 T [trace.c:535:trace_lookup_cbk] trace:...
2015 May 18
5
kernel/libc uapi changes for y2038
...h b/include/uapi/asm-generic/stat.h
index 64c32ba7c1a9..f66b28b96c8d 100644
--- a/include/uapi/asm-generic/stat.h
+++ b/include/uapi/asm-generic/stat.h
@@ -22,7 +22,7 @@
#define STAT_HAVE_NSEC 1
-struct stat {
+struct __old_kernel_stat2 {
unsigned long st_dev; /* Device. */
unsigned long st_ino; /* File serial number. */
unsigned int st_mode; /* File mode. */
diff --git a/include/uapi/linux/resource.h b/include/uapi/linux/resource.h
index c4f3ba44db00..9a3876cc4436 100644
--- a/include/uapi/linux/resource.h
+++ b/include/uapi/linux/resource.h
@@ -3,10 +3,16 @@
#include <linux/t...
2014 Jan 15
1
[PATCH] fuse: clear stat structs (RHBZ#660687).
...src/fuse.c
@@ -175,6 +175,7 @@ mount_local_readdir (const char *path, void *buf, fuse_fill_dir_t filler,
if (ss->val[i].ino >= 0) {
struct stat statbuf;
+ memset (&statbuf, 0, sizeof statbuf);
statbuf.st_dev = ss->val[i].dev;
statbuf.st_ino = ss->val[i].ino;
statbuf.st_mode = ss->val[i].mode;
@@ -255,6 +256,7 @@ mount_local_getattr (const char *path, struct stat *statbuf)
if (r == NULL)
RETURN_ERRNO;
+ memset (statbuf, 0, sizeof *statbuf);
statbuf->st_dev = r->dev;
statbuf->st_ino = r->ino...
2014 Sep 22
2
[PATCH] New APIs: Implement stat calls that return nanosecond timestamps (RHBZ#1144891).
...ime_nsec);
}
if (enable_extra_stats) {
- output_int64_dev (stat->dev);
- output_int64 (stat->ino);
- output_int64 (stat->nlink);
- output_int64_dev (stat->rdev);
- output_int64 (stat->blocks);
+ output_int64_dev (stat->st_dev);
+ output_int64 (stat->st_ino);
+ output_int64 (stat->st_nlink);
+ output_int64_dev (stat->st_rdev);
+ output_int64 (stat->st_blocks);
}
/* Disabled for now -- user would definitely want these to be interpreted.
@@ -524,7 +524,7 @@ show_file (const char *dir, const char *name,
path = full_path (di...
2010 Jul 19
1
Oplocks
...Is this a bug? Why it does not happen always but only sometimes? I have
strace logs showing:
Wrong case:
8711 14:57:50.765677 open("Y_odloz/D8/D8_03_Ivet_98/06aa6459-a011-40f8-bfb1-25d15e7ada61", O_RDWR|O_CREAT|O_EXCL, 0744) = 121
8711 14:57:50.766030 fstat(121, {st_dev=makedev(0, 23), st_ino=3079419, st_mode=S_IFREG|0744, st_nlink=1, st_uid=40022, st_gid=400, st_blksize=262144, st_blocks=0, st_size=0, st_atime=2010/07/13-14:57:50, st_mtime=2010/07/13-14:57:50, st_ctime=2010/07/13-14:57:50}) = 0
8711 14:57:50.766129 fcntl(12, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=8260, len=1}...
2011 Jan 16
0
fs quota backend bug
...versation captured with wireshark:
getquotaroot "INBOX"
QUOTAROOT "INBOX"
Ok Getquotaroot completed
Part of strace:
read(0, "357 getquotaroot \"INBOX\"\r\n", 1259) = 26
stat("/home/vmail/ofight.org/team at ofight.org/tmp", {st_dev=makedev(253,
2), st_ino=475158, st_mode=S_IFDIR|0700, st_nlink=2, st_uid=1042,
st_gid=102, st_b
lksize=4096, st_blocks=0, st_size=1, st_atime=2011/01/16-10:07:59,
st_mtime=2011/01/16-10:07:59, st_ctime=2011/01/16-10:07:59}) = 0
stat("/home/vmail/ofight.org/team at ofight.org", {st_dev=makedev(253, 2),
st_ino=475...
2005 Mar 05
2
dovecot-pgsql.conf can't find in chroot? (debian)
...TFD, FD_CLOEXEC <unfinished ...>
[pid 18211] <... open resumed> ) = 5
[pid 18213] <... fcntl64 resumed> ) = 0
[pid 18211] fstat64(5, <unfinished ...>
[pid 18209] <... fcntl64 resumed> ) = 0
[pid 18211] <... fstat64 resumed> {st_dev=makedev(22, 1), st_ino=917830,
st_mode=S_IFREG|060
0, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=16,
st_size=4264, st_atime=200
5/03/04-22:09:07, st_mtime=2005/03/04-22:09:06,
st_ctime=2005/03/04-22:09:06}) = 0
[pid 18211] old_mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =...
2003 Mar 12
1
patch: typo's and gcc warnings
...c-2.5.6/receiver.c rsync-2.5.6/receiver.c
--- orig/rsync-2.5.6/receiver.c 2003-01-21 00:32:17.000000000 +0100
+++ rsync-2.5.6/receiver.c 2003-03-10 16:28:10.000000000 +0100
@@ -55,8 +55,8 @@
if (link_stat(f_name(flist->files[j]), &st)) return 1;
for (i=0;i<dlist_len;i++) {
- if (st.st_ino == delete_list[i].inode &&
- st.st_dev == delete_list[i].dev)
+ if (st.st_ino == (unsigned long)delete_list[i].inode &&
+ st.st_dev == (unsigned long)delete_list[i].dev)
return 1;
}
2015 Jan 02
2
(no subject)
Hi, we needed these changes when we had to build a guest image
compatible with a starting guest image but not backed by it in any way?
We needed some tool to check our progress, comparing original and?
rebuilt (from scratch) images, and virt-diff seemed the best option, but?
we had to soften the comparison to reduce the noise in the output. I
added some options to ignore certain informations when
2015 Aug 24
3
[PATCH 1/3] ocaml: dynamically generate the content of Guestfs.Errno
Put in a list the errnos to expose, filling the content of the
Guestfs.Errno submodule from that.
Also, generate a separate guestfs-c-errnos.c with the implementations of
the functions returning the errno codes.
Only code motion and refactoring, no actual changes on the content of
the ocaml Guestfs module.
---
.gitignore | 1 +
generator/main.ml | 1 +
generator/ocaml.ml | 77
2005 May 16
2
Assertion Failure in mbox-sync.c
...0x80bb9b0) at ioloop.c:218
#15 0x08060587 in main (argc=1, argv=0xbffffa44, envp=0xbffffa4c) at main.c:228
I'm not sure about the variables here, the core file's still here if any
other info will help:
(gdb) p sync_ctx->input->real_stream->statbuf
$5 = {st_dev = 0, __pad1 = 0, __st_ino = 0, st_mode = 0, st_nlink = 0,
st_uid = 0, st_gid = 0, st_rdev = 0, __pad2 = 0, st_size = 4294967295,
st_blksize = 0, st_blocks = 0, st_atim = {tv_sec = 1116279667, tv_nsec = 0},
st_mtim = {tv_sec = 1116279667, tv_nsec = 0}, st_ctim = {
tv_sec = 1116279667, tv_nsec = 0}, st_ino = 0}...
2009 Nov 14
2
[PATCH] btrfs-progs: Check mount status of multidevice filesystems
...b) < 0)
+ {
+ return -errno;
+ }
+
+ /* Same blockdevice? */
+ if(S_ISBLK(st_buf_a.st_mode) &&
+ S_ISBLK(st_buf_b.st_mode) &&
+ st_buf_a.st_rdev == st_buf_b.st_rdev)
+ {
+ return 1;
+ }
+
+ /* Hardlink? */
+ if (st_buf_a.st_dev == st_buf_b.st_dev &&
+ st_buf_a.st_ino == st_buf_b.st_ino)
+ {
+ return 1;
+ }
+
+ return 0;
+}
+
/*
* returns 1 if the device was mounted, < 0 on error or 0 if everything
- * is safe to continue. TODO, this should also scan multi-device filesystems
+ * is safe to continue.
*/
int check_mounted(char *file)
{
struct mntent...
2015 Jan 02
0
[PATCH] virt-diff: add additional ignore options
...guestfs_copy_statns (stat_orig);
+ stat_copy = guestfs_copy_statns (stat_orig);
if (stat == NULL) {
perror ("guestfs_copy_stat");
goto error;
}
+ if (no_compare_perms)
+ stat->st_mode &= 0170000;
+
+ if (no_compare_extra_stats)
+ stat->st_dev = stat->st_ino = stat->st_nlink = stat->st_rdev =
+ stat->st_blocks = 0;
+
+ if (no_compare_uids)
+ stat->st_uid = stat->st_gid = 0;
+
+ if (no_compare_times)
+ stat->st_atime_sec = stat->st_mtime_sec = stat->st_ctime_sec =
+ stat->st_atime_nsec = stat->st_mtime_nse...
2003 Oct 01
2
smbmount not exiting
...[pid 3493] dup2(3, 2) = 2
[pid 3493] close(3) = 0
[pid 3493] umask(022) = 022
[pid 3493] open("/var/log/samba/smbmount.log",
O_WRONLY|O_APPEND|O_CREAT|O_LARGEFILE, 0666) = 0
[pid 3493] fstat64(0, {st_dev=makedev(3, 2), st_ino=32770,
st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096,
st_blocks=8, st_size=3221, st_atime=2003/10/02-02:28:44,
st_mtime=2003/10/02-02:27:34, st_ctime=2003/10/02-02:27:34}) = 0
[pid 3493] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0...
2015 Aug 24
0
[PATCH 3/3] v2v: ignore missing kernels from grub (RHBZ#1230412)
...diff --git a/v2v/convert_linux.ml b/v2v/convert_linux.ml
index 986af54..adbcaa2 100644
--- a/v2v/convert_linux.ml
+++ b/v2v/convert_linux.ml
@@ -364,7 +364,14 @@ let rec convert ~keep_serial_console (g : G.guestfs) inspect source =
statbuf.G.st_dev = s.G.st_dev && statbuf.G.st_ino = s.G.st_ino
) installed_kernels in
Some kernel
- with Not_found -> None
+ with
+ | Not_found -> None
+ | G.Error msg as exn ->
+ (* If it isn't "no such file or directory", then re-raise it. *)
+ if g#last...
2007 Jan 05
1
Crash in rc15
...8, name=0xb8128 "~-~-~")
at mbox-storage.c:448
p = 0x0
#7 0x00035cac in mbox_mailbox_delete (_storage=0xb7c08, name=0xb8128 "~-~-~")
at mbox-storage.c:901
index_dir = 0xb812d ""
path = 0xb8128 "~-~-~"
st = {st_dev = 22282293, st_pad1 = {0, 0, 0}, st_ino = 1049,
st_mode = 33152, st_nlink = 1, st_uid = 101321, st_gid = 1000, st_rdev = 0,
st_pad2 = {0, 0}, st_size = 0, st_atim = {tv_sec = 1168024501,
tv_nsec = 972872000}, st_mtim = {tv_sec = 1168024501,
tv_nsec = 972872000}, st_ctim = {tv_sec = 1168024501,
tv_nsec = 972872000}, s...
2013 Nov 12
0
[klibc:master] arm64: Fix struct stat
...1a3e79..f5bfa80 100644
--- a/usr/include/arch/arm64/klibc/archstat.h
+++ b/usr/include/arch/arm64/klibc/archstat.h
@@ -3,27 +3,26 @@
#include <klibc/stathelp.h>
+#define _STATBUF_ST_NSEC
+
struct stat {
- unsigned long st_dev; /* Device. */
- unsigned long st_ino; /* File serial number. */
- unsigned int st_mode; /* File mode. */
- unsigned int st_nlink; /* Link count. */
- unsigned int st_uid; /* User ID of the file's owner. */
- unsigned int st_gid; /* Group ID of...
2013 Nov 21
2
[LLVMdev] [compiler-rt] Problem with asm/stat.h on openSUSE PPC64
...ve is a bug in kernel headers on openSUSE PPC64 but maybe there
is some workaround.
compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_linux.cc
includes asm/stat.h which ends up with errors:
/usr/include/asm/stat.h:31:2: error: unknown type name 'ino_t'
ino_t st_ino;
^
/usr/include/asm/stat.h:34:2: error: unknown type name 'mode_t'
mode_t st_mode;
^
/usr/include/asm/stat.h:39:2: error: unknown type name 'uid_t'
uid_t st_uid;
^
/usr/include/asm/stat.h:40:2: error: unknown type name...
2015 Jan 06
0
[PATCH] virt-diff: add additional ignore options
...at = guestfs_copy_statns (stat_orig);
+ stat_copy = guestfs_copy_statns (stat_orig);
if (stat == NULL) {
perror ("guestfs_copy_stat");
goto error;
}
+ if (!compare_perms)
+ stat->st_mode &= 0170000;
+
+ if (!compare_extra_stats)
+ stat->st_dev = stat->st_ino = stat->st_nlink = stat->st_rdev =
+ stat->st_blocks = 0;
+
+ if (!compare_uids)
+ stat->st_uid = stat->st_gid = 0;
+
+ if (!compare_times)
+ stat->st_atime_sec = stat->st_mtime_sec = stat->st_ctime_sec =
+ stat->st_atime_nsec = stat->st_mtime_nsec =...
2019 Feb 19
2
Re: [PATCH nbdkit 4/4] Add linuxdisk plugin.
...; +{
> + const struct file *f1 = vp1;
> + const struct file *f2 = vp2;
> +
> + if (f1->statbuf.st_dev < f2->statbuf.st_dev)
> + return -1;
> + else if (f1->statbuf.st_dev > f2->statbuf.st_dev)
> + return 1;
> + else {
> + if (f1->statbuf.st_ino < f2->statbuf.st_ino)
> + return -1;
> + else if (f1->statbuf.st_ino > f2->statbuf.st_ino)
> + return 1;
> + else
> + return 0;
The sort is not a complete order (two files with the same inode have an
arbitrary order), but I don't think that ma...