Doubts, approach and sample code
Hello
I have made an inital attempt on small task 2 found here:
https://kernelnewbies.org/JuliaLawall/#head-64863b6a2bfaec7448a8755a3430b311d2c0ce7d
This is the code I have written:
http://pastebin.com/raw/uS4JAcWC
This is the sample diff I have tested the code on:
http://pastebin.com/raw/h3PMSuae
Approach:
1. Grep out the names of the files modified by pattern '--- a'.
2. make the files and use stat to get total size.
3. Apply the patch and repeat procedure to get total size.
Doubts:
1. whether my assumptions of patch_file and dir paths are correct.
2. whether the method to get the files modified is foolproof.
Please check my approach and suggest ways of improving it.
Once the logic is approved, I would like to work on error handling, refining the code including de-duplication and any other necessary changes.
Thanks for your time.
Rehas
Quoted 20 lines · Rehas Sachdeva
Hello
I have made an inital attempt on small task 2 found here:
https://kernelnewbies.org/JuliaLawall/#head-64863b6a2bfaec7448a8755a3430b311d2c0ce7dThis is the code I have written:
http://pastebin.com/raw/uS4JAcWCThis is the sample diff I have tested the code on:
http://pastebin.com/raw/h3PMSuaeApproach:
1. Grep out the names of the files modified by pattern '--- a'.
2. make the files and use stat to get total size.
3. Apply the patch and repeat procedure to get total size.Doubts:
1. whether my assumptions ofpatch_fileand dir paths are correct.
2. whether the method to get the files modified is foolproof.
Quoted 8 lines
Please check my approach and suggest ways of improving it.
Once the logic is approved, I would like to work on error handling, refining the code including de-duplication and any other necessary changes.
Thanks for your time.
Rehas
Hi Rehas,
Sorry, no technical answer from me, just wondering what's up with the pastebin? Sayli just used it also, and I had to jump out of mutt to see her error message. If I was going to comment on the code you put in the pastebin, how do i do that inline?
alisons
Quoted 7 lines
Signature · 6 lines
-- You received this message because you are subscribed to the Google Groups "outreachy-kernel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20160922062817.GA11923%40toblerone. For more options, visit https://groups.google.com/d/optout.