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

lfs getstripe output inconsistent for directory default value

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.1.0, Lustre 1.8.7
    • Lustre 1.8.6
    • None
    • Linux x86_64
    • 3
    • 23,802
    • 4990

    Description

      lfs getstripe is printing inconsistent values for default striping values for directories.

      Our filesystem default values for striping are: count=2, size=1048576, offset=-1.

      If I create a new directory and look at its stripe values I see:

      $ mkdir testdir
      $ lfs getstripe testdir
      testdir
      stripe_count: 2 stripe_size: 1048576 stripe_offset: -1

      That is perfectly reasonable. But when I set any one of those values, it changes the way that the
      other default values are printed:

      $ lfs setstripe --count 4 testdir
      $ lfs getstripe testdir
      testdir
      stripe_count: 4 stripe_size: 0 stripe_offset: -1

      A user looks at that and says "oh no, it changed the size to zero!". Sure, essentially they are
      the same, since 0 in the size field means "use the default".

      If I recollect correctly from my experience with bug 19102 (and we are carrying the patch from that
      bug), the problem is that when the EA is not set ("lfs setstripe -c 0 -s 0 -o -1" clears the EA),
      it looks up the fs defaults and prints them. But when the EA IS set, the command is not looking up
      the global defaults for the fields that mean "use the default".

      This really needs to be consistent.

      See Also: Bugzilla #23802 https://bugzilla.lustre.org/show_bug.cgi?id=23802

      Attachments

        Issue Links

          Activity

            [LU-64] lfs getstripe output inconsistent for directory default value

            The interface to the lfs getstripe command was slightly modified, so any docs referencing that command may need to be changed. The manpage for the lfs command was updated, but I don't know of any other documentation that was updated to reflect the changes made.

            prakash Prakash Surya (Inactive) added a comment - The interface to the lfs getstripe command was slightly modified, so any docs referencing that command may need to be changed. The manpage for the lfs command was updated, but I don't know of any other documentation that was updated to reflect the changes made.
            pjones Peter Jones added a comment -

            Were any doc changes required for this issue?

            pjones Peter Jones added a comment - Were any doc changes required for this issue?

            Integrated in lustre-master » x86_64,client,el5,inkernel #170
            LU-64 define LOV default layout as FID_SEQ value

            Oleg Drokin : 624fd0ca0832e92dd2f5486984b6c7f7397619ba
            Files :

            • lustre/obdfilter/filter.c
            • lustre/mdd/mdd_object.c
            • lustre/include/lustre/lustre_idl.h
            • lustre/utils/liblustreapi.c
            • lustre/obdfilter/filter_log.c
            hudson Build Master (Inactive) added a comment - Integrated in lustre-master » x86_64,client,el5,inkernel #170 LU-64 define LOV default layout as FID_SEQ value Oleg Drokin : 624fd0ca0832e92dd2f5486984b6c7f7397619ba Files : lustre/obdfilter/filter.c lustre/mdd/mdd_object.c lustre/include/lustre/lustre_idl.h lustre/utils/liblustreapi.c lustre/obdfilter/filter_log.c

            Integrated in lustre-master » i686,client,el6,inkernel #167
            LU-64 define LOV default layout as FID_SEQ value

            Oleg Drokin : 624fd0ca0832e92dd2f5486984b6c7f7397619ba
            Files :

            • lustre/utils/liblustreapi.c
            • lustre/obdfilter/filter.c
            • lustre/mdd/mdd_object.c
            • lustre/include/lustre/lustre_idl.h
            • lustre/obdfilter/filter_log.c
            hudson Build Master (Inactive) added a comment - Integrated in lustre-master » i686,client,el6,inkernel #167 LU-64 define LOV default layout as FID_SEQ value Oleg Drokin : 624fd0ca0832e92dd2f5486984b6c7f7397619ba Files : lustre/utils/liblustreapi.c lustre/obdfilter/filter.c lustre/mdd/mdd_object.c lustre/include/lustre/lustre_idl.h lustre/obdfilter/filter_log.c

            Integrated in lustre-master » i686,server,el6,inkernel #167
            LU-64 define LOV default layout as FID_SEQ value

            Oleg Drokin : 624fd0ca0832e92dd2f5486984b6c7f7397619ba
            Files :

            • lustre/utils/liblustreapi.c
            • lustre/obdfilter/filter_log.c
            • lustre/obdfilter/filter.c
            • lustre/mdd/mdd_object.c
            • lustre/include/lustre/lustre_idl.h
            hudson Build Master (Inactive) added a comment - Integrated in lustre-master » i686,server,el6,inkernel #167 LU-64 define LOV default layout as FID_SEQ value Oleg Drokin : 624fd0ca0832e92dd2f5486984b6c7f7397619ba Files : lustre/utils/liblustreapi.c lustre/obdfilter/filter_log.c lustre/obdfilter/filter.c lustre/mdd/mdd_object.c lustre/include/lustre/lustre_idl.h

            Integrated in lustre-master » x86_64,server,el6,inkernel #167
            LU-64 define LOV default layout as FID_SEQ value

            Oleg Drokin : 624fd0ca0832e92dd2f5486984b6c7f7397619ba
            Files :

            • lustre/obdfilter/filter_log.c
            • lustre/mdd/mdd_object.c
            • lustre/obdfilter/filter.c
            • lustre/include/lustre/lustre_idl.h
            • lustre/utils/liblustreapi.c
            hudson Build Master (Inactive) added a comment - Integrated in lustre-master » x86_64,server,el6,inkernel #167 LU-64 define LOV default layout as FID_SEQ value Oleg Drokin : 624fd0ca0832e92dd2f5486984b6c7f7397619ba Files : lustre/obdfilter/filter_log.c lustre/mdd/mdd_object.c lustre/obdfilter/filter.c lustre/include/lustre/lustre_idl.h lustre/utils/liblustreapi.c

            Integrated in lustre-master » i686,server,el5,inkernel #167
            LU-64 define LOV default layout as FID_SEQ value

            Oleg Drokin : 624fd0ca0832e92dd2f5486984b6c7f7397619ba
            Files :

            • lustre/obdfilter/filter_log.c
            • lustre/include/lustre/lustre_idl.h
            • lustre/obdfilter/filter.c
            • lustre/utils/liblustreapi.c
            • lustre/mdd/mdd_object.c
            hudson Build Master (Inactive) added a comment - Integrated in lustre-master » i686,server,el5,inkernel #167 LU-64 define LOV default layout as FID_SEQ value Oleg Drokin : 624fd0ca0832e92dd2f5486984b6c7f7397619ba Files : lustre/obdfilter/filter_log.c lustre/include/lustre/lustre_idl.h lustre/obdfilter/filter.c lustre/utils/liblustreapi.c lustre/mdd/mdd_object.c

            Integrated in lustre-master » i686,client,el5,ofa #167
            LU-64 define LOV default layout as FID_SEQ value

            Oleg Drokin : 624fd0ca0832e92dd2f5486984b6c7f7397619ba
            Files :

            • lustre/obdfilter/filter_log.c
            • lustre/obdfilter/filter.c
            • lustre/utils/liblustreapi.c
            • lustre/mdd/mdd_object.c
            • lustre/include/lustre/lustre_idl.h
            hudson Build Master (Inactive) added a comment - Integrated in lustre-master » i686,client,el5,ofa #167 LU-64 define LOV default layout as FID_SEQ value Oleg Drokin : 624fd0ca0832e92dd2f5486984b6c7f7397619ba Files : lustre/obdfilter/filter_log.c lustre/obdfilter/filter.c lustre/utils/liblustreapi.c lustre/mdd/mdd_object.c lustre/include/lustre/lustre_idl.h

            Integrated in lustre-master » x86_64,client,ubuntu1004,ofa #167
            LU-64 define LOV default layout as FID_SEQ value

            Oleg Drokin : 624fd0ca0832e92dd2f5486984b6c7f7397619ba
            Files :

            • lustre/obdfilter/filter_log.c
            • lustre/mdd/mdd_object.c
            • lustre/obdfilter/filter.c
            • lustre/utils/liblustreapi.c
            • lustre/include/lustre/lustre_idl.h
            hudson Build Master (Inactive) added a comment - Integrated in lustre-master » x86_64,client,ubuntu1004,ofa #167 LU-64 define LOV default layout as FID_SEQ value Oleg Drokin : 624fd0ca0832e92dd2f5486984b6c7f7397619ba Files : lustre/obdfilter/filter_log.c lustre/mdd/mdd_object.c lustre/obdfilter/filter.c lustre/utils/liblustreapi.c lustre/include/lustre/lustre_idl.h

            Integrated in lustre-master » x86_64,client,el6,inkernel #167
            LU-64 define LOV default layout as FID_SEQ value

            Oleg Drokin : 624fd0ca0832e92dd2f5486984b6c7f7397619ba
            Files :

            • lustre/obdfilter/filter.c
            • lustre/utils/liblustreapi.c
            • lustre/obdfilter/filter_log.c
            • lustre/mdd/mdd_object.c
            • lustre/include/lustre/lustre_idl.h
            hudson Build Master (Inactive) added a comment - Integrated in lustre-master » x86_64,client,el6,inkernel #167 LU-64 define LOV default layout as FID_SEQ value Oleg Drokin : 624fd0ca0832e92dd2f5486984b6c7f7397619ba Files : lustre/obdfilter/filter.c lustre/utils/liblustreapi.c lustre/obdfilter/filter_log.c lustre/mdd/mdd_object.c lustre/include/lustre/lustre_idl.h

            People

              laisiyao Lai Siyao
              prakash Prakash Surya (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: