Print this page
2882 implement libzfs_core
2883 changing "canmount" property to "on" should not always remount dataset
2900 "zfs snapshot" should be able to create multiple, arbitrary snapshots at once
Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Chris Siden <christopher.siden@delphix.com>
Reviewed by: Garrett D'Amore <garrett@damore.org>
Reviewed by: Bill Pijewski <wdp@joyent.com>
Reviewed by: Dan Kruchinin <dan.kruchinin@gmail.com>


 854 
 855 int
 856 z_compress_level(void *dst, size_t *dstlen, const void *src, size_t srclen,
 857     int level)
 858 {
 859         int ret;
 860         uLongf len = *dstlen;
 861 
 862         if ((ret = compress2(dst, &len, src, srclen, level)) == Z_OK)
 863                 *dstlen = (size_t)len;
 864 
 865         return (ret);
 866 }
 867 
 868 uid_t
 869 crgetuid(cred_t *cr)
 870 {
 871         return (0);
 872 }
 873 






 874 gid_t
 875 crgetgid(cred_t *cr)
 876 {
 877         return (0);
 878 }
 879 
 880 int
 881 crgetngroups(cred_t *cr)
 882 {
 883         return (0);
 884 }
 885 
 886 gid_t *
 887 crgetgroups(cred_t *cr)
 888 {
 889         return (NULL);
 890 }
 891 
 892 int
 893 zfs_secpolicy_snapshot_perms(const char *name, cred_t *cr)




 854 
 855 int
 856 z_compress_level(void *dst, size_t *dstlen, const void *src, size_t srclen,
 857     int level)
 858 {
 859         int ret;
 860         uLongf len = *dstlen;
 861 
 862         if ((ret = compress2(dst, &len, src, srclen, level)) == Z_OK)
 863                 *dstlen = (size_t)len;
 864 
 865         return (ret);
 866 }
 867 
 868 uid_t
 869 crgetuid(cred_t *cr)
 870 {
 871         return (0);
 872 }
 873 
 874 uid_t
 875 crgetruid(cred_t *cr)
 876 {
 877         return (0);
 878 }
 879 
 880 gid_t
 881 crgetgid(cred_t *cr)
 882 {
 883         return (0);
 884 }
 885 
 886 int
 887 crgetngroups(cred_t *cr)
 888 {
 889         return (0);
 890 }
 891 
 892 gid_t *
 893 crgetgroups(cred_t *cr)
 894 {
 895         return (NULL);
 896 }
 897 
 898 int
 899 zfs_secpolicy_snapshot_perms(const char *name, cred_t *cr)