1 |
douglas |
402 |
// Spectre 2 |
2 |
|
|
// |
3 |
|
|
// Douglas Thrift |
4 |
|
|
// |
5 |
|
|
// $Id$ |
6 |
|
|
|
7 |
|
|
#include "Unmounter.hpp" |
8 |
|
|
|
9 |
douglas |
431 |
void Unmounter::operator()() |
10 |
douglas |
402 |
{ |
11 |
douglas |
432 |
_L<ext::String> args(1, "-f"); |
12 |
|
|
|
13 |
|
|
#ifndef __FreeBSD__ |
14 |
|
|
args[0].InsertAllLast("l"); |
15 |
|
|
#endif |
16 |
|
|
args.InsertLast(share.getMount()); |
17 |
|
|
|
18 |
|
|
_S<api::Process> umount(Spectre2::umount, args); |
19 |
|
|
|
20 |
|
|
if (Spectre2::debug) |
21 |
|
|
ios::ReadToWrite(*umount.GetReader(), api::Cout); |
22 |
|
|
else |
23 |
|
|
ios::Discard(*umount.GetReader()); |
24 |
douglas |
402 |
} |