Page MenuHomeFreeBSD

bses30074_gmail.com (Yan-Hao Wang)
User

Projects

User does not belong to any projects.

User Details

User Since
Jun 25 2022, 1:00 PM (75 w, 4 d)

Recent Activity

Wed, Nov 15

bses30074_gmail.com updated the diff for D41645: geom_union: Add test for geom_union..
  • Use cp -f in "commit" case
Wed, Nov 15, 3:40 PM
bses30074_gmail.com updated the diff for D41645: geom_union: Add test for geom_union..
  • Revise "lower_file" in "commit" case
Wed, Nov 15, 1:33 PM
bses30074_gmail.com updated the diff for D41645: geom_union: Add test for geom_union..
  • Revise lower_file in "basic" and "revert" case
Wed, Nov 15, 1:22 PM
bses30074_gmail.com updated the diff for D41645: geom_union: Add test for geom_union..
  • Update according lwhsu advices
Wed, Nov 15, 10:31 AM

Thu, Nov 9

bses30074_gmail.com updated the diff for D41645: geom_union: Add test for geom_union..
  • Update according lwhsu advices
Thu, Nov 9, 3:05 PM

Wed, Nov 8

bses30074_gmail.com updated the diff for D41645: geom_union: Add test for geom_union..
  • Update according lwhsu advices
Wed, Nov 8, 10:08 AM
bses30074_gmail.com added inline comments to D41645: geom_union: Add test for geom_union..
Wed, Nov 8, 10:01 AM

Oct 16 2023

bses30074_gmail.com added a comment to D42219: Q3 status report.

Greetings, I am Yan-Hao Wang, a FreeBSD developer who has been a summer intern at FF. I am pleased to present my Q3 status report.

Oct 16 2023, 8:06 AM
bses30074_gmail.com edited reviewers for D42219: Q3 status report, added: status, lwhsu; removed: salvadore.
Oct 16 2023, 8:05 AM
bses30074_gmail.com requested review of D42219: Q3 status report.
Oct 16 2023, 8:03 AM

Sep 25 2023

bses30074_gmail.com added a comment to D41468: printenv: Add test for printenv..

In its current state, the "base" test doesn't pass. It seems like the expected_value variable isn't getting correctly expanded. Its value is just the name of the variable. Could you please fix that?

Sep 25 2023, 9:02 AM
bses30074_gmail.com updated the diff for D41468: printenv: Add test for printenv..
  • Fix expected_value variable
Sep 25 2023, 8:55 AM

Sep 24 2023

bses30074_gmail.com updated the diff for D40611: Add `pwd` test.
  • Remove $FreeeBSD$
Sep 24 2023, 3:24 AM
bses30074_gmail.com updated the diff for D41468: printenv: Add test for printenv..
  • Fix BSD.tests.dist
Sep 24 2023, 3:07 AM
bses30074_gmail.com updated the diff for D41645: geom_union: Add test for geom_union..
  • Use conf.sh to share common function
Sep 24 2023, 2:56 AM

Sep 23 2023

bses30074_gmail.com updated the diff for D41468: printenv: Add test for printenv..
  • Remove unnecessary code and simplify again.
Sep 23 2023, 9:26 AM
bses30074_gmail.com updated the diff for D41468: printenv: Add test for printenv..
  • Remove unnecessary code and simplify
Sep 23 2023, 9:21 AM

Sep 5 2023

bses30074_gmail.com updated the diff for D41645: geom_union: Add test for geom_union..

Use fsck -p -f to check gunion and readable device

Sep 5 2023, 12:06 PM

Sep 3 2023

bses30074_gmail.com added a comment to D41645: geom_union: Add test for geom_union..

Your checksum test is a good way to verify that everything worked as expected though it is possible that some sort of filesystem corruption snuck in (obviously to both copies). So you might want to add a second check by running 'fsck -p -f' on the both the gunion filesystem and the original filesystem after the gunion has been dissolved. The exit status from fsck should be zero.

Sep 3 2023, 1:46 PM

Sep 2 2023

bses30074_gmail.com updated the diff for D41645: geom_union: Add test for geom_union..

Format writable_device statement remove. In general, upper device is not necessary to format.

Sep 2 2023, 1:13 PM
bses30074_gmail.com added a comment to D41645: geom_union: Add test for geom_union..

I am happy to see a set of gunion tests being added. The set of tests looks complete.

In general, only the lower (readable) disk partition is formatted with a filesystem. The upper (writable) layer is used and managed by gunion. It does not cause any errors for you to format it as a filesystem, but it is not necessary to do so. Attempting to access the top layer as a filesystem after it has been used by gunion is not always going to work as gunion makes no effort to keep it consistent. In particular if you use the -o offset option, any filesystem built on the top layer will cease to be usable after gunion uses it as a top layer.

