aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2002-01-25 02:16:52 +0000
committerNathan Scott <nathans@sgi.com>2002-01-25 02:16:52 +0000
commita0f4419c85958446f660e5c8fa4c70f88eb01cf0 (patch)
treeb845108a1f2edaa7e252219edb5dc5c15d167c26 /common
parenta6816f349ce75f7d54356cca47438ea92fcb3e06 (diff)
downloadxfsdump-dev-a0f4419c85958446f660e5c8fa4c70f88eb01cf0.tar.gz
effectively no-op change (cleanup) - switch over to using
XFS_IOC_FSGEOMETRY instead of XFS_IOC_GETFSUUID ioctl, so we can deprecate that "special" UUID ioctl at some point in the distant future.
Diffstat (limited to 'common')
-rw-r--r--common/fs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/fs.c b/common/fs.c
index 9c2edf33..4ac6e198 100644
--- a/common/fs.c
+++ b/common/fs.c
@@ -212,7 +212,7 @@ fs_mounted( char *typs, char *chrs, char *mnts, uuid_t *idp )
intgen_t
fs_getid( char *mnts, uuid_t *idb )
{
- uuid_t uuid;
+ xfs_fsop_geom_t geo;
int fd;
fd = open( mnts, O_RDONLY );
@@ -220,13 +220,13 @@ fs_getid( char *mnts, uuid_t *idb )
uuid_clear( *idb );
return -1;
}
- if ( ioctl(fd, XFS_IOC_GETFSUUID, &uuid ) ) {
+ if ( ioctl(fd, XFS_IOC_FSGEOMETRY, &geo ) ) {
uuid_clear( *idb );
close(fd);
return -1;
}
close(fd);
- uuid_copy( *idb, uuid );
+ uuid_copy( *idb, geo.uuid );
return 0;
}