+xfsprogs-2.2.3 (28 August 2002)
+ - Fix call to lvdisplay on LVM volumes so that lvdisplay
+ always gets the full, real path to the volume, as required.
+
xfsprogs-2.2.2 (19 August 2002)
- Fix endian bug in xfs_db, was not flipping 16-bit numbers.
- Make xfs_repair recognize a NULLFSINO and print that in
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
+#include <sys/param.h>
#include <volume.h>
#ifndef LVM_BLK_MAJOR
int lvpipe[2], stripes = 0, stripesize = 0;
char *largv[3], buf[1024];
FILE *stream;
+ char tmppath[MAXPATHLEN];
if (!mnt_is_lvm_subvol(sb->st_rdev))
return 0;
return 0;
}
- largv[1] = dfile;
+ /* lvm tools want the full, real path to a logical volume.
+ * (lvm doesn't really open the file, it just wants a
+ * string that happens to look like a path :/ )
+ */
+ if (dfile[0] != '/') {
+ getcwd(tmppath, MAXPATHLEN);
+ strcat(tmppath, "/");
+ dfile = strcat(tmppath, dfile);
+ }
+ largv[1] = realpath(dfile, tmppath);
largv[2] = NULL;
/* Open pipe */