Have you verified that these tests work?

Sep 2 2023, 12:27 PM

Sep 1 2023

bses30074_gmail.com added a comment to D41645: geom_union: Add test for geom_union..

The tests are described below.

  1. load:
    • Use kldstat to confirm the gunion load and unload is actually work.
  2. create:
    • Look /dev/ folder to confirm the gunion create and destroy is actually work.
  3. commit:
    • Use checksum to check the file is actually commit.
  4. offset:
    • Create two partitions and see if we can mount the union device which use the two partitions. Test the gunion commit -o offset.
  5. size:
    • Use diskinfo test gunion commit -s size.
  6. secsize:
    • Use diskinfo test gunion commit -S secsize.
  7. gunionname:
    • Look /dev/ folder to test gunion commit -Z gunionname.
  8. revert:
    • Use checksum to check the file is actually revert.
Sep 1 2023, 8:51 AM
bses30074_gmail.com updated the diff for D41645: geom_union: Add test for geom_union..
  • add one test case to test gunion commit -o offset
Sep 1 2023, 8:44 AM
bses30074_gmail.com updated the diff for D41645: geom_union: Add test for geom_union..
  • format the code.
Sep 1 2023, 7:09 AM

Aug 31 2023

bses30074_gmail.com added a reviewer for D41645: geom_union: Add test for geom_union.: tests.
Aug 31 2023, 3:31 AM
bses30074_gmail.com requested review of D41645: geom_union: Add test for geom_union..
Aug 31 2023, 3:31 AM

Aug 21 2023

bses30074_gmail.com updated the diff for D41411: efitable: Complete libxo transition..
  • Fix file format.
Aug 21 2023, 12:39 PM
bses30074_gmail.com updated the diff for D41413: jls: Complete libxo transition..
  • Fix the format.
  • Use number style.
Aug 21 2023, 12:35 PM
bses30074_gmail.com updated the diff for D41414: lastlogin: Complete libxo transition..
  • Remove unnecessary xo_finish function.
  • Use number style.
Aug 21 2023, 12:30 PM
bses30074_gmail.com updated the diff for D41417: ndp: Complete libxo transition.
  • Using xo_err to replace printf.
  • Use number style.
Aug 21 2023, 12:24 PM

Aug 20 2023

bses30074_gmail.com updated the diff for D41418: sesutil: Complete libxo transition..
  • Change usage function.
  • Use EXIT_ string style.
Aug 20 2023, 7:39 AM
bses30074_gmail.com updated the diff for D41422: ps: Complete libxo transition..
  • Use number style here.
Aug 20 2023, 7:19 AM
bses30074_gmail.com updated the diff for D41423: iscsictl: Return non-zero status on write failure..
  • Using xo_error instead of 'fprintf'.
  • Decide use number style here.
Aug 20 2023, 7:05 AM
bses30074_gmail.com updated the diff for D41408: arp: Complete libxo transition..

Using xo_error instead of fprintf.

Aug 20 2023, 4:17 AM
bses30074_gmail.com updated the diff for D41408: arp: Complete libxo transition..
Aug 20 2023, 4:13 AM
bses30074_gmail.com updated the diff for D41427: netstat: Complete libxo transition..
  • Using sysexits.h string in all the files.
Aug 20 2023, 3:53 AM
bses30074_gmail.com updated the diff for D41408: arp: Complete libxo transition..
Aug 20 2023, 3:51 AM

Aug 19 2023

bses30074_gmail.com updated the diff for D41427: netstat: Complete libxo transition..
  • Use EX_ string from sysexits.h if the file include it.
Aug 19 2023, 12:36 PM
bses30074_gmail.com added a comment to D41427: netstat: Complete libxo transition..

In some files sysexit.h is not include (below lists), I use the number style there to avoid much change.

a. main.c
b. netisr.c

The above has sysexit.h use EX_ string.

a. common.c
b. if.c
c. nhgrp.c
d. nhops.c
e. route.c
f. route_netlink.c
f. route_netlink.c
Aug 19 2023, 12:32 PM
bses30074_gmail.com added inline comments to D41427: netstat: Complete libxo transition..
Aug 19 2023, 11:52 AM
bses30074_gmail.com updated the diff for D41428: nfsstat: Complete libxo transition..
  • Use xo_error instead of fprintf.
  • Decide using 1 and 0 instead of EXIT_FAILURE and EXIT_SUCESS.
