mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
parted: add ahci support
This commit is contained in:
@@ -15,7 +15,7 @@ new file mode 100644
|
||||
index 0000000..4fda5e7
|
||||
--- /dev/null
|
||||
+++ parted-workdir/libparted/arch/astral.c
|
||||
@@ -0,0 +1,561 @@
|
||||
@@ -0,0 +1,564 @@
|
||||
+/*
|
||||
+ libparted - a library for manipulating disk partitions
|
||||
+ Copyright (C) 2006-2007, 2009-2014, 2019-2023 Free Software Foundation,
|
||||
@@ -145,6 +145,9 @@ index 0000000..4fda5e7
|
||||
+ if (dev->path && strstr(dev->path, "vioblk"))
|
||||
+ return PED_DEVICE_VIRTBLK;
|
||||
+
|
||||
+ if (dev->path && strstr(dev->path, "ahci"))
|
||||
+ return PED_DEVICE_SCSI;
|
||||
+
|
||||
+ return PED_DEVICE_UNKNOWN;
|
||||
+error:
|
||||
+ close(fd);
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
name=parted
|
||||
revision=1
|
||||
revision=2
|
||||
from_source=parted
|
||||
imagedeps="build-essential"
|
||||
hostdeps="xgcc xbinutils pkgconfig libtool"
|
||||
|
||||
Reference in New Issue
Block a user