[LU-808] add check for truncate to size larger than rlimit Created: 31/Oct/11  Updated: 02/May/12  Resolved: 05/Apr/12

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.2.0
Fix Version/s: Lustre 2.3.0

Type: Improvement Priority: Minor
Reporter: Andreas Dilger Assignee: Andreas Dilger
Resolution: Fixed Votes: 0
Labels: None

Story Points: 1
Rank (Obsolete): 4671

 Description   

Add check to ll_setattr_raw() to handle the case for truncate to a file size larger than the rlimit set for the process. This is normally handled by inode_change_ok->inode_newsize_ok(), but we don't call inode_change_ok() directly.



 Comments   
Comment by Andreas Dilger [ 31/Oct/11 ]

http://review.whamcloud.com/1635

Comment by Build Master (Inactive) [ 29/Mar/12 ]

Integrated in lustre-master » i686,server,el6,inkernel #530
LU-808 llite: deny truncate beyond user rlimit (Revision a44174684d800d74d35d9eb0b1b65bcfd0dd8163)

Result = SUCCESS
Oleg Drokin : a44174684d800d74d35d9eb0b1b65bcfd0dd8163
Files :

  • lustre/llite/llite_lib.c
  • lustre/include/lustre_lite.h
  • lustre/liblustre/super.c
  • lustre/liblustre/llite_lib.h
  • lustre/obdclass/obd_mount.c
Comment by Build Master (Inactive) [ 29/Mar/12 ]

Integrated in lustre-master » i686,client,el6,inkernel #530
LU-808 llite: deny truncate beyond user rlimit (Revision a44174684d800d74d35d9eb0b1b65bcfd0dd8163)

Result = SUCCESS
Oleg Drokin : a44174684d800d74d35d9eb0b1b65bcfd0dd8163
Files :

  • lustre/include/lustre_lite.h
  • lustre/obdclass/obd_mount.c
  • lustre/llite/llite_lib.c
  • lustre/liblustre/super.c
  • lustre/liblustre/llite_lib.h
Comment by Build Master (Inactive) [ 29/Mar/12 ]

Integrated in lustre-master » x86_64,client,sles11,inkernel #530
LU-808 llite: deny truncate beyond user rlimit (Revision a44174684d800d74d35d9eb0b1b65bcfd0dd8163)

Result = SUCCESS
Oleg Drokin : a44174684d800d74d35d9eb0b1b65bcfd0dd8163
Files :

  • lustre/obdclass/obd_mount.c
  • lustre/llite/llite_lib.c
  • lustre/include/lustre_lite.h
  • lustre/liblustre/super.c
  • lustre/liblustre/llite_lib.h
Comment by Build Master (Inactive) [ 29/Mar/12 ]

Integrated in lustre-master » x86_64,client,ubuntu1004,inkernel #530
LU-808 llite: deny truncate beyond user rlimit (Revision a44174684d800d74d35d9eb0b1b65bcfd0dd8163)

Result = SUCCESS
Oleg Drokin : a44174684d800d74d35d9eb0b1b65bcfd0dd8163
Files :

  • lustre/include/lustre_lite.h
  • lustre/liblustre/super.c
  • lustre/llite/llite_lib.c
  • lustre/liblustre/llite_lib.h
  • lustre/obdclass/obd_mount.c
Comment by Build Master (Inactive) [ 29/Mar/12 ]

Integrated in lustre-master » i686,client,el6,ofa #530
LU-808 llite: deny truncate beyond user rlimit (Revision a44174684d800d74d35d9eb0b1b65bcfd0dd8163)

Result = SUCCESS
Oleg Drokin : a44174684d800d74d35d9eb0b1b65bcfd0dd8163
Files :

  • lustre/llite/llite_lib.c
  • lustre/obdclass/obd_mount.c
  • lustre/liblustre/super.c
  • lustre/liblustre/llite_lib.h
  • lustre/include/lustre_lite.h
Comment by Build Master (Inactive) [ 29/Mar/12 ]

Integrated in lustre-master » i686,server,el6,ofa #530
LU-808 llite: deny truncate beyond user rlimit (Revision a44174684d800d74d35d9eb0b1b65bcfd0dd8163)