Aug 19 2023, 8:46 AM
bses30074_gmail.com added inline comments to D41428: nfsstat: Complete libxo transition..
Aug 19 2023, 8:43 AM
bses30074_gmail.com updated the diff for D41428: nfsstat: Complete libxo transition..
Aug 19 2023, 8:36 AM
bses30074_gmail.com added inline comments to D41428: nfsstat: Complete libxo transition..
Aug 19 2023, 8:15 AM
bses30074_gmail.com abandoned D35717: Change of words in FreeBSD Documentation Project Primer.

Old revision.

Aug 19 2023, 7:12 AM

Aug 16 2023

bses30074_gmail.com updated the diff for D41468: printenv: Add test for printenv..
  • Fix the file foramt.
Aug 16 2023, 4:21 AM
bses30074_gmail.com updated the diff for D40611: Add `pwd` test.
  • Fix the file format.
Aug 16 2023, 3:57 AM

Aug 15 2023

bses30074_gmail.com added a comment to D41468: printenv: Add test for printenv..

Only simple two test cases.

  1. using echo to check the environment value is correct and the environment variable is actually exist.
  2. try add env and delete the env, then use printenv to check that env.
Aug 15 2023, 7:11 AM
bses30074_gmail.com requested review of D41468: printenv: Add test for printenv..
Aug 15 2023, 7:09 AM
bses30074_gmail.com updated the diff for D40611: Add `pwd` test.
  • use different way to test.
Aug 15 2023, 12:52 AM

Aug 12 2023

bses30074_gmail.com updated the diff for D41432: vmstat: Complete libxo transition..
  • Return non-zero status on write failuer.

