Displaying 2 results from an estimated 2 matches for "ucnt".
Did you mean:
cnt
2013 Oct 25
8
[PATCH] btrfs: add framework to read fs info from btrfs-control
...284,3 +6284,36 @@ int btrfs_scratch_superblock(struct btrfs_device *device)
return 0;
}
+
+/* return 1 if allocation count exceed the num of fs list
+ * in the kernel
+ */
+int btrfs_get_fslist(struct btrfs_ioctl_fslist_args *fslist_arg,
+ struct btrfs_ioctl_fslist *fslist)
+{
+ u64 cnt = 0, ucnt;
+ struct btrfs_fs_devices *fs_devices;
+
+ ucnt = fslist_arg->count;
+
+ list_for_each_entry(fs_devices, &fs_uuids, list) {
+ if (cnt < ucnt) {
+ memcpy(fslist->fsid, fs_devices->fsid,
+ BTRFS_FSID_SIZE);
+ fslist->num_devices = fs_devices->num_devices;
+ fslist-&g...
2011 May 19
2
custom function from .24.6 not working in 2.6 (from squeeze)
I''m in the process of upgrading an existing installation from .24.x to 2.6.
We seem to have a custom function that is throwing the error:
"err: Could not retrieve catalog from remote server: Error 400 on SERVER:
private method `gsub'' called for #<Array:0x7fdcebf3bbf8> at
/etc/puppet/manifests/classes/apache-php.pp:72"
Here is the function:
"""
#