Displaying 3 results from an estimated 3 matches for "type_c".
Did you mean:
type_
2013 Nov 03
2
[PATCH stable-1.24] Fix fstab block device resolution for FreeBSD
..., &disk, &part)) {
+ /* If the FreeBSD disk contains GPT partitions, the translation to Linux
+ * device names is straight forward. Partitions on a virtio disk are
+ * prefixed with vtbd. IDE hard drives used to be prefixed with ad and now
+ * are with ada.
+ */
+ char type_c = (strcmp (type, "vtbd") == 0) ? 'v' : 's';
+ int disk_i = guestfs___parse_unsigned_int (g, disk);
+ int part_i = guestfs___parse_unsigned_int (g, part);
+ free (type);
+ free (disk);
+ free (part);
+
+ if (disk_i != -1 && disk_i <= 26 &&am...
2013 Nov 04
0
Re: [PATCH stable-1.24] Fix fstab block device resolution for FreeBSD
On Sun, Nov 03, 2013 at 11:16:23PM +0200, Nikos Skalkotos wrote:
> + char type_c = (strcmp (type, "vtbd") == 0) ? 'v' : 's';
> int disk_i = guestfs___parse_unsigned_int (g, disk);
> int slice_i = guestfs___parse_unsigned_int (g, slice);
> int part_i = part[0] - 'a' /* counting from 0 */;
> @@ -1481,7 +1501,7 @@ resolv...
2006 Nov 04
0
accessing constants in model from controller.
Hello,
In my model Example, I''ve defined three types as such:
class Example < ActiveRecord::Base
TYPE_A = ''A''
TYPE_B = ''B''
TYPE_C = ''C''
def select....
end
end
How can I access these types in my controller. I''m trying the following
with my controller named Read:
def init
a = Example.TYPE_A
end
It won''t allow me to declare the types and gives me a syntax error. Any
help would be a...