git://git.camperquake.de
/
zfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Illumos #3098 zfs userspace/groupspace fail
[zfs.git]
/
lib
/
libzfs
/
libzfs_import.c
diff --git
a/lib/libzfs/libzfs_import.c
b/lib/libzfs/libzfs_import.c
index
58b6043
..
9e79bd9
100644
(file)
--- a/
lib/libzfs/libzfs_import.c
+++ b/
lib/libzfs/libzfs_import.c
@@
-862,7
+862,7
@@
zpool_read_label(int fd, nvlist_t **config)
*config = NULL;
*config = NULL;
- if (fstat64(fd, &statbuf) == -1)
+ if (fstat64
_blk
(fd, &statbuf) == -1)
return (0);
size = P2ALIGN_TYPED(statbuf.st_size, sizeof (vdev_label_t), uint64_t);
return (0);
size = P2ALIGN_TYPED(statbuf.st_size, sizeof (vdev_label_t), uint64_t);
@@
-902,8
+902,8
@@
zpool_read_label(int fd, nvlist_t **config)
/*
* Given a file descriptor, clear (zero) the label information. This function
/*
* Given a file descriptor, clear (zero) the label information. This function
- * is
currently only used in the appliance stack as part of the ZFS sysevent
- *
module
.
+ * is
used in the appliance stack as part of the ZFS sysevent module and
+ *
to implement the "zpool labelclear" command
.
*/
int
zpool_clear_label(int fd)
*/
int
zpool_clear_label(int fd)