Skip to content

Commit fecdf01

Browse files
committed
fix: remove myfs and fix some ci problem
1 parent 706491f commit fecdf01

13 files changed

Lines changed: 4 additions & 43 deletions

File tree

Cargo.lock

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/arceos_api/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ fs = ["dep:axfs", "dep:axdriver", "axfeat/fs"]
2222
net = ["dep:axnet", "dep:axdriver", "axfeat/net"]
2323
display = ["dep:axdisplay", "dep:axdriver", "axfeat/display"]
2424

25-
myfs = ["axfeat/fs"]
2625

2726
# Use dummy functions if the feature is not enabled
2827
dummy-if-not-enabled = []

api/arceos_api/src/imp/fs.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ pub use axfs::fops::FileType as AxFileType;
99
pub use axfs::fops::OpenOptions as AxOpenOptions;
1010
pub use axio::SeekFrom as AxSeekFrom;
1111

12-
#[cfg(feature = "myfs")]
13-
pub use axfs::dev::Disk as AxDisk;
1412

1513
/// A handle to an opened file.
1614
pub struct AxFileHandle(File);

api/arceos_api/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,6 @@ pub mod fs {
192192
pub type AxFilePerm;
193193
pub type AxDirEntry;
194194
pub type AxSeekFrom;
195-
#[cfg(feature = "myfs")]
196-
pub type AxDisk;
197195
}
198196

199197
define_api! {

api/axfeat/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
//! - `sched-cfs`: Use the Completely Fair Scheduler (CFS) preemptive scheduler.
2323
//! - Upperlayer stacks (fs, net, display)
2424
//! - `fs`: Enable file system support.
25-
//! - `myfs`: Allow users to define their custom filesystems to override the default.
2625
//! - `net`: Enable networking support.
2726
//! - `display`: Enable graphics support.
2827
//! - Device drivers

examples/shell/Cargo.toml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,7 @@ authors = ["Yuekai Jia <equation618@gmail.com>"]
77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

99
[features]
10-
use-ramfs = [
11-
"axstd/myfs",
12-
"dep:axfs_vfs",
13-
"dep:axfs_ramfs",
14-
"dep:crate_interface",
15-
]
1610
default = []
1711

1812
[dependencies]
19-
axfs_vfs = { version = "0.1", optional = true }
20-
axfs_ramfs = { version = "0.1", optional = true }
21-
crate_interface = { workspace = true, optional = true }
22-
axstd = { workspace = true, features = ["alloc", "fs"], optional = true }
13+
axstd = { workspace = true, features = ["alloc", "fs"], optional = true }

examples/shell/src/cmd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,4 +302,4 @@ fn split_whitespace(str: &str) -> (&str, &str) {
302302
let str = str.trim();
303303
str.find(char::is_whitespace)
304304
.map_or((str, ""), |n| (&str[..n], str[n + 1..].trim()))
305-
}
305+
}

examples/shell/src/main.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ fn path_to_str(path: &str) -> &str {
1717

1818
mod cmd;
1919

20-
#[cfg(feature = "use-ramfs")]
21-
mod ramfs;
22-
2320
use std::io::prelude::*;
2421

2522
const LF: u8 = b'\n';
@@ -79,4 +76,4 @@ fn main() {
7976
}
8077
}
8178
}
82-
}
79+
}

examples/shell/src/ramfs.rs

Lines changed: 0 additions & 15 deletions
This file was deleted.

modules/axfs/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ pub fn init_filesystems(mut blk_devs: AxDeviceContainer<AxBlockDevice>, bootargs
7474

7575
#[cfg(feature = "monolitic")]
7676
/// Initializes filesystems in monolithic mode.
77-
pub fn init_filesystems(mut block_devs: AxDeviceContainer<AxBlockDevice>) {
77+
pub fn init_filesystems(mut block_devs: AxDeviceContainer<AxBlockDevice>, _bootargs: Option<&str>) {
7878
info!("Initialize filesystem subsystem...");
7979

8080
let dev = block_devs.take_one().expect("No block device found!");

0 commit comments

Comments
 (0)