Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 79559
b: refs/heads/master
c: e68b903
h: refs/heads/master
i:
  79557: b37f232
  79555: 320e495
  79551: b62157c
v: v3
  • Loading branch information
Martin K. Petersen authored and Jens Axboe committed Jan 29, 2008
1 parent eb661f2 commit 4f2cd98
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7da975a231ae8c11593fd79d1083215321be213a
refs/heads/master: e68b903c6b2b88c60050675b056648468f33ab54
11 changes: 11 additions & 0 deletions trunk/block/blk-sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ static ssize_t queue_max_sectors_show(struct request_queue *q, char *page)
return queue_var_show(max_sectors_kb, (page));
}

static ssize_t queue_hw_sector_size_show(struct request_queue *q, char *page)
{
return queue_var_show(q->hardsect_size, page);
}

static ssize_t
queue_max_sectors_store(struct request_queue *q, const char *page, size_t count)
{
Expand Down Expand Up @@ -160,12 +165,18 @@ static struct queue_sysfs_entry queue_iosched_entry = {
.store = elv_iosched_store,
};

static struct queue_sysfs_entry queue_hw_sector_size_entry = {
.attr = {.name = "hw_sector_size", .mode = S_IRUGO },
.show = queue_hw_sector_size_show,
};

static struct attribute *default_attrs[] = {
&queue_requests_entry.attr,
&queue_ra_entry.attr,
&queue_max_hw_sectors_entry.attr,
&queue_max_sectors_entry.attr,
&queue_iosched_entry.attr,
&queue_hw_sector_size_entry.attr,
NULL,
};

Expand Down

0 comments on commit 4f2cd98

Please sign in to comment.