Re: [RFC PATCH 0/14] xfs: Towards thin provisioning aware filesystems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Nov 03, 2017 at 07:36:23AM -0400, Brian Foster wrote:
> On Thu, Nov 02, 2017 at 07:47:40PM -0700, Darrick J. Wong wrote:
> > FWIW the way I've been modelling this patch series in my head is that we
> > format an arbitrarily large filesystem (m_LBA_size) address space on a
> > thinp, feed statfs an "adjusted" size (m_usable_size)i which restricts
> > how much space we can allocate, and now growfs increases or decreases
> > the adjusted size without having to relocate anything or mess with the
> > address space.  If the adjusted size ever exceeds the address space
> > size, then we tack on more AGs like we've always done.  From that POV,
> > there's no need to physically shrink (i.e. relocate) anything (and we
> > can leave that for later/never).

[...]

> For example, suppose we had an absolute crude, barebones implementation
> of physical shrink right now that basically trimmmed the amount of space
> from the end of the fs iff those AGs were completely empty and otherwise
> returned -EBUSY. There is no other userspace support, etc. As such, this
> hypothetical feature is extremely limited to being usable immediately
> after a growfs and thus probably has no use case other than "undo my
> accidental growfs."
> 
> If we had that right now, _then_ what would the logical shrink interface
> look like?

Absolutely no different to what I'm proposing we do right now. That
is, the behaviour of the "shrink to size X" ioctl is determined by
the feature bit in the superblock.  Hence if the thinspace feature
is set we do a thin shrink, and if it is not set we do a physical
shrink. i.e. grow/shrink behaviour is defined by the kernel
implementation, not the user or the interface.

As it is, I still can't see a use case or compelling reason for
physically shrinking a thin filesystem. What's the use case that
leads you to think that we need to physically shrink a thin
filesystem, Brian? Let's get that on the table first, rather than
waste time discussing hypothetical what-if's....

Cheers,

Dave.
-- 
Dave Chinner
david@xxxxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux