Commit f0f76aa
committed
eject: use libmount context API for umount
libmount provides a context API that can be used to replace
the fork+exec code pattern needed to leverage umount(8).
This does not only simplify the code base but also removes
the concern for signal handling due to a wait(2) call, avoids
forking and allocating additional system resources, reduces
security management and makes the code more consistent as other
functions were already using some libmount functionalities.
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>1 parent 174f184 commit f0f76aa
1 file changed
Lines changed: 16 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
654 | 654 | | |
655 | 655 | | |
656 | 656 | | |
657 | | - | |
658 | 657 | | |
659 | 658 | | |
660 | 659 | | |
661 | | - | |
| 660 | + | |
| 661 | + | |
662 | 662 | | |
663 | 663 | | |
664 | | - | |
| 664 | + | |
665 | 665 | | |
666 | 666 | | |
667 | 667 | | |
668 | | - | |
669 | | - | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
676 | 671 | | |
677 | | - | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
678 | 675 | | |
679 | | - | |
680 | | - | |
681 | | - | |
| 676 | + | |
| 677 | + | |
682 | 678 | | |
683 | | - | |
684 | | - | |
685 | | - | |
686 | | - | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
687 | 683 | | |
688 | | - | |
689 | | - | |
690 | | - | |
691 | | - | |
| 684 | + | |
692 | 685 | | |
693 | 686 | | |
694 | 687 | | |
| |||
872 | 865 | | |
873 | 866 | | |
874 | 867 | | |
875 | | - | |
876 | | - | |
877 | | - | |
878 | 868 | | |
879 | 869 | | |
880 | 870 | | |
| |||
0 commit comments