Result = SUCCESS
Oleg Drokin : a44174684d800d74d35d9eb0b1b65bcfd0dd8163
Files :

  • lustre/obdclass/obd_mount.c
  • lustre/include/lustre_lite.h
  • lustre/llite/llite_lib.c
  • lustre/liblustre/llite_lib.h
  • lustre/liblustre/super.c
Comment by Build Master (Inactive) [ 29/Mar/12 ]

Integrated in lustre-master » i686,client,el5,ofa #530
LU-808 llite: deny truncate beyond user rlimit (Revision a44174684d800d74d35d9eb0b1b65bcfd0dd8163)

Result = SUCCESS
Oleg Drokin : a44174684d800d74d35d9eb0b1b65bcfd0dd8163
Files :

  • lustre/llite/llite_lib.c
  • lustre/liblustre/llite_lib.h
  • lustre/obdclass/obd_mount.c
  • lustre/include/lustre_lite.h
  • lustre/liblustre/super.c
Comment by Build Master (Inactive) [ 29/Mar/12 ]

Integrated in lustre-master » x86_64,server,el6,ofa #530
LU-808 llite: deny truncate beyond user rlimit (Revision a44174684d800d74d35d9eb0b1b65bcfd0dd8163)

Result = SUCCESS
Oleg Drokin : a44174684d800d74d35d9eb0b1b65bcfd0dd8163
Files :

  • lustre/liblustre/llite_lib.h
  • lustre/obdclass/obd_mount.c
  • lustre/llite/llite_lib.c
  • lustre/liblustre/super.c
  • lustre/include/lustre_lite.h
Comment by Build Master (Inactive) [ 29/Mar/12 ]

Integrated in lustre-master » i686,server,el5,ofa #530
LU-808 llite: deny truncate beyond user rlimit (Revision a44174684d800d74d35d9eb0b1b65bcfd0dd8163)

Result = SUCCESS
Oleg Drokin : a44174684d800d74d35d9eb0b1b65bcfd0dd8163
Files :

  • lustre/liblustre/super.c
  • lustre/llite/llite_lib.c
  • lustre/liblustre/llite_lib.h
  • lustre/include/lustre_lite.h
  • lustre/obdclass/obd_mount.c
Comment by Build Master (Inactive) [ 29/Mar/12 ]

Integrated in lustre-master » i686,client,el5,inkernel #530
LU-808 llite: deny truncate beyond user rlimit (Revision a44174684d800d74d35d9eb0b1b65bcfd0dd8163)

Result = SUCCESS
Oleg Drokin : a44174684d800d74d35d9eb0b1b65bcfd0dd8163
Files :

  • lustre/liblustre/llite_lib.h
  • lustre/liblustre/super.c
  • lustre/llite/llite_lib.c
  • lustre/obdclass/obd_mount.c
  • lustre/include/lustre_lite.h
Comment by Build Master (Inactive) [ 29/Mar/12 ]

Integrated in lustre-master » x86_64,client,el6,ofa #530
LU-808 llite: deny truncate beyond user rlimit (Revision a44174684d800d74d35d9eb0b1b65bcfd0dd8163)

Result = SUCCESS
Oleg Drokin : a44174684d800d74d35d9eb0b1b65bcfd0dd8163
Files :

  • lustre/llite/llite_lib.c
  • lustre/liblustre/super.c
  • lustre/liblustre/llite_lib.h
  • lustre/include/lustre_lite.h
  • lustre/obdclass/obd_mount.c
Comment by Build Master (Inactive) [ 29/Mar/12 ]

Integrated in lustre-master » x86_64,server,el6,inkernel #530
LU-808 llite: deny truncate beyond user rlimit (Revision a44174684d800d74d35d9eb0b1b65bcfd0dd8163)

Result = SUCCESS
Oleg Drokin : a44174684d800d74d35d9eb0b1b65bcfd0dd8163
Files :

  • lustre/llite/llite_lib.c
  • lustre/liblustre/llite_lib.h
  • lustre/include/lustre_lite.h
  • lustre/liblustre/super.c
  • lustre/obdclass/obd_mount.c
