Closed SonikaG closed 6 years ago
@SonikaG, could you change the PR name to be more descriptive about what it does?
@SonikaG could we get the changes in and get this merged soon please?
Yup! I having a little bit of trouble with using fdisk but I should have the changes in shortly.
Sorry for the delay, I've got the changes. Two things to note:
Thank you so much :)
All fixed up, let me know if I missed anything!
Please let me know if any of the assumptions I've made in the code are incorrect. I am currently using popen and pclose, which pipes the output of the "df" command into a file and then reads it, to get the file system size. Let me know if there's a better way to handle that. Additionally, currently, the mount directory is just hardcoded to /mnt/snapshot. If I need to change this so that the user can pass it in instead, let me know. Also, to check that I am actually able to access the variables once they are set, I replaced the constant TEST_MNT with mntdir and ran a test (rename_root_to_sub). The test ran the same way as before. Hopefully this takes care of issue #9 . Let me know if I missed anything.
Thank you :)