Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 477758 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-6 / +5 lines)
Line  Link Here
0
-- xfsprogs-3.1.10/libxfs/linux.c
0
++ xfsprogs-3.1.10-statfs/libxfs/linux.c
Lines 21-27 Link Here
21
#include <mntent.h>
21
#include <mntent.h>
22
#include <sys/stat.h>
22
#include <sys/stat.h>
23
#undef ustat
23
#undef ustat
24
#include <sys/ustat.h>
24
#include <sys/statfs.h>
25
#include <sys/mount.h>
25
#include <sys/mount.h>
26
#include <sys/ioctl.h>
26
#include <sys/ioctl.h>
27
#include <sys/sysinfo.h>
27
#include <sys/sysinfo.h>
Lines 49-57 static int max_block_alignment; Link Here
49
int
49
int
50
platform_check_ismounted(char *name, char *block, struct stat64 *s, int verbose)
50
platform_check_ismounted(char *name, char *block, struct stat64 *s, int verbose)
51
{
51
{
52
	/* Pad ust; pre-2.6.28 linux copies out too much in 32bit compat mode */
52
	struct statfs ust;
53
	struct ustat	ust[2];
53
	struct stat64 st;
54
	struct stat64	st;
55
54
56
	if (!s) {
55
	if (!s) {
57
		if (stat64(block, &st) < 0)
56
		if (stat64(block, &st) < 0)
Lines 61-67 platform_check_ismounted(char *name, cha Link Here
61
		s = &st;
60
		s = &st;
62
	}
61
	}
63
62
64
	if (ustat(s->st_rdev, ust) >= 0) {
63
	if (statfs(name, &ust) >= 0) {
65
		if (verbose)
64
		if (verbose)
66
			fprintf(stderr,
65
			fprintf(stderr,
67
				_("%s: %s contains a mounted filesystem\n"),
66
				_("%s: %s contains a mounted filesystem\n"),

Return to bug 477758