search for: st_nlink

Displaying 20 results from an estimated 138 matches for "st_nlink".

2008 Sep 15
0
Trace log of unify when glusterfs freezes
...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: callid: 3 (*this=0x50cd30, op_re...
2016 Jun 02
2
[PATCH] Link count attribute extension
Hello, This patch adds client and server support for transmitting the st_nlink field across SSH2_FXP_NAME and SSH2_FXP_ATTRS responses. Please let me know if there anything I can do to improve this patch. I am not subscribed to list so please CC me. Index: sftp-common.c =================================================================== RCS file: /cvs/src/usr.bin/ssh/sftp-c...
2009 May 12
1
--copy-links and --hard-links
...zed files in a read-only fashion, I also want to get hardlinks for all identical files, to save space. Thus I also use "--hard-links". Because managing hardlinks is hard to handle (some lookup table is needed), only inodes with a hardlink count >1 are considered (flink.c:1250 "st.st_nlink > 1"). Unfortunately most of my symlinked files have a link count of 1 and thus they are copied twice. If, however, the source file accidentally has a link count > 1 (which is not related to the multiple symlinks) rsync will create a hard link on the target host, as supposed. To handle...
2010 Jul 19
1
Oplocks
...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}) = 0 8711 14:57:50.766214 fcntl(121, F...
2011 Jan 16
0
fs quota backend bug
...etquotaroot "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=475157, st_mode=S_IFDIR|0700, st_nlink=11,...
2014 Sep 22
2
[PATCH] New APIs: Implement stat calls that return nanosecond timestamps (RHBZ#1144891).
..._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 (dir, name); - if (checksum &&...
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
2005 May 16
2
Assertion Failure in mbox-sync.c
...8 #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} (gdb) p sync_ctx->file_i...
2009 May 29
1
[PATCH v2] klibc-utils: add simple ls
...= 128; +static int max_nlinks = 1; +static int max_size = 1; +static int max_uid = 1; +static int max_gid = 1; +static int max_min = 1; +static int max_maj = 1; + +static void do_preformat(const struct stat *st) +{ + int bytes; + + if ((bytes = snprintf(NULL, 0, "%ju", (uintmax_t) st->st_nlink)) > max_nlinks) + max_nlinks = bytes; + + if ((bytes = snprintf(NULL, 0, "%ju", (uintmax_t) st->st_uid)) > max_uid) + max_uid = bytes; + + if ((bytes = snprintf(NULL, 0, "%ju", (uintmax_t) st->st_gid)) > max_gid) + max_gid = bytes; + + if (S_ISCHR(st->st_mod...
2009 May 28
1
[PATCH] klibc-utils: add minils
...mask) + +static int max_nlinks = 1; +static int max_size = 1; +static int max_uid = 1; +static int max_gid = 1; +static int max_min = 1; +static int max_maj = 1; + +static void do_preformat(const struct stat *st) { + int bytes; + + if ((bytes = snprintf(NULL, 0, "%ju", (uintmax_t) st->st_nlink)) > max_nlinks) + max_nlinks = bytes; + + if ((bytes = snprintf(NULL, 0, "%ju", (uintmax_t) st->st_uid)) > max_uid) + max_uid = bytes; + + if ((bytes = snprintf(NULL, 0, "%ju", (uintmax_t) st->st_gid)) > max_gid) + max_gid = bytes; + + if (S_ISCHR(st->st_mod...
2015 Jan 02
0
[PATCH] virt-diff: add additional ignore options
...ns (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_nsec = stat->st_ctim...
2005 Mar 05
2
dovecot-pgsql.conf can't find in chroot? (debian)
...[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) = 0 x40019000 [pid 18211] fstat64(5, {st_de...
2003 Oct 01
2
smbmount not exiting
...= 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) = 0x40018000 [pid 3493] fstat64(0, {st_d...
2005 Dec 28
0
[patch] sparc64 fix stat()
...hstat.h 2005-09-06 13:49:34.000000000 -0700 +++ b/include/arch/sparc64/klibc/archstat.h 2005-10-29 10:31:26.000000000 -0700 @@ -3,20 +3,26 @@ /* No nsec fields?! */ struct stat { - unsigned st_dev; + unsigned long st_dev; + unsigned short __pad1; ino_t st_ino; mode_t st_mode; - short st_nlink; + unsigned int st_nlink; uid_t st_uid; gid_t st_gid; - unsigned st_rdev; + unsigned long st_rdev; + unsigned short __pad2; off_t st_size; + off_t st_blksize; + off_t st_blocks; time_t st_atime; + unsigned long __unused1; time_t st_mtime; + unsigned long __unused2; time_t...
2013 Nov 12
0
[klibc:master] arm64: Fix struct stat
...@ #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 the file's group. */ - unsigned long st_rdev; /* Device number, if device. */ - unsigned long __pa...
2015 Jan 06
0
[PATCH] virt-diff: add additional ignore options
...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 = stat->st_ctime_ns...
2008 Sep 09
1
1.1.3: imap crashes with SIGSEGV
...=0x87af6ee "Drafts", flags=0) at maildir-storage.c:448 mbox = (struct maildir_mailbox *) 0x87c6248 index = <value optimized out> path = 0x879f120 "/home/n/i/nivanov/Maildir/.Drafts" st = {st_dev = 13257686650873676099, __pad1 = 65024, __st_ino = 0, st_mode = 0, st_nlink = 6076788, st_uid = 16832, st_gid = 2, st_rdev = 429496771878, __pad2 = 0, st_size = 0, st_blksize = 12288, st_blocks = 17592186044416, st_atim = {tv_sec = 24, tv_nsec = 0}, st_mtim = { tv_sec = 1219648514, tv_nsec = 0}, st_ctim = {tv_sec = 1219648514, tv_nsec = 0}, st_ino = 12207569...
2011 Jan 16
0
v2.0.9 -segfault in lib21_fts_solr_plugin.so (G.Nau)
...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=475157, st_mode=S...
2005 Oct 09
2
compiling asterisk on SuSE Linux 9.3 fails: illegal instruction
...39;illegal instruction': # asterisk -vvv Illegal instruction strace says this: open("/lib/tls/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200O\1"..., 512) = 512 fstat64(3, {st_dev=makedev(22, 2), st_ino=130743, st_mode=S_IFREG|0755, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=2730, st_size=1395193, st_atime=2005/10/09-17:09:01, st_mtime=2005/06/11-00:35:23, st_ctime=2005/06/17-08:45:41}) = 0 old_mmap(NULL, 1150108, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x400f2000 madvise(0x400f2000, 1150108, MADV_SEQUEN...
2009 Feb 12
2
[patch 1/3] add protocol extension to ATTR message
This patch adds all the missing commonly used UNIX attributes: st_dev, st_ino, st_nlink, st_rdev, st_blocks, st_blksize, st_ctime. In addition it extends st_atime and st_mtime to 64bits, and adds nanosecond resolution to all three timestamps. This is implemented as an extension to the ATTR message. This patch alone is sufficient for SSHFS to be able to use these attributes. The fo...