Guest User

Untitled

a guest
Jan 19th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.54 KB | None | 0 0
  1. (dbx) print *cur_be
  2. *cur_be = {
  3. be_mounted = B_FALSE
  4. be_active_on_boot = B_FALSE
  5. be_active = B_FALSE
  6. be_space_used = 31744ULL
  7. be_node_name = 0x80690e0 "testbe"
  8. be_rpool = 0x80690f0 "rpool"
  9. be_root_ds = 0x8067e40 "rpool/ROOT/testbe"
  10. be_mntpt = 0x8069100 "legacy"
  11. be_policy_type = 0x8069110 "static"
  12. be_uuid_str = (nil)
  13. be_node_creation = 1317110631
  14. be_node_datasets = (nil)
  15. be_node_num_datasets = 1U
  16. be_node_snapshots = (nil)
  17. be_node_num_snapshots = 0
  18. be_next_node = (nil)
  19. }
  20. (dbx) print cur_be->be_mntpt
  21. cur_be->be_mntpt = 0x8069100 "legacy"
  22. ==================================================================
  23.  
  24. (In file beadm.c)
  25. light@openindiana:/code/illumos-gate/usr/src/cmd/beadm$ hg diff beadm.c
  26. diff -r c3454574dd1a usr/src/cmd/beadm/beadm.c
  27. --- a/usr/src/cmd/beadm/beadm.c Thu Aug 04 23:34:40 2011 -0700
  28. +++ b/usr/src/cmd/beadm/beadm.c Tue Sep 27 22:54:04 2011 +0530
  29. @@ -387,6 +387,13 @@
  30. if (be_name != NULL && strcmp(be_name, name) != 0)
  31. continue;
  32.  
  33. + /* Check to see if the mountpoint is '/' if not then
  34. + * its not a valid BE and dont display that in the list.
  35. + */
  36. + if (strcmp(cur_be->be_mntpt, '/') != 0)
  37. + continue;
  38. +
  39. +
  40. if (parsable)
  41. active[0] = '\0';
  42. ..........................................................................
  43.  
  44. when i run dmake i get this error...
  45. ight@openindiana:/code/illumos-gate/usr/src/cmd/beadm$ dmake
  46. openindiana --> 1 job
  47. /code/illumos-gate/usr/src/tools/proto/root_i386-nd/opt/onbld/bin/i386/cw -_cc -O -xspace -Xa -xildoff -errtags=yes -errwarn=%all -erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED -xc99=%none -W0,-xglobalstatic -DTEXT_DOMAIN=\"SUNW_OST_OSCMD\" -D_TS_ERRNO -I/code/illumos-gate/proto/root_i386/usr/include -DDEBUG -c beadm.c
  48. openindiana --> Job output
  49. /code/illumos-gate/usr/src/tools/proto/root_i386-nd/opt/onbld/bin/i386/cw -_cc -O -xspace -Xa -xildoff -errtags=yes -errwarn=%all -erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED -xc99=%none -W0,-xglobalstatic -DTEXT_DOMAIN=\"SUNW_OST_OSCMD\" -D_TS_ERRNO -I/code/illumos-gate/proto/root_i386/usr/include -DDEBUG -c beadm.c
  50. + /usr/sfw/bin/gcc -fident -finline -fno-inline-functions -fno-builtin -fno-asm -nodefaultlibs -D__sun -O -Wall -Wno-unknown-pragmas -Wno-missing-braces -Wno-sign-compare -Wno-parentheses -Wno-uninitialized -Wno-implicit-function-declaration -Wno-unused -Wno-trigraphs -Wno-char-subscripts -Wno-switch -Werror -std=gnu89 -DTEXT_DOMAIN="SUNW_OST_OSCMD" -D_TS_ERRNO -I/code/illumos-gate/proto/root_i386/usr/include -DDEBUG -c beadm.c -o /tmp/.cwCAA04aqYd.o
  51. beadm.c: In function `print_be_nodes':
  52. beadm.c:393: warning: passing arg 2 of `strcmp' makes pointer from integer without a cast
  53. + /opt/SUNWspro/bin/cc -O -xspace -Xa -xildoff -errtags=yes -errwarn=%all -erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED -xc99=%none -W0,-xglobalstatic -DTEXT_DOMAIN="SUNW_OST_OSCMD" -D_TS_ERRNO -I/code/illumos-gate/proto/root_i386/usr/include -DDEBUG -c beadm.c
  54. "beadm.c", line 393: warning: improper pointer/integer combination: arg #2 (E_BAD_PTR_INT_COMB_ARG)
  55. cc: acomp failed for beadm.c
  56. *** Error code 3
  57. dmake: Fatal error: Command failed for target `beadm.o'
  58. Current working directory /code/illumos-gate/usr/src/cmd/beadm
Add Comment
Please, Sign In to add comment