Re: [PATCH v2 5/5] generic: test invalid swap file activation

2018-05-22 Thread Eryu Guan
On Fri, May 18, 2018 at 07:37:07AM -0700, Darrick J. Wong wrote: > On Wed, May 16, 2018 at 01:38:49PM -0700, Omar Sandoval wrote: > > From: Omar Sandoval > > > > Swap files cannot have holes, and they must at least two pages. > > swapon(8) and mkswap(8) have stricter

Re: [PATCH v2 5/5] generic: test invalid swap file activation

2018-05-18 Thread Darrick J. Wong
On Wed, May 16, 2018 at 01:38:49PM -0700, Omar Sandoval wrote: > From: Omar Sandoval > > Swap files cannot have holes, and they must at least two pages. > swapon(8) and mkswap(8) have stricter restrictions, so add versions of > those commands without any restrictions. > >

[PATCH v2 5/5] generic: test invalid swap file activation

2018-05-16 Thread Omar Sandoval
From: Omar Sandoval Swap files cannot have holes, and they must at least two pages. swapon(8) and mkswap(8) have stricter restrictions, so add versions of those commands without any restrictions. Signed-off-by: Omar Sandoval --- .gitignore| 2 ++