Displaying 8 results from an estimated 8 matches for "output_int64_dev".
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 Jan 02
0
[PATCH] virt-diff: add additional ignore options
...g->st_atime_sec, file->stat_orig->st_atime_nsec);
+ output_int64_time (file->stat_orig->st_mtime_sec, file->stat_orig->st_mtime_nsec);
+ output_int64_time (file->stat_orig->st_ctime_sec, file->stat_orig->st_ctime_nsec);
}
if (enable_extra_stats) {
- output_int64_dev (file->stat->st_dev);
- output_int64 (file->stat->st_ino);
- output_int64 (file->stat->st_nlink);
- output_int64_dev (file->stat->st_rdev);
- output_int64 (file->stat->st_blocks);
+ output_int64_dev (file->stat_orig->st_dev);
+ output_int64 (fil...
2015 Jan 06
0
[PATCH] virt-diff: add additional ignore options
...g->st_atime_sec, file->stat_orig->st_atime_nsec);
+ output_int64_time (file->stat_orig->st_mtime_sec, file->stat_orig->st_mtime_nsec);
+ output_int64_time (file->stat_orig->st_ctime_sec, file->stat_orig->st_ctime_nsec);
}
if (enable_extra_stats) {
- output_int64_dev (file->stat->st_dev);
- output_int64 (file->stat->st_ino);
- output_int64 (file->stat->st_nlink);
- output_int64_dev (file->stat->st_rdev);
- output_int64 (file->stat->st_blocks);
+ output_int64_dev (file->stat_orig->st_dev);
+ output_int64 (fil...
2015 Jan 05
2
Re: [PATCH] virt-diff: add additional ignore options
...tat_orig->st_atime_nsec);
> + output_int64_time (file->stat_orig->st_mtime_sec, file->stat_orig->st_mtime_nsec);
> + output_int64_time (file->stat_orig->st_ctime_sec, file->stat_orig->st_ctime_nsec);
> }
>
> if (enable_extra_stats) {
> - output_int64_dev (file->stat->st_dev);
> - output_int64 (file->stat->st_ino);
> - output_int64 (file->stat->st_nlink);
> - output_int64_dev (file->stat->st_rdev);
> - output_int64 (file->stat->st_blocks);
> + output_int64_dev (file->stat_orig->st_dev...
2014 Sep 22
2
[PATCH] New APIs: Implement stat calls that return nanosecond timestamps (RHBZ#1144891).
...--------------------------------
+
+Handle nanoseconds properly. You should be able to specify them on
+the command line and display them.
diff --git a/cat/ls.c b/cat/ls.c
index 43705c2..de8248e 100644
--- a/cat/ls.c
+++ b/cat/ls.c
@@ -71,7 +71,7 @@ static void output_int64 (int64_t);
static void output_int64_dev (int64_t);
static void output_int64_perms (int64_t);
static void output_int64_size (int64_t);
-static void output_int64_time (int64_t);
+static void output_int64_time (int64_t secs, int64_t nsecs);
static void output_int64_uid (int64_t);
static void output_string (const char *);
static void ou...
2015 Jul 02
0
[PATCH] Fix various -Wformat problems.
...702,7 @@ output_int64_perms (int64_t i)
{
next_field ();
/* csv doesn't need escaping */
- if (printf ("%04" PRIo64, i) < 0) {
+ if (printf ("%04" PRIo64, (uint64_t) i) < 0) {
perror ("printf");
exit (EXIT_FAILURE);
}
@@ -774,7 +774,8 @@ output_int64_dev (int64_t i)
next_field ();
/* csv doesn't need escaping */
- if (printf ("%d:%d", major (dev), minor (dev)) < 0) {
+ if (printf ("%ju:%ju",
+ (uintmax_t) major (dev), (uintmax_t) minor (dev)) < 0) {
perror ("printf");
exit (EX...
2015 Jul 02
0
[PATCH v2] Fix various -Wformat problems.
...702,7 @@ output_int64_perms (int64_t i)
{
next_field ();
/* csv doesn't need escaping */
- if (printf ("%04" PRIo64, i) < 0) {
+ if (printf ("%04" PRIo64, (uint64_t) i) < 0) {
perror ("printf");
exit (EXIT_FAILURE);
}
@@ -774,7 +774,8 @@ output_int64_dev (int64_t i)
next_field ();
/* csv doesn't need escaping */
- if (printf ("%d:%d", major (dev), minor (dev)) < 0) {
+ if (printf ("%ju:%ju",
+ (uintmax_t) major (dev), (uintmax_t) minor (dev)) < 0) {
perror ("printf");
exit (EX...
2016 Apr 04
2
[PATCH 1/2] Use 'error' function consistently throughout.
...();
/* csv doesn't need escaping */
- if (printf ("%4" PRIi64, i) < 0) {
- perror ("printf");
- exit (EXIT_FAILURE);
- }
+ if (printf ("%4" PRIi64, i) < 0)
+ error (EXIT_FAILURE, errno, "printf");
}
static void
@@ -774,8 +739,6 @@ output_int64_dev (int64_t i)
/* csv doesn't need escaping */
if (printf ("%ju:%ju",
- (uintmax_t) major (dev), (uintmax_t) minor (dev)) < 0) {
- perror ("printf");
- exit (EXIT_FAILURE);
- }
+ (uintmax_t) major (dev), (uintmax_t) minor (dev)) <...