Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-808

add check for truncate to size larger than rlimit

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • Lustre 2.3.0
    • Lustre 2.2.0
    • None
    • 1
    • 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.

      Attachments

        Activity

          [LU-808] add check for truncate to size larger than rlimit

          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
          hudson Build Master (Inactive) added a comment - 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

          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
          hudson Build Master (Inactive) added a comment - 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

          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
          hudson Build Master (Inactive) added a comment - 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

          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
          hudson Build Master (Inactive) added a comment - 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

          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
          hudson Build Master (Inactive) added a comment - 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

          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
          hudson Build Master (Inactive) added a comment - 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

          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
          hudson Build Master (Inactive) added a comment - 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

          Patch landed for 2.3.0

          adilger Andreas Dilger added a comment - Patch landed for 2.3.0

          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
          hudson Build Master (Inactive) added a comment - 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

          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
          hudson Build Master (Inactive) added a comment - 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

          People

            adilger Andreas Dilger
            adilger Andreas Dilger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: