[RFC 3/6] afs: Add time limits in the super block

Jeffrey Altman jaltman at auristor.com
Thu Nov 24 07:37:35 PST 2016


Timestamps in afs3 are signed 32-bit.   The range is from -2^31-1 to
2^31 not 0 to 2^32.

Jeffrey Altman

On 11/23/2016 7:47 PM, Deepa Dinamani wrote:
> Note that all the filesystems that have such simple limits
> will be initialized in the same patch.
> 
> Signed-off-by: Deepa Dinamani <deepa.kernel at gmail.com>
> Cc: linux-afs at lists.infradead.org
> ---
>  fs/afs/super.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/fs/afs/super.c b/fs/afs/super.c
> index fbdb022..ab00434 100644
> --- a/fs/afs/super.c
> +++ b/fs/afs/super.c
> @@ -321,6 +321,8 @@ static int afs_fill_super(struct super_block *sb,
>  	sb->s_op		= &afs_super_ops;
>  	sb->s_bdi		= &as->volume->bdi;
>  	strlcpy(sb->s_id, as->volume->vlocation->vldb.name, sizeof(sb->s_id));
> +	sb->s_time_max = Y2106_EXPIRY_TIMESTAMP;
> +	sb->s_time_min = 0;
>  
>  	/* allocate the root inode and dentry */
>  	fid.vid		= as->volume->vid;
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: jaltman.vcf
Type: text/x-vcard
Size: 395 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-afs/attachments/20161124/2447828f/attachment.vcf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4057 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.infradead.org/pipermail/linux-afs/attachments/20161124/2447828f/attachment.p7s>


More information about the linux-afs mailing list