libstorage-ng
Toggle main menu visibility
Loading...
Searching...
No Matches
Ext.h
1
/*
2
* Copyright (c) [2014-2015] Novell, Inc.
3
* Copyright (c) 2017 SUSE LLC
4
*
5
* All Rights Reserved.
6
*
7
* This program is free software; you can redistribute it and/or modify it
8
* under the terms of version 2 of the GNU General Public License as published
9
* by the Free Software Foundation.
10
*
11
* This program is distributed in the hope that it will be useful, but WITHOUT
12
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14
* more details.
15
*
16
* You should have received a copy of the GNU General Public License along
17
* with this program; if not, contact Novell, Inc.
18
*
19
* To contact Novell about this file by physical or electronic mail, you may
20
* find current contact information at www.novell.com.
21
*/
22
23
24
#ifndef STORAGE_EXT_H
25
#define STORAGE_EXT_H
26
27
28
#include "storage/Filesystems/BlkFilesystem.h"
29
30
31
namespace
storage
32
{
33
37
class
Ext :
public
BlkFilesystem
38
{
39
40
public
:
41
42
class
Impl;
43
44
Impl& get_impl();
45
const
Impl& get_impl()
const
;
46
47
protected
:
48
49
Ext(Impl* impl);
50
ST_NO_SWIG Ext(std::unique_ptr<Device::Impl>&& impl);
51
52
};
53
54
60
bool
is_ext
(
const
Device
* device);
61
68
Ext
*
to_ext
(
Device
* device);
69
73
const
Ext
*
to_ext
(
const
Device
* device);
74
75
}
76
77
#endif
storage::Device
An abstract base class for storage devices.
Definition
Device.h:82
storage::Ext
Abstract base class for Ext2, Ext3 and Ext4.
Definition
Ext.h:38
storage
The storage namespace.
Definition
Actiongraph.h:40
storage::is_ext
bool is_ext(const Device *device)
Checks whether device points to an Ext.
storage::to_ext
Ext * to_ext(Device *device)
Converts pointer to Device to pointer to Ext.
storage
Filesystems
Ext.h
Generated by
1.17.0