Comment by Build Master (Inactive) [ 29/Mar/12 ]

Integrated in lustre-master » x86_64,client,el6,inkernel #530
LU-808 llite: deny truncate beyond user rlimit (Revision a44174684d800d74d35d9eb0b1b65bcfd0dd8163)

Result = SUCCESS
Oleg Drokin : a44174684d800d74d35d9eb0b1b65bcfd0dd8163
Files :

  • lustre/liblustre/llite_lib.h
  • lustre/liblustre/super.c
  • lustre/obdclass/obd_mount.c
  • lustre/llite/llite_lib.c
  • lustre/include/lustre_lite.h
Comment by Build Master (Inactive) [ 29/Mar/12 ]

Integrated in lustre-master » i686,server,el5,inkernel #530
LU-808 llite: deny truncate beyond user rlimit (Revision a44174684d800d74d35d9eb0b1b65bcfd0dd8163)

Result = SUCCESS
Oleg Drokin : a44174684d800d74d35d9eb0b1b65bcfd0dd8163
Files :

  • lustre/llite/llite_lib.c
  • lustre/obdclass/obd_mount.c
  • lustre/liblustre/llite_lib.h
  • lustre/include/lustre_lite.h
  • lustre/liblustre/super.c
Comment by Build Master (Inactive) [ 29/Mar/12 ]

Integrated in lustre-master » x86_64,server,el5,ofa #530
LU-808 llite: deny truncate beyond user rlimit (Revision a44174684d800d74d35d9eb0b1b65bcfd0dd8163)

Result = SUCCESS
Oleg Drokin : a44174684d800d74d35d9eb0b1b65bcfd0dd8163
Files :

  • lustre/liblustre/llite_lib.h
  • lustre/llite/llite_lib.c
  • lustre/liblustre/super.c
  • lustre/include/lustre_lite.h
  • lustre/obdclass/obd_mount.c
Comment by Build Master (Inactive) [ 29/Mar/12 ]

Integrated in lustre-master » x86_64,server,el5,inkernel #530
LU-808 llite: deny truncate beyond user rlimit (Revision a44174684d800d74d35d9eb0b1b65bcfd0dd8163)

Result = SUCCESS
Oleg Drokin : a44174684d800d74d35d9eb0b1b65bcfd0dd8163
Files :

  • lustre/liblustre/llite_lib.h
  • lustre/obdclass/obd_mount.c
  • lustre/include/lustre_lite.h
  • lustre/llite/llite_lib.c
  • lustre/liblustre/super.c
Comment by Build Master (Inactive) [ 29/Mar/12 ]

Integrated in lustre-master » x86_64,client,el5,inkernel #530
LU-808 llite: deny truncate beyond user rlimit (Revision a44174684d800d74d35d9eb0b1b65bcfd0dd8163)

Result = SUCCESS
Oleg Drokin : a44174684d800d74d35d9eb0b1b65bcfd0dd8163
Files :

  • lustre/llite/llite_lib.c
  • lustre/include/lustre_lite.h
  • lustre/liblustre/super.c
  • lustre/obdclass/obd_mount.c
  • lustre/liblustre/llite_lib.h
Comment by Build Master (Inactive) [ 29/Mar/12 ]

Integrated in lustre-master » x86_64,client,el5,ofa #530
LU-808 llite: deny truncate beyond user rlimit (Revision a44174684d800d74d35d9eb0b1b65bcfd0dd8163)

Result = SUCCESS
Oleg Drokin : a44174684d800d74d35d9eb0b1b65bcfd0dd8163
Files :

  • lustre/liblustre/super.c
  • lustre/llite/llite_lib.c
  • lustre/liblustre/llite_lib.h
  • lustre/include/lustre_lite.h
  • lustre/obdclass/obd_mount.c
Comment by Andreas Dilger [ 05/Apr/12 ]

Patch landed for 2.3.0

Comment by Build Master (Inactive) [ 02/May/12 ]

Integrated in lustre-dev » x86_64,client,el5,inkernel #340
LU-808 llite: deny truncate beyond user rlimit (Revision a44174684d800d74d35d9eb0b1b65bcfd0dd8163)