Originally check the xo_finish return value can achive the POSIX standard. Howeve I use (trap "" PIPE; vmstat 2>stderr; echo $? >status | true to check this, it didn't work. I find check xo_finish return value is not enough here. Becuase xo_finish will always return 0, there is already a xo_flush call before xo_finish. So we need check xo_flush return value here.

Aug 12 2023, 4:20 AM
bses30074_gmail.com added reviewers for D41432: vmstat: Complete libxo transition.: lwhsu, des.
Aug 12 2023, 3:15 AM
bses30074_gmail.com requested review of D41432: vmstat: Complete libxo transition..
Aug 12 2023, 3:13 AM
bses30074_gmail.com updated the diff for D41418: sesutil: Complete libxo transition..
  • Remove unnecessary space line.
Aug 12 2023, 2:24 AM
bses30074_gmail.com updated the diff for D41417: ndp: Complete libxo transition.
  • Remove unnecessary space line.
Aug 12 2023, 2:21 AM
bses30074_gmail.com updated the diff for D41414: lastlogin: Complete libxo transition..
  • Remove unnecessary space line.
Aug 12 2023, 2:19 AM
bses30074_gmail.com updated the diff for D41413: jls: Complete libxo transition..
  • Remove unnecessary space line.
Aug 12 2023, 2:16 AM
bses30074_gmail.com updated the diff for D41411: efitable: Complete libxo transition..
  • Remove unnecessary space line.
Aug 12 2023, 2:09 AM
bses30074_gmail.com updated the diff for D41408: arp: Complete libxo transition..
  • Remove unnecessary space line.
Aug 12 2023, 2:06 AM
bses30074_gmail.com updated the diff for D41422: ps: Complete libxo transition..
  • Remove unnecessary space line.
Aug 12 2023, 2:02 AM
bses30074_gmail.com updated the diff for D41424: last: Complete libxo transition..

Remove unnecessary space.

Aug 12 2023, 1:55 AM
bses30074_gmail.com updated the diff for D41427: netstat: Complete libxo transition..

Remove unnecessary space.

Aug 12 2023, 1:50 AM
bses30074_gmail.com updated the diff for D41428: nfsstat: Complete libxo transition..

Remove unnecessary space.

Aug 12 2023, 1:29 AM

Aug 11 2023

bses30074_gmail.com added a reviewer for D41428: nfsstat: Complete libxo transition.: des.
Aug 11 2023, 1:46 PM
bses30074_gmail.com requested review of D41428: nfsstat: Complete libxo transition..
Aug 11 2023, 1:45 PM
bses30074_gmail.com added reviewers for D41427: netstat: Complete libxo transition.: lwhsu, des.
Aug 11 2023, 1:31 PM
bses30074_gmail.com requested review of D41427: netstat: Complete libxo transition..
Aug 11 2023, 1:30 PM
bses30074_gmail.com added reviewers for D41424: last: Complete libxo transition.: lwhsu, des.
Aug 11 2023, 7:10 AM
bses30074_gmail.com updated the summary of D41424: last: Complete libxo transition..
Aug 11 2023, 7:10 AM
bses30074_gmail.com requested review of D41424: last: Complete libxo transition..
Aug 11 2023, 7:06 AM
bses30074_gmail.com added reviewers for D41423: iscsictl: Return non-zero status on write failure.: lwhsu, des.
Aug 11 2023, 6:39 AM
bses30074_gmail.com requested review of D41423: iscsictl: Return non-zero status on write failure..
Aug 11 2023, 6:38 AM
bses30074_gmail.com added reviewers for D41422: ps: Complete libxo transition.: lwhsu, des.
Aug 11 2023, 6:22 AM
bses30074_gmail.com requested review of D41422: ps: Complete libxo transition..
Aug 11 2023, 6:21 AM

Aug 10 2023

bses30074_gmail.com added reviewers for D41418: sesutil: Complete libxo transition.: lwhsu, des.
Aug 10 2023, 11:34 PM
bses30074_gmail.com requested review of D41418: sesutil: Complete libxo transition..
Aug 10 2023, 11:34 PM
bses30074_gmail.com added reviewers for D41417: ndp: Complete libxo transition: lwhsu, des.
Aug 10 2023, 11:20 PM
bses30074_gmail.com requested review of D41417: ndp: Complete libxo transition.
Aug 10 2023, 11:15 PM
bses30074_gmail.com added reviewers for D41414: lastlogin: Complete libxo transition.: lwhsu, des.
Aug 10 2023, 10:58 PM
bses30074_gmail.com requested review of D41414: lastlogin: Complete libxo transition..
Aug 10 2023, 10:57 PM
bses30074_gmail.com updated bses30074_gmail.com.
Aug 10 2023, 10:37 PM
bses30074_gmail.com added reviewers for D41413: jls: Complete libxo transition.: lwhsu, des.
Aug 10 2023, 10:36 PM
bses30074_gmail.com requested review of D41413: jls: Complete libxo transition..
Aug 10 2023, 10:33 PM
bses30074_gmail.com added reviewers for D41411: efitable: Complete libxo transition.: des, lwhsu.
Aug 10 2023, 8:42 PM
bses30074_gmail.com requested review of D41411: efitable: Complete libxo transition..
Aug 10 2023, 8:40 PM
bses30074_gmail.com abandoned D41407: arp: Complete libxo transition..

Ignore this. Create this revision accidentally.

Aug 10 2023, 8:11 PM
bses30074_gmail.com added reviewers for D41408: arp: Complete libxo transition.: lwhsu, des.
Aug 10 2023, 8:01 PM
bses30074_gmail.com requested review of D41408: arp: Complete libxo transition..
Aug 10 2023, 8:00 PM
bses30074_gmail.com requested review of D41407: arp: Complete libxo transition..
Aug 10 2023, 7:59 PM
bses30074_gmail.com added inline comments to D41392: savecore: Complete libxo transition..
Aug 10 2023, 7:12 PM
bses30074_gmail.com updated the diff for D41392: savecore: Complete libxo transition..

Update with exit(EXIT_SUCCESS) to replace return (0)

Aug 10 2023, 3:30 PM
bses30074_gmail.com added inline comments to D41392: savecore: Complete libxo transition..
Aug 10 2023, 3:11 PM

Aug 9 2023

bses30074_gmail.com added reviewers for D41392: savecore: Complete libxo transition.: lwhsu, des.
Aug 9 2023, 12:58 PM
bses30074_gmail.com requested review of D41392: savecore: Complete libxo transition..
Aug 9 2023, 12:56 PM
bses30074_gmail.com added reviewers for D41390: mount: Complete libxo transition.: lwhsu, des.
Aug 9 2023, 3:35 AM
bses30074_gmail.com requested review of D41390: mount: Complete libxo transition..
Aug 9 2023, 3:32 AM

Jun 28 2023

bses30074_gmail.com added a comment to D40611: Add `pwd` test.

I use the output of getcwd, realpath C functions, and $PWD environment variable to ensure the output of the pwd is correct.

  1. realpath -> absolute path
  2. getcwd -> absolute path
  3. $PWD -> logical path
Jun 28 2023, 8:10 AM
bses30074_gmail.com updated the diff for D40611: Add `pwd` test.

update get_path.c

Jun 28 2023, 7:51 AM

Jun 19 2023

bses30074_gmail.com requested review of D40611: Add `pwd` test.
Jun 19 2023, 5:27 PM

Dec 29 2022

bses30074_gmail.com changed the visibility for D36623: Fix freebsd-doc zh-tw pdf font(has tofu) problem.
Dec 29 2022, 4:40 AM