Displaying 5 results from an estimated 5 matches for "is_ssd".
Did you mean:
is_bsd
2013 Sep 04
0
[PATCH] Btrfs-progs: fix compile warning in is_ssd()
mkfs.c: In function ‘is_ssd’:
mkfs.c:1168:26: warning: ignoring return value of ‘blkid_devno_to_wholedisk’,
declared with attribute warn_unused_result [-Wunused-result]
blkid_devno_to_wholedisk(devno, wholedisk, sizeof(wholedisk), NULL);
Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
---
mkfs.c | 8 +++++++...
2013 Apr 11
2
[PATCH 1/2] btrfs-progs: replace blkid_probe_get_wholedisk_devno
...the upside is
that this code compiles on older systems.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
---
diff --git a/mkfs.c b/mkfs.c
index c8cb395..7df78fc 100644
--- a/mkfs.c
+++ b/mkfs.c
@@ -1215,9 +1215,8 @@ static int check_leaf_or_node_size(u32 size, u32 sectorsize)
static int is_ssd(const char *file)
{
- char *devname;
blkid_probe probe;
- char *dev;
+ char dev[32];
char path[PATH_MAX];
dev_t disk;
int fd;
@@ -1227,24 +1226,16 @@ static int is_ssd(const char *file)
if (!probe)
return 0;
- /*
- * We want to use blkid_devno_to_wholedisk() but it''s broke...
2013 Sep 05
12
[PATCH 0/5] Memory leaks amended
Memory leaks found by the tool--valgrind along with static reviewing.
Based on Daivd''s branch ''integration-20130903''.
Gui Hecheng (5):
btrfs-progs:free local variable buf upon unsuccessful returns
btrfs-progs:local variable memory freed
btrfs-progs: missing tree-freeing statements added
btrfs-progs:free the local list pending_list in btrfs_scan_one_dir
2013 Mar 21
6
Problems with compiling btrfs
...633), reused 3015 (delta 2246)
Receiving objects: 100% (3539/3539), 1.02 MiB | 613 KiB/s, done.
Resolving deltas: 100% (2633/2633), done.
[root@ol6 src]# cd btrfs-progs
[root@ol6 btrfs-progs]# pwd
/usr/local/src/btrfs-progs
[root@ol6 btrfs-progs]# make
[LD] mkfs.btrfs
mkfs.o: In function `is_ssd'':
/usr/local/src/btrfs-progs/mkfs.c:1234: undefined reference to
`blkid_probe_get_wholedisk_devno''
collect2: ld returned 1 exit status
make: *** [mkfs.btrfs] Error 1
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to maj...
2013 May 16
0
[PATCH] btrfs-progs: mkfs: add -O option to specify fs features
...= {
{ "version", 0, NULL, ''V'' },
{ "rootdir", 1, NULL, ''r'' },
{ "nodiscard", 0, NULL, ''K'' },
+ { "features", 0, NULL, ''O'' },
{ 0, 0, 0, 0}
};
@@ -1253,6 +1255,87 @@ static int is_ssd(const char *file)
return !atoi((const char *)&rotational);
}
+#define BTRFS_FEATURE_LIST_ALL (1ULL << 63)
+
+static const struct btrfs_fs_feature {
+ const char *name;
+ u64 flag;
+ const char *desc;
+} mkfs_features[] = {
+ { "mixed-bg", BTRFS_FEATURE_INCOMPAT_MIXED_GROUP...