Result = SUCCESS
Oleg Drokin : a44174684d800d74d35d9eb0b1b65bcfd0dd8163
Files :

  • lustre/include/lustre_lite.h
  • lustre/llite/llite_lib.c
  • lustre/liblustre/llite_lib.h
  • lustre/obdclass/obd_mount.c
  • lustre/liblustre/super.c
Comment by Build Master (Inactive) [ 02/May/12 ]

Integrated in lustre-dev » i686,client,el6,inkernel #340
LU-808 llite: deny truncate beyond user rlimit (Revision a44174684d800d74d35d9eb0b1b65bcfd0dd8163)

Result = SUCCESS
Oleg Drokin : a44174684d800d74d35d9eb0b1b65bcfd0dd8163
Files :

  • lustre/liblustre/llite_lib.h
  • lustre/liblustre/super.c
  • lustre/include/lustre_lite.h
  • lustre/obdclass/obd_mount.c
  • lustre/llite/llite_lib.c
Comment by Build Master (Inactive) [ 02/May/12 ]

Integrated in lustre-dev » i686,server,el5,inkernel #340
LU-808 llite: deny truncate beyond user rlimit (Revision a44174684d800d74d35d9eb0b1b65bcfd0dd8163)

Result = SUCCESS
Oleg Drokin : a44174684d800d74d35d9eb0b1b65bcfd0dd8163
Files :

  • lustre/liblustre/super.c
  • lustre/obdclass/obd_mount.c
  • lustre/llite/llite_lib.c
  • lustre/include/lustre_lite.h
  • lustre/liblustre/llite_lib.h
Comment by Build Master (Inactive) [ 02/May/12 ]

Integrated in lustre-dev » x86_64,server,el6,inkernel #340
LU-808 llite: deny truncate beyond user rlimit (Revision a44174684d800d74d35d9eb0b1b65bcfd0dd8163)

Result = SUCCESS
Oleg Drokin : a44174684d800d74d35d9eb0b1b65bcfd0dd8163
Files :

  • lustre/liblustre/super.c
  • lustre/include/lustre_lite.h
  • lustre/llite/llite_lib.c
  • lustre/liblustre/llite_lib.h
  • lustre/obdclass/obd_mount.c
Comment by Build Master (Inactive) [ 02/May/12 ]

Integrated in lustre-dev » i686,client,el5,inkernel #340
LU-808 llite: deny truncate beyond user rlimit (Revision a44174684d800d74d35d9eb0b1b65bcfd0dd8163)

Result = SUCCESS
Oleg Drokin : a44174684d800d74d35d9eb0b1b65bcfd0dd8163
Files :

  • lustre/include/lustre_lite.h
  • lustre/liblustre/llite_lib.h
  • lustre/llite/llite_lib.c
  • lustre/obdclass/obd_mount.c
  • lustre/liblustre/super.c
Comment by Build Master (Inactive) [ 02/May/12 ]

Integrated in lustre-dev » x86_64,server,el5,inkernel #340
LU-808 llite: deny truncate beyond user rlimit (Revision a44174684d800d74d35d9eb0b1b65bcfd0dd8163)

Result = SUCCESS
Oleg Drokin : a44174684d800d74d35d9eb0b1b65bcfd0dd8163
Files :

  • lustre/include/lustre_lite.h
  • lustre/obdclass/obd_mount.c
  • lustre/liblustre/llite_lib.h
  • lustre/llite/llite_lib.c
  • lustre/liblustre/super.c
Comment by Build Master (Inactive) [ 02/May/12 ]

Integrated in lustre-dev » x86_64,client,el6,inkernel #340
LU-808 llite: deny truncate beyond user rlimit (Revision a44174684d800d74d35d9eb0b1b65bcfd0dd8163)

Result = SUCCESS
Oleg Drokin : a44174684d800d74d35d9eb0b1b65bcfd0dd8163
Files :

  • lustre/llite/llite_lib.c
  • lustre/liblustre/llite_lib.h
  • lustre/obdclass/obd_mount.c
  • lustre/liblustre/super.c
  • lustre/include/lustre_lite.h
Generated at Sat Feb 10 01:10:36 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.