[parted-devel] Re: Parted 1.8.0rc1 changes.

Debarshi 'Rishi' Ray debarshi.ray at gmail.com
Wed Sep 20 20:58:55 UTC 2006


Here is a 'trivial' patch for parted/parted.c, for displaying the
device model and maufacturer information during the 'print' command. I
saw the TODO comment in the code, and thought someone might have
forgot to add the code.

*** parted.c    2006-09-21 02:24:28.000000000 +0000
--- parted.rishi.c      2006-09-21 02:26:43.000000000 +0000
***************
*** 1252,1257 ****
--- 1252,1258 ----
                                            - 1 );
          printf ("\n");
          /* TODO: insert dev->model and transport here */
+       printf(_("Model: %s\n"), (*dev)->model);
          printf (_("Disk %s: %s\n"), (*dev)->path, end);
          printf (_("Sector size (logical/physical): %lldB/%lldB\n"),
                          (*dev)->sector_size, (*dev)->phys_sector_size);


Hope you find it useful.

By the way, what is being referred to as 'transport'?

Happy hacking,
Debarshi
-- 
Anything free is worth what you pay for it.



More information about the parted-devel mailing list