Project

General

Profile

Actions

Bug #3559

closed

setting a volsize larger than the space available sometimes succeeds

Added by Christopher Siden over 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Category:
zfs - Zettabyte File System
Start date:
2013-02-14
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

If you try to set the volsize of a non-sparse zvol larger than the space available the system should return ENOSPC. However, some of the calculations in this code path are always done with the default block size (8k) rather than the zvol's actual block size, which causes ZFS to believe that the zvol is a sparse zvol and allowing you to set the volsize to any value, regardless of the space available in the pool.

Actions

Also available in: Atom PDF