Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (dbx) print *cur_be
- *cur_be = {
- be_mounted = B_FALSE
- be_active_on_boot = B_FALSE
- be_active = B_FALSE
- be_space_used = 31744ULL
- be_node_name = 0x80690e0 "testbe"
- be_rpool = 0x80690f0 "rpool"
- be_root_ds = 0x8067e40 "rpool/ROOT/testbe"
- be_mntpt = 0x8069100 "legacy"
- be_policy_type = 0x8069110 "static"
- be_uuid_str = (nil)
- be_node_creation = 1317110631
- be_node_datasets = (nil)
- be_node_num_datasets = 1U
- be_node_snapshots = (nil)
- be_node_num_snapshots = 0
- be_next_node = (nil)
- }
- (dbx) print cur_be->be_mntpt
- cur_be->be_mntpt = 0x8069100 "legacy"
- ==================================================================
- (In file beadm.c)
- light@openindiana:/code/illumos-gate/usr/src/cmd/beadm$ hg diff beadm.c
- diff -r c3454574dd1a usr/src/cmd/beadm/beadm.c
- --- a/usr/src/cmd/beadm/beadm.c Thu Aug 04 23:34:40 2011 -0700
- +++ b/usr/src/cmd/beadm/beadm.c Tue Sep 27 22:54:04 2011 +0530
- @@ -387,6 +387,13 @@
- if (be_name != NULL && strcmp(be_name, name) != 0)
- continue;
- + /* Check to see if the mountpoint is '/' if not then
- + * its not a valid BE and dont display that in the list.
- + */
- + if (strcmp(cur_be->be_mntpt, '/') != 0)
- + continue;
- +
- +
- if (parsable)
- active[0] = '\0';
- ..........................................................................
- when i run dmake i get this error...
- ight@openindiana:/code/illumos-gate/usr/src/cmd/beadm$ dmake
- openindiana --> 1 job
- /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
- openindiana --> Job output
- /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
- + /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
- beadm.c: In function `print_be_nodes':
- beadm.c:393: warning: passing arg 2 of `strcmp' makes pointer from integer without a cast
- + /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
- "beadm.c", line 393: warning: improper pointer/integer combination: arg #2 (E_BAD_PTR_INT_COMB_ARG)
- cc: acomp failed for beadm.c
- *** Error code 3
- dmake: Fatal error: Command failed for target `beadm.o'
- Current working directory /code/illumos-gate/usr/src/cmd/beadm
Add Comment
Please, Sign In